/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --accent: #f33500;
  --accent-dark: #c92900;
  --ink: #1a1a1a;
  --ink-soft: #57575c;
  --paper: #faf9f7;
  --paper-alt: #f0efec;
  --line: #e3e1db;
  --dark: #121214;
  --dark-soft: #1c1c20;
  --white: #ffffff;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --header-h: 84px;
}

/* ============================================
   RESET
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Evita que iOS agrande el texto solo al girar el telefono */
  -webkit-text-size-adjust: 100%;
  /* Ningun elemento debe poder ensanchar la pagina en movil */
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.accent { color: var(--accent); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-lede {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 620px;
}

.section-head {
  margin-bottom: 48px;
}
.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head.center .section-lede { margin-left: auto; margin-right: auto; }

section { padding: 96px 0; }
/* Deja espacio para el header fijo al saltar a un ancla */
section[id] { scroll-margin-top: var(--header-h); }
.hero[id] { scroll-margin-top: 0; }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark .section-lede { color: #b8b8bd; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 32px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: var(--accent); }

.btn-outline {
  border: 1px solid currentColor;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.section-dark .btn-outline { color: var(--white); }
.section-dark .btn-outline:hover { background: var(--white); color: var(--dark); }

.btn-light {
  background: var(--white);
  color: var(--ink);
}
.btn-light:hover { background: var(--accent); color: var(--white); }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: var(--white);
  height: 72px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* .container es flex item del header: sin width no se estira y el logo
     y el menu quedan encogidos en el centro en vez de en los extremos */
  width: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}
.logo span { color: var(--accent); }
.site-header.is-scrolled .logo,
.site-header.is-solid .logo { color: var(--ink); }

/* El logo tiene el texto en negro: sobre el hero oscuro se usa la version
   clara, y al volverse blanco el header se cambia a la original */
.logo img { height: 44px; width: auto; }
.logo-dark { display: none; }
.site-header.is-scrolled .logo-light,
.site-header.is-solid .logo-light { display: none; }
.site-header.is-scrolled .logo-dark,
.site-header.is-solid .logo-dark { display: block; }
.site-header.is-scrolled .logo img,
.site-header.is-solid .logo img { height: 38px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  padding: 6px 0;
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent); }

.site-header.is-scrolled .nav-links a,
.site-header.is-solid .nav-links a { color: var(--ink); }
.site-header.is-scrolled .nav-links a.active,
.site-header.is-solid .nav-links a.active { color: var(--accent); }

.nav-cta {
  padding: 12px 26px;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  z-index: 210;
}
.nav-toggle span {
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}
.site-header.is-scrolled .nav-toggle span,
.site-header.is-solid .nav-toggle span { background: var(--ink); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle.active span { background: var(--ink) !important; }

/* ============================================
   HERO SLIDER
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  /* svh = alto real visible en movil, sin el salto al ocultarse la barra del
     navegador. Los que no lo soporten se quedan con el 100vh de arriba. */
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
  z-index: 1;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Si la foto todavia no existe, queda el degradado de abajo como respaldo */
  background-color: var(--bg-a, #2b2b33);
  background-image: var(--bg-img, none), linear-gradient(135deg, var(--bg-a, #2b2b33), var(--bg-b, #16161a));
  background-size: cover;
  /* Encuadre por slide: las fotos son verticales y el hero apaisado, asi que
     solo se ve una franja del alto. --bg-pos elige que franja. */
  background-position: var(--bg-pos, center);
  background-repeat: no-repeat;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.15) 75%),
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
}

/* Las rutas de --bg-img son relativas a ESTE archivo (css/), no al HTML */
.hero-slide[data-slide="1"] {
  --bg-a: #192b48; --bg-b: #121b2c;
  --bg-img: url('../images/problemas_de_conexion.webp');
  --bg-pos: center;  /* esta foto es apaisada y el telefono va centrado: sin desplazar */
}
.hero-slide[data-slide="2"] {
  --bg-a: #4a3a2f; --bg-b: #17130f;
  --bg-img: url('../images/atencion_personalizada.webp');
  --bg-pos: center 32%;  /* centra las caras y deja fuera la franja azul del pie */
}
.hero-slide[data-slide="3"] {
  --bg-a: #33404a; --bg-b: #10151a;
  --bg-img: url('../images/descuentos-y-promociones.webp');
  --bg-pos: center 38%;  /* muestra las etiquetas completas, con sus argollas */
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 640px;
  padding: 0 28px;
  margin-left: 6vw;
}

.hero-content .eyebrow { color: var(--accent); }

.hero-content h1 {
  font-size: clamp(34px, 5.2vw, 62px);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  color: #eae9e6;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-nav {
  position: absolute;
  /* Se sube respecto del borde para dejar pasar el boton flotante de llamada,
     que tambien va centrado abajo. */
  bottom: 104px;
  left: 0; right: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.hero-dot {
  width: 34px;
  height: 3px;
  /* background-color, no la shorthand: esta resetearia el background-clip
     que en movil recorta la franja tactil */
  background-color: rgba(255,255,255,0.35);
  transition: background-color 0.3s ease;
}
.hero-dot.is-active { background-color: var(--accent); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  transition: all 0.25s ease;
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero-arrow.prev { left: 32px; }
.hero-arrow.next { right: 32px; }

/* ============================================
   PAGE HEADER (interior pages)
   ============================================ */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 80px;
  color: var(--white);
  background: linear-gradient(135deg, #33404a, #121214);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  text-transform: uppercase;
}
.page-hero .breadcrumb {
  margin-top: 14px;
  font-size: 14px;
  color: #d8d7d3;
  letter-spacing: 0.04em;
}
.page-hero .breadcrumb a { color: var(--accent); }

/* ============================================
   IMAGE PLACEHOLDER
   ============================================ */
.ph-media {
  position: relative;
  background: linear-gradient(135deg, #d8d5cd, #bfbcb2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(26,26,26,0.55);
  text-align: center;
}
.ph-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.15) 75%, rgba(255,255,255,0.15)),
    linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.15) 75%, rgba(255,255,255,0.15));
  background-size: 34px 34px;
  background-position: 0 0, 17px 17px;
  opacity: 0.5;
}
/* La imagen real se monta encima del placeholder a rayas */
.ph-media img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph-media span {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  background: rgba(255,255,255,0.72);
}

/* ============================================
   INTRO SPLIT SECTION
   ============================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split .ph-media { aspect-ratio: 4/3; border-radius: 2px; }
.split-text .btn { margin-top: 8px; }

/* ============================================
   PROJECT CARDS
   ============================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.project-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 2px;
}
.project-card .ph-media {
  aspect-ratio: 4/5;
  transition: transform 0.5s ease;
}
.project-card:hover .ph-media { transform: scale(1.06); }

.project-card .card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 26px 24px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  color: var(--white);
}
.project-card .tag {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
}
.project-card h3 {
  font-size: 22px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.project-card h3 .arrow {
  transition: transform 0.25s ease;
  font-size: 16px;
}
.project-card:hover h3 .arrow { transform: translateX(6px); }

.center-cta { text-align: center; margin-top: 52px; }

/* ============================================
   PLANES / PRECIOS
   ============================================ */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 44px 34px 34px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

/* El plan destacado se invierte a fondo oscuro */
.plan-card.is-featured {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.plan-badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
}

.plan-speed {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 18px;
  text-transform: none;
}
.plan-speed small {
  font-size: 18px;
  letter-spacing: 0.06em;
}

.plan-from {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.plan-card.is-featured .plan-from { color: #b8b8bd; }

.plan-price {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  margin-bottom: 20px;
}
.plan-price .currency { font-size: 20px; vertical-align: super; }
.plan-price small {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
}
.plan-card.is-featured .plan-price small { color: #b8b8bd; }

.plan-features {
  margin: 0 0 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  /* Empuja el boton al fondo para que todas las tarjetas lo alineen */
  flex-grow: 1;
}
.plan-card.is-featured .plan-features { border-top-color: rgba(255,255,255,0.14); }
.plan-features li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 15px;
}
.plan-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.plan-card .btn { justify-content: center; }
.plan-card.is-featured .btn-dark { background: var(--white); color: var(--dark); }
.plan-card.is-featured .btn-dark:hover { background: var(--accent); color: var(--white); }

.plan-note {
  margin-top: 40px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ============================================
   PARTNERS STRIP
   ============================================ */
.partners {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.partner-logo {
  height: 84px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
  filter: grayscale(1);
  opacity: 0.7;
  transition: all 0.25s ease;
}
.partner-logo:hover { filter: none; opacity: 1; border-color: var(--accent); color: var(--accent); }

/* ============================================
   STATS / CTA BANNER
   ============================================ */
.stat-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-banner .num {
  font-family: var(--font-display);
  font-size: 46px;
  color: var(--accent);
  margin-bottom: 8px;
}
.stat-banner .label {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c9c8c4;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { font-size: clamp(24px, 3vw, 34px); text-transform: uppercase; max-width: 560px; }

/* ============================================
   PROCESS STEPS (about page)
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.step {
  padding: 34px 26px;
  background: var(--white);
  border: 1px solid var(--line);
}
.step .step-num {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--line);
  -webkit-text-stroke: 1px var(--accent);
  color: transparent;
  margin-bottom: 18px;
}
.step h3 { font-size: 18px; text-transform: uppercase; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* ============================================
   TEAM
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.team-card .ph-media { aspect-ratio: 3/4; margin-bottom: 18px; }
.team-card h3 { font-size: 17px; text-transform: uppercase; }
.team-card .role { color: var(--accent); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
}

.contact-info-card {
  background: var(--dark);
  color: var(--white);
  padding: 44px;
}
.contact-info-card h3 { font-size: 20px; text-transform: uppercase; margin-bottom: 28px; }
.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .ico {
  width: 40px; height: 40px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  font-family: var(--font-display);
}
.contact-info-item h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: #b8b8bd; margin-bottom: 4px; }
.contact-info-item a, .contact-info-item p { color: var(--white); font-size: 15px; }

.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s ease;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--dark); color: var(--white); }
.footer-top {
  /* El padding lateral repite el de .container: si se pone 0 lo pisa y el
     contenido queda pegado al borde en pantallas angostas */
  padding: 70px 28px 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.footer-col a, .footer-col p { color: #d5d4d0; font-size: 15px; }
.footer-col a:hover { color: var(--accent); }

.footer-disclaimer {
  padding: 28px 28px 0;
  text-align: center;
}
.footer-disclaimer p {
  font-size: 12.5px;
  line-height: 1.7;
  color: #8a8986;
  max-width: 860px;
  margin: 0 auto;
}

.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }

.footer-bottom {
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #9c9b98;
}
.footer-bottom a { color: #9c9b98; }
.footer-bottom a:hover { color: var(--accent); }

.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: all 0.25s ease;
}
.social-icons a:hover { background: var(--accent); border-color: var(--accent); }

/* ============================================
   PLACEHOLDER NOTICE BANNER
   ============================================ */
.dev-notice {
  background: #fff4e5;
  border-bottom: 1px solid #f0d9a8;
  color: #6b4e00;
  font-size: 13px;
  text-align: center;
  padding: 9px 16px;
  position: relative;
  z-index: 300;
}
.dev-notice strong { color: #a35b00; }

/* ============================================
   BOTON FLOTANTE DE LLAMADA
   ============================================ */
.call-fab {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  /* Por encima del contenido pero por debajo del menu movil (205) y del
     header (200), para no quedar flotando sobre el menu abierto. */
  z-index: 150;
  padding: 17px 38px;
  font-size: 15px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.32);
}
.call-fab:hover { transform: translateX(-50%) translateY(-2px); }

/* El boton tapa la franja inferior de las secciones fijas al pie: se les
   agrega aire para que nada quede debajo. */
.footer-bottom { padding-bottom: 96px; }

/* ============================================
   ANIMACIONES
   ============================================
   [data-reveal]            elemento que aparece al entrar en pantalla
   [data-reveal="up|left|right|zoom|mask"]   variante de entrada
   [data-stagger]           sus hijos entran en cascada (JS numera con --i)
   [data-parallax="0.15"]   se desplaza a otra velocidad durante el scroll
   ------------------------------------------------------------------ */

:root {
  --reveal-time: 1.35s;
  /* easeOutExpo: arranca rapido y se asienta muy despacio -> se siente suave */
  --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --stagger-step: 150ms;
}

[data-reveal] {
  opacity: 0;
  transition:
    opacity var(--reveal-time) var(--reveal-ease),
    transform var(--reveal-time) var(--reveal-ease);
  transition-delay: calc(var(--i, 0) * var(--stagger-step));
  will-change: opacity, transform;
}

/* Variantes: solo cambian el punto de partida */
[data-reveal="up"],
[data-reveal=""]      { transform: translate3d(0, 42px, 0); }
[data-reveal="left"]  { transform: translate3d(-48px, 0, 0); }
[data-reveal="right"] { transform: translate3d(48px, 0, 0); }
[data-reveal="zoom"]  { transform: scale(0.94); }

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Text reveal: el texto sube desde detras de una mascara.
   El <span> interior lo inserta el JS para no tocar el marcado. */
[data-reveal="mask"] {
  opacity: 1;
  overflow: hidden;
  /* sin esto la mascara corta acentos y colas de las letras */
  padding-bottom: 0.12em;
}
.reveal-mask-inner {
  display: block;
  transform: translate3d(0, 105%, 0);
  transition: transform var(--reveal-time) var(--reveal-ease);
  transition-delay: calc(var(--i, 0) * var(--stagger-step));
  will-change: transform;
}
[data-reveal="mask"].is-revealed .reveal-mask-inner { transform: none; }

/* Parallax: el JS solo escribe --py, el navegador compone en GPU */
[data-parallax] {
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
/* Las fotos del bloque estan a inset:0; se les da alto de sobra para que al
   desplazarse no aparezcan franjas vacias arriba o abajo */
.ph-media img[data-parallax] {
  height: 124%;
  top: -12%;
}

/* Entrada del hero al cargar y en cada cambio de slide */
.hero-slide .hero-content > * {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
}
.hero-slide.is-active .hero-content > * {
  animation: heroIn 1.3s var(--reveal-ease) forwards;
}
.hero-slide.is-active .hero-content > *:nth-child(1) { animation-delay: 0.25s; }
.hero-slide.is-active .hero-content > *:nth-child(2) { animation-delay: 0.45s; }
.hero-slide.is-active .hero-content > *:nth-child(3) { animation-delay: 0.65s; }
.hero-slide.is-active .hero-content > *:nth-child(4) { animation-delay: 0.85s; }

@keyframes heroIn {
  to { opacity: 1; transform: none; }
}

/* El cruce entre slides tambien mas pausado */
.hero-slide { transition: opacity 1.4s ease; }

/* La foto del hero entra con un zoom lento que sigue durante todo el slide */
.hero-slide::before {
  transform: translate3d(0, var(--hero-py, 0px), 0);
  transition: transform 0.2s linear;
}
.hero-slide.is-active::before {
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom {
  from { scale: 1.08; }
  to   { scale: 1.16; }
}

/* En movil el recorrido se acorta: 42px sobre 390px de ancho se siente brusco */
@media (max-width: 768px) {
  :root {
    --reveal-time: 1.15s;
    --stagger-step: 120ms;
  }
  /* Las entradas laterales pasan a ser verticales: en una pantalla angosta
     apenas se leen y ademas ensanchan el documento antes de revelarse */
  [data-reveal="up"],
  [data-reveal="left"],
  [data-reveal="right"],
  [data-reveal=""]      { transform: translate3d(0, 28px, 0); }
  .hero-slide .hero-content > * { transform: translate3d(0, 24px, 0); }
}

/* Accesibilidad: si el sistema pide menos movimiento, se muestra todo quieto */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal].is-revealed,
  .reveal-mask-inner,
  .hero-slide .hero-content > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  [data-parallax] { transform: none !important; }
  .hero-slide::before,
  .hero-slide.is-active::before { animation: none !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================
   PAGINAS LEGALES
   ============================================ */
.legal { max-width: 820px; }
.legal .updated {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 22px;
  text-transform: uppercase;
  margin: 44px 0 14px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  margin: 24px 0 8px;
}
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 14px; }
.legal ul { margin: 0 0 18px 0; }
.legal li { position: relative; padding-left: 20px; }
.legal li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 6px; height: 6px;
  background: var(--accent);
}
.legal a { color: var(--accent); text-decoration: underline; }
.legal strong { color: var(--ink); }


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .stat-banner { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 340px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transition: right 0.35s ease;
    z-index: 205;
  }
  .nav-links.is-open { right: 0; }
  .nav-links a { color: var(--white) !important; font-size: 16px; padding: 12px 0; }
  .nav-cta { display: none; }

  /* Area tactil de 44px sin agrandar las tres barras */
  .nav-toggle {
    display: flex;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -8px;
  }

  .hero-content { margin-left: 0; }
  .hero-arrow { display: none; }

  /* La foto de este slide es apaisada: en vertical el recorte deja fuera casi
     toda la escena. Se cambia por una version 9:16 con la escena completa
     abajo y el fondo de la propia foto desenfocado arriba, que es donde cae
     el copy. Las rutas son relativas a css/, igual que arriba. */
  .hero-slide[data-slide="1"] {
    --bg-img: url('../images/problemas_de_conexion-movil.webp');
    --bg-pos: center bottom;
  }
  .hero-content h1 { font-size: 32px; }
  .hero-content p { font-size: 16px; margin-bottom: 26px; }

  .call-fab {
    bottom: 16px;
    padding: 15px 32px;
    font-size: 14px;
  }

  /* Los puntos siguen midiendo 3px pero se tocan en una franja de 30px */
  .hero-nav { gap: 6px; bottom: 88px; }
  .hero-dot {
    height: 30px;
    padding: 13px 0;
    background-clip: content-box;
  }

  .project-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }

  /* 16px o menos y Safari hace zoom al enfocar el campo */
  .form-group input,
  .form-group textarea { font-size: 16px; }

  /* Enlaces de contacto: alto minimo comodo para el dedo */
  .footer-col a,
  .footer-bottom a,
  .contact-info-item a { display: inline-block; padding: 10px 0; }
  .social-icons { gap: 10px; }
  .social-icons a { width: 44px; height: 44px; }
  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .footer-top { padding: 56px 20px 40px; }
  .footer-bottom { padding: 22px 20px; }
  section { padding: 64px 0; }
  .plan-card { padding: 36px 24px 28px; }
  .contact-info-card { padding: 30px 24px; }
}
