/* =========================================================
   Willay Digital — estilos
   Mobile-first: las reglas base son para celular (desde 360 px)
   y las @media (min-width) agregan el diseño de tablet/escritorio.
   ========================================================= */

:root {
  --navy: #1B1F4B;
  --navy-2: #262B63;
  --orange: #FF6B35;
  --orange-soft: #FFF0EA;
  --white: #FFFFFF;
  --soft: #F6F6FA;
  --text: #1B1F4B;
  --muted: #4B5563;
  --line: #E4E5EE;

  --f-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "DM Sans", "Segoe UI", system-ui, sans-serif;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(27, 31, 75, .06), 0 8px 24px rgba(27, 31, 75, .07);
  --shadow-lg: 0 2px 4px rgba(27, 31, 75, .06), 0 24px 48px rgba(27, 31, 75, .14);
  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: var(--f-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--navy);
}
h3 { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Botones ---------- */
/* El naranja lleva texto azul noche: así el contraste pasa el estándar AA (5.5:1). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--orange); color: var(--navy); box-shadow: 0 6px 18px rgba(255, 107, 53, .32); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(255, 107, 53, .42); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.05rem; }
.btn-xl { min-height: 60px; padding: 16px 32px; font-size: 1.125rem; }
.btn-block { width: 100%; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo-icon { width: 40px; height: 40px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--f-head); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.logo-sub { font-family: var(--f-head); font-weight: 600; font-size: .62rem; letter-spacing: .38em; margin-top: 3px; padding-left: 1px; }
.logo-white { color: var(--white); --bubble: var(--white); --waves: var(--navy); }

/* ---------- Menú superior ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(27, 31, 75, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 12px; margin-right: -10px;
  background: none; border: 0; border-radius: var(--r-sm); cursor: pointer;
}
.menu-toggle span { display: block; height: 2.5px; width: 100%; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Menú en celular: panel desplegable */
.nav {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  background: var(--white); border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(27, 31, 75, .12);
  padding: 8px 20px 24px;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.nav ul { margin-bottom: 16px; }
.nav li a {
  display: block; padding: 14px 4px; text-decoration: none;
  font-weight: 500; font-size: 1.1rem; color: var(--navy);
  border-bottom: 1px solid var(--line);
}
.nav .btn { width: 100%; }
/* Sin JavaScript, el menú queda visible (no se pierde la navegación) */
html:not(.js) .nav { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; }
html:not(.js) .menu-toggle { display: none; }

/* ---------- Encabezados de sección ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--navy);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--orange); }
.section { padding: 72px 0; }
.section-alt { background: var(--soft); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.75rem, 6.5vw, 2.6rem); }
.section-lead { color: var(--muted); font-size: 1.075rem; margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 72px;
  background: linear-gradient(180deg, var(--white) 0%, var(--soft) 100%);
}
.hero-waves {
  position: absolute; left: 50%; bottom: -2px; width: 1400px; max-width: none;
  transform: translateX(-30%); pointer-events: none;
}
.hero-waves path { fill: none; stroke: var(--navy); stroke-width: 26; stroke-linecap: round; opacity: .045; }
.hero-waves path:nth-child(3) { stroke: var(--orange); opacity: .07; }

.hero-grid { position: relative; display: grid; gap: 48px; }
.hero h1 { font-size: clamp(2.2rem, 10vw, 4rem); margin-bottom: 18px; }
.hero h1 .hl { position: relative; z-index: 0; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em; z-index: -1;
  background: var(--orange); opacity: .35; border-radius: 4px;
}
.lead { font-size: 1.125rem; color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .95rem; font-weight: 500; color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* Ilustración: celular */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 10px 0 20px; }
.phone {
  position: relative; width: 250px; aspect-ratio: 9 / 18.5;
  background: var(--navy); border-radius: 38px; padding: 10px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px var(--navy-2);
  animation: float 7s ease-in-out infinite;
}
.phone::before { /* cámara */
  content: ""; position: absolute; top: 18px; left: 50%; width: 70px; height: 18px; margin-left: -35px;
  background: var(--navy); border-radius: 10px; z-index: 2;
}
.phone-screen {
  height: 100%; overflow: hidden; border-radius: 29px; background: var(--white);
  padding: 38px 14px 14px; display: flex; flex-direction: column; gap: 9px;
  font-size: 10px; line-height: 1.3;
}
.m-bar { display: flex; justify-content: space-between; align-items: center; }
.m-logo { width: 46px; height: 9px; border-radius: 5px; background: #8A4B2A; }
.m-menu { width: 16px; height: 9px; border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); position: relative; }
.m-menu::after { content: ""; position: absolute; left: 0; right: 0; top: 1.5px; height: 2px; background: var(--navy); }
.m-hero { height: 108px; border-radius: 12px; background: #FBE7D3; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.shop { width: 128px; }
.shop-awning {
  height: 22px; border-radius: 6px 6px 0 0;
  background: repeating-linear-gradient(90deg, #C2562B 0 16px, #FFF8F0 16px 32px);
}
.shop-body { position: relative; height: 62px; background: #8A4B2A; display: flex; align-items: flex-end; gap: 10px; padding: 0 12px; }
.shop-door { width: 30px; height: 44px; background: #5E3119; border-radius: 6px 6px 0 0; }
.shop-window { flex: 1; height: 26px; margin-bottom: 18px; background: #FFD9A8; border-radius: 4px; box-shadow: inset 0 -6px 0 #F2B36B; }
.m-title { font-family: var(--f-head); font-weight: 800; font-size: 15px; color: var(--navy); letter-spacing: -0.02em; }
.m-text { display: grid; gap: 5px; }
.m-text span { height: 6px; border-radius: 4px; background: #E6E7EF; }
.m-text .short { width: 60%; }
.m-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 30px; border-radius: 999px; background: var(--orange); color: var(--navy);
  font-weight: 700; font-size: 10.5px;
}
.m-btn .ico { width: 13px; height: 13px; }
.m-info { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.m-card { background: var(--soft); border-radius: 9px; padding: 7px 8px; display: flex; flex-direction: column; color: var(--muted); }
.m-card b { color: var(--navy); font-size: 10px; }
.m-map {
  flex: 1; min-height: 50px; border-radius: 10px; position: relative;
  background:
    linear-gradient(28deg, transparent 46%, #fff 46% 54%, transparent 54%),
    linear-gradient(-62deg, transparent 47%, #fff 47% 53%, transparent 53%),
    #DDE6D5;
}
.pin {
  position: absolute; left: 50%; top: 40%; width: 18px; height: 18px; margin: -18px 0 0 -9px;
  background: var(--orange); border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
}
.pin::after { content: ""; position: absolute; inset: 5px; background: #fff; border-radius: 50%; }

.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 10px 14px; font-size: .82rem; line-height: 1.3; color: var(--navy);
}
.chip-search { top: 40px; left: 0; border-radius: 999px; }
.chip-search .ico { fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; width: 16px; height: 16px; }
.chip-msg { bottom: 56px; right: 0; max-width: 200px; }
.chip-msg b { font-weight: 700; }
.chip-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: var(--navy); display: grid; place-items: center; flex: none; }
.chip-dot .ico { width: 18px; height: 18px; }
.js .chip { opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .hero-visual.is-visible .chip-search { opacity: 1; transform: none; transition-delay: .6s; }
.js .hero-visual.is-visible .chip-msg { opacity: 1; transform: none; transition-delay: 1.2s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Tarjetas "por qué" ---------- */
.grid-4 { display: grid; gap: 16px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); margin: 0; }
.card-ico {
  width: 48px; height: 48px; padding: 11px; margin-bottom: 18px; flex: none;
  border-radius: 14px; background: var(--orange-soft);
  fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Servicios ---------- */
.services { display: grid; gap: 16px; }
.service {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--white); border-radius: var(--r-lg); padding: 24px;
}
.service .card-ico { margin: 0; background: var(--soft); }
.service h3 { margin-bottom: .35em; }
.service p { color: var(--muted); margin: 0; }
.soon {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 28px 0 0; color: var(--muted);
}
.soon-tag {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; background: var(--navy); color: var(--white);
}

/* ---------- Planes ---------- */
.plans { display: grid; gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 26px 26px;
}
.plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan-for { color: var(--muted); font-size: .95rem; min-height: 3em; margin-bottom: 14px; }
.price { font-family: var(--f-head); font-weight: 800; font-size: 3rem; line-height: 1; letter-spacing: -0.03em; color: var(--navy); margin-bottom: 22px; }
.price .cur { font-size: 1.25rem; font-weight: 600; vertical-align: top; margin-right: 4px; position: relative; top: .45em; }
.checks { display: grid; gap: 11px; margin-bottom: 28px; flex: 1; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.3 2.6 2.6 5.4-5.6' fill='none' stroke='%231B1F4B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.plan-featured { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: var(--shadow-lg); }
.plan-featured h3, .plan-featured .price { color: var(--white); }
.plan-featured .plan-for { color: #C9CBE3; }
.plan-featured .checks li::before {
  background-color: var(--orange);
}
.plan-badge {
  position: absolute; top: -14px; left: 26px;
  background: var(--orange); color: var(--navy);
  font-weight: 700; font-size: .8rem; letter-spacing: .04em;
  padding: 6px 14px; border-radius: 999px;
}
.launch {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 32px; padding: 20px 22px;
  background: var(--orange-soft); border: 2px solid var(--orange); border-radius: var(--r-lg);
}
.launch p { margin: 0; font-size: 1.05rem; }
.launch-ico { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; margin-top: 1px; }
.plans-note { margin: 18px 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- Cómo trabajamos ---------- */
.steps { display: grid; gap: 14px; counter-reset: none; }
.step {
  position: relative; display: flex; gap: 18px; align-items: flex-start;
  background: var(--white); border-radius: var(--r-lg); padding: 22px;
}
.step p { margin: 0; font-size: 1.05rem; font-weight: 500; padding-top: 8px; }
.step-n {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--f-head); font-weight: 800; font-size: 1.25rem;
  background: var(--navy); color: var(--white);
}
.step:first-child .step-n { background: var(--orange); color: var(--navy); }

/* ---------- Proyectos ---------- */
.projects { display: grid; gap: 22px; }
.project { display: flex; flex-direction: column; }
.browser {
  border-radius: var(--r-lg); overflow: hidden; background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.project:hover .browser { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; gap: 6px; padding: 11px 14px; background: var(--soft); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D3D5E2; }
.browser-body { position: relative; height: 200px; overflow: hidden; }
.project-info { padding: 18px 4px 0; }
.project-info h3 { margin: 10px 0 4px; }
.project-info p { margin: 0; color: var(--muted); }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1.5px dashed var(--navy); color: var(--navy);
}

/* Ejemplo 1: cafetería */
.p-cafe .browser-body { background: #F4EBDD; display: flex; align-items: center; justify-content: space-between; padding: 22px; }
.pc-copy { display: flex; flex-direction: column; gap: 8px; }
.pc-kicker { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #7A4E2D; font-weight: 700; }
.pc-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; line-height: 1.05; color: #3B2416; }
.pc-btn { align-self: flex-start; font-size: .75rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: #3B2416; color: #F4EBDD; }
.cup { position: relative; width: 110px; height: 120px; flex: none; }
.cup-body { position: absolute; left: 14px; bottom: 18px; width: 70px; height: 62px; background: #FFFDF8; border-radius: 6px 6px 30px 30px; box-shadow: inset 0 10px 0 #6B3E22; }
.cup-handle { position: absolute; left: 76px; bottom: 38px; width: 26px; height: 26px; border: 7px solid #FFFDF8; border-radius: 50%; }
.cup-plate { position: absolute; left: 0; bottom: 8px; width: 98px; height: 12px; background: #E3D3BC; border-radius: 50%; }
.steam { position: absolute; left: 36px; top: 0; width: 10px; height: 34px; border-radius: 10px; border-left: 3px solid #C9AE8E; animation: steam 3.2s ease-in-out infinite; }
.steam.s2 { left: 54px; top: 6px; animation-delay: 1.4s; }
@keyframes steam { 0%, 100% { opacity: .2; transform: translateY(4px); } 50% { opacity: .9; transform: translateY(-4px); } }

/* Ejemplo 2: ferretería */
.p-ferre .browser-body { background: #2E3138; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.pf-title { font-family: var(--f-head); font-weight: 800; color: #FFC93C; font-size: 1.15rem; letter-spacing: -0.01em; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; }
.pf-item { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; background: #3B3F48; border-radius: 10px; padding: 10px; color: #E8E9EC; font-size: .75rem; font-weight: 700; }
.pf-item i { display: block; height: 18px; position: relative; }
.t-hammer::before { content: ""; position: absolute; left: 6px; top: 0; width: 22px; height: 8px; background: #FFC93C; border-radius: 2px; }
.t-hammer::after { content: ""; position: absolute; left: 14px; top: 6px; width: 5px; height: 12px; background: #B07A3A; border-radius: 2px; }
.t-paint::before { content: ""; position: absolute; left: 4px; top: 2px; width: 18px; height: 16px; background: #5DA9E9; border-radius: 3px 3px 4px 4px; }
.t-paint::after { content: ""; position: absolute; left: 4px; top: 0; width: 18px; height: 4px; background: #E8E9EC; border-radius: 2px; }
.t-bolt::before { content: ""; position: absolute; left: 6px; top: 0; width: 16px; height: 18px; background: #FFC93C; clip-path: polygon(60% 0, 0 58%, 45% 58%, 30% 100%, 100% 38%, 55% 38%); }
.t-pipe::before { content: ""; position: absolute; left: 4px; top: 6px; width: 26px; height: 7px; background: #A9B0BC; border-radius: 3px; }
.t-pipe::after { content: ""; position: absolute; left: 22px; top: 0; width: 7px; height: 18px; background: #A9B0BC; border-radius: 3px; }

/* Ejemplo 3: hostal */
.p-hostal .browser-body { background: linear-gradient(180deg, #F7E3CF 0%, #F3C9A4 100%); }
.sun { position: absolute; right: 34px; top: 26px; width: 44px; height: 44px; border-radius: 50%; background: #F08A4B; }
.mtn { position: absolute; bottom: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.mtn.m1 { left: -30px; width: 240px; height: 130px; background: #7C9A72; }
.mtn.m2 { left: 120px; width: 260px; height: 160px; background: #4F6E54; }
.mtn.m3 { right: -60px; width: 220px; height: 110px; background: #3A5442; }
.ph-copy { position: absolute; left: 20px; top: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ph-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; line-height: 1.05; color: #2C2A26; }
.ph-lang { font-size: .65rem; font-weight: 700; letter-spacing: .12em; color: #2C2A26; opacity: .7; }
.ph-btn { font-size: .75rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: #A4442A; color: #fff; }

/* ---------- Preguntas (acordeón) ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--white); border-radius: var(--r-md); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 56px 20px 22px; min-height: 48px;
  font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 24px; height: 24px; margin-top: -12px;
  border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10M12 7v10' fill='none' stroke='%231B1F4B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat;
  transition: transform .3s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--orange); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: var(--r-md); }
.faq-a { padding: 0 22px 20px; color: var(--muted); }
.faq-a p { margin: 0; }

/* ---------- Llamada final ---------- */
.cta { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding: 84px 0; text-align: center; }
.cta-waves { position: absolute; left: 50%; bottom: -2px; width: 1100px; max-width: none; transform: translateX(-50%); pointer-events: none; }
.cta-waves path { fill: none; stroke: var(--white); stroke-width: 24; stroke-linecap: round; opacity: .05; }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta h2 { color: var(--white); font-size: clamp(1.9rem, 7vw, 3rem); max-width: 16ch; }
.cta p { color: #D3D5EA; font-size: 1.1rem; max-width: 32em; margin-bottom: 30px; }
.cta .btn { width: 100%; max-width: 420px; padding-left: 20px; padding-right: 20px; font-size: 1.05rem; }
.cta .cta-mail { margin: 22px 0 0; font-size: .95rem; }
.cta-mail a { color: var(--white); font-weight: 700; }

/* ---------- Pie ---------- */
.footer { background: #14173A; color: #C9CBE3; padding: 56px 0 96px; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand p { margin: 16px 0 0; }
.footer-brand em { color: var(--white); font-style: italic; }
.footer-contact p { margin: 0 0 6px; }
.footer-contact a { color: var(--white); text-decoration: none; font-weight: 500; }
.footer-contact a:hover { text-decoration: underline; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255, 255, 255, .08); transition: background-color .2s, transform .2s;
}
.social a:hover { background: var(--orange); transform: translateY(-2px); text-decoration: none; }
.social svg { width: 20px; height: 20px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.social a:hover svg { stroke: var(--navy); }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: var(--navy);
  box-shadow: 0 8px 24px rgba(255, 107, 53, .45), 0 2px 6px rgba(27, 31, 75, .2);
  transition: transform .2s var(--ease);
}
.wa-float .ico { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.07); }
.wa-float::before { /* pulso suave */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--orange); animation: pulse 2.8s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Aparecer al hacer scroll ---------- */
/* Solo se oculta si JavaScript está activo; main.js lo revela (y tiene un seguro de 6 s). */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Seguridad: el texto dividido nunca debe quedar invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* =========================================================
   Tablet
   ========================================================= */
@media (min-width: 600px) {
  .container { padding: 0 28px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .projects { grid-template-columns: 1fr 1fr; }
  .phone { width: 270px; }
  .chip-search { left: 6%; }
  .chip-msg { right: 6%; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
}

@media (min-width: 768px) {
  .section { padding: 96px 0; }
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan-featured { transform: translateY(-12px); }
  .js .plan-featured.reveal.is-visible, html:not(.js) .plan-featured { transform: translateY(-12px); }
  .plan { padding: 34px 24px 24px; }
}

/* =========================================================
   Escritorio
   ========================================================= */
@media (min-width: 1000px) {
  :root { --header-h: 76px; }
  .menu-toggle { display: none; }
  .nav {
    position: static; display: flex; align-items: center; gap: 28px;
    max-height: none; overflow: visible; padding: 0; background: none; border: 0; box-shadow: none;
    visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .nav ul { display: flex; gap: 26px; margin: 0; }
  .nav li a { padding: 8px 0; border: 0; font-size: .98rem; position: relative; }
  .nav li a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
    background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
  }
  .nav li a:hover::after, .nav li a.is-active::after { transform: scaleX(1); }
  .nav .btn { width: auto; }

  .hero { padding: calc(var(--header-h) + 64px) 0 104px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
  .hero-visual { padding: 0; }
  .phone { width: 290px; }
  .chip-search { left: -10px; top: 80px; }
  .chip-msg { right: -10px; bottom: 90px; }

  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .projects { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .step { flex-direction: column; padding: 26px 22px; }
  .step p { padding-top: 0; }
  .step:not(:last-child)::after { /* conector entre pasos */
    content: ""; position: absolute; top: 48px; right: -18px; width: 18px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--navy) 0 4px, transparent 4px 8px); opacity: .3;
  }
  .footer-grid { grid-template-columns: 2fr 1fr; align-items: end; }
  .wa-float { right: 24px; bottom: 24px; width: 62px; height: 62px; }
  .footer { padding-bottom: 28px; }
}

/* =========================================================
   Movimiento reducido: sin desplazamientos ni animaciones
   continuas; el contenido se muestra directamente.
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .chip { opacity: 1; transform: none; transition: none; }
  .phone, .steam, .wa-float::before { animation: none; }
  .btn:hover, .card:hover, .project:hover .browser, .social a:hover { transform: none; }
}
