/* =================================================================
   IVP STUDIO — ESTILOS GLOBALES + PORTADA
   Idea: cada producto ocupa un campo de color plano.
   Cobalto = IVP Studio · Verde = IVP Invest · Cielo = IVP Health.
   Breakpoints 1100 / 900 / 700 / 420
   ================================================================ */

:root {
    --ink: #0b0d14;
    --soft: #f1f3f8;
    --line: #e0e4ec;
    --muted: #586072;
    --muted-2: #7b8394;

    --cobalt: #1b34f5;
    --cobalt-deep: #1124c4;
    --green: #35d98a;
    --green-ink: #03321d;
    --sky: #cfe3ff;

    --display: "Bricolage Grotesque", Manrope, "Arial Narrow", Arial, sans-serif;
    --body: Manrope, "Segoe UI", Arial, sans-serif;

    --radius: 18px;
    --container: 1320px;
    --gutter: clamp(20px, 4vw, 40px);
    --section-y: clamp(80px, 10vw, 144px);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --h2: clamp(34px, 4.7vw, 66px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img, video, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
i { font-style: normal; }
::selection { background: var(--cobalt); color: #fff; }

:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .dark :focus-visible, .contact :focus-visible, .price-card--featured :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.site-shell, .site-main { overflow-x: clip; }

/* ---------- Tipografía compartida ---------- */
.eyebrow {
    margin: 0 0 18px;
    color: var(--muted);
    font: 700 13px var(--body);
}

.hero h1,
.section h2, .products h2, .dark h2, .pricing h2, .contact h2 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: .98;
}
.section h2, .products h2, .dark h2, .pricing h2 { font-size: var(--h2); max-width: 880px; }

h1 em, h2 em, h3 em { font-style: normal; color: var(--cobalt); }

.intro { max-width: 880px; }
.intro > p:not(.eyebrow) {
    margin: 22px 0 0;
    max-width: 560px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

/* ---------- Botones ---------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 14px 26px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font: 700 15px var(--body);
    cursor: pointer;
    white-space: nowrap;
    transition: transform .25s var(--ease), background .2s ease, color .2s ease, border-color .2s ease;
}
.button i { transition: transform .25s var(--ease); }
.button:hover { transform: translateY(-2px); background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.button:hover i { transform: translateX(4px); }

.button--ghost { background: transparent; color: var(--ink); border-color: #c5cbd8; }
.button--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.button--white { background: #fff; color: var(--ink); border-color: #fff; }
.button--white:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.button--line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.button--line:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }

/* ---------- Contenedores de sección ---------- */
.section {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--section-y) var(--gutter);
}
.dark, .pricing { padding: var(--section-y) var(--gutter); }
.inner { max-width: calc(var(--container) - 2 * var(--gutter)); margin: 0 auto; }

/* =================================================================
   HERO
   ================================================================ */
.hero {
    display: flow-root;
    z-index: 1;
    position: relative;
    background: var(--cobalt);
    color: #fff;
    padding: clamp(20px, 3vw, 40px) var(--gutter) 0;
}
.hero::selection, .hero ::selection { background: #fff; color: var(--cobalt); }

.hero__copy {
    max-width: calc(var(--container) - 2 * var(--gutter));
    margin: 0 auto;
    display: grid;
    gap: 26px;
}
.hero h1 { grid-column: 1 / -1; font-size: clamp(42px, 5.7vw, 88px); line-height: .96; }
.hero h1 em { color: #b9c6ff; }

.hero-news {
    grid-column: 1 / -1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 5px 16px 5px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .13);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    transition: background .2s ease;
}
.hero-news b { flex: none; padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--cobalt); font-weight: 700; }
.hero-news i { transition: transform .25s var(--ease); }
.hero-news:hover { background: rgba(255, 255, 255, .22); }
.hero-news:hover i { transform: translateX(3px); }

.hero__copy > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 60px; }
.lede { margin: 0; max-width: 640px; color: #dbe1ff; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .actions .button { padding-inline: 22px; }

/* Escena: web + app + software */
.stage {
    --mx: 0; --my: 0; --s: .3;
    position: relative;
    z-index: 2;
    max-width: 1360px;
    --pw: clamp(262px, 21.5vw, 304px);
    height: calc(var(--pw) * 2.06);
    margin: clamp(36px, 4vw, 58px) auto -84px;
    perspective: 1700px;
}
.stage > * { transition: transform .5s var(--ease); }
.stage__web, .stage__soft { position: absolute; width: 45%; }
.stage__web {
    left: 0;
    top: 34px;
    transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -8px + (var(--s) - .3) * -60px), 0) rotateY(13deg) rotateZ(-2deg);
    transform-origin: left center;
}
.stage__soft {
    right: 0;
    top: 14px;
    transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -8px + (var(--s) - .3) * 60px), 0) rotateY(-13deg) rotateZ(2deg);
    transform-origin: right center;
}
.stage__phone {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 3;
    transform: translate3d(calc(-50% + var(--mx) * 12px), calc(var(--my) * 8px), 0) rotateY(calc(var(--mx) * 7deg)) rotateX(calc(var(--my) * -4deg));
}
.stage__phone .iphone { --w: var(--pw); }

.stage__tag {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    margin: 16px 6px 0;
    color: #c9d3ff;
    font-size: 14px;
}
.stage__tag b { color: #fff; }
.stage__soft .stage__tag { justify-content: flex-end; }

/* Entrada */
.hero__copy > * { animation: hero-in .8s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .06s; }
.hero__copy > :nth-child(3) { animation-delay: .14s; }
.stage__web .win { animation: stage-l 1.1s .15s var(--ease) both; }
.stage__soft .win { animation: stage-r 1.1s .22s var(--ease) both; }
.stage__phone .iphone { animation: stage-up 1.1s .08s var(--ease) both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes stage-l { from { opacity: 0; transform: translate(-60px, 60px) rotate(-6deg); } }
@keyframes stage-r { from { opacity: 0; transform: translate(60px, 60px) rotate(6deg); } }
@keyframes stage-up { from { opacity: 0; transform: translateY(140px); } }

/* Datos bajo el hero */
.proof {
    max-width: var(--container);
    margin: 0 auto;
    padding: 124px var(--gutter) clamp(36px, 4vw, 52px);
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    gap: 20px 40px;
}
.proof span { display: flex; align-items: baseline; gap: 12px; color: var(--muted); font-size: 16px; }
.proof strong { color: var(--ink); font: 700 clamp(34px, 3.6vw, 52px)/1 var(--display); letter-spacing: -.04em; }

/* =================================================================
   TIRA DE TECNOLOGÍAS
   ================================================================ */
.strip { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); }
.strip__track {
    display: flex;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip__list { display: flex; flex-shrink: 0; gap: clamp(28px, 4vw, 56px); padding-right: clamp(28px, 4vw, 56px); animation: marquee 46s linear infinite; }
.strip:hover .strip__list { animation-play-state: paused; }
.strip__list span { font: 600 clamp(18px, 1.7vw, 24px)/1.2 var(--display); color: #9aa2b2; white-space: nowrap; transition: color .2s ease; }
.strip__list span:hover { color: var(--cobalt); }

/* =================================================================
   PRODUCTOS: paneles apilados
   ================================================================ */
.products { padding: var(--section-y) var(--gutter); }
.products__inner { max-width: calc(var(--container) - 2 * var(--gutter)); margin: 0 auto; }
.products__head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px 60px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.products__head > p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }

.panel {
    position: sticky;
    top: 92px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    min-height: clamp(540px, 44vw, 620px);
    border-radius: clamp(24px, 2.6vw, 36px);
    overflow: hidden;
    isolation: isolate;
}
.panel + .panel { top: 112px; margin-top: 28px; }
.panel--invest { background: var(--green); color: var(--green-ink); }
.panel--health { background: var(--sky); color: #06173d; box-shadow: 0 -24px 60px -30px rgba(3, 20, 60, .35); }

.panel__copy { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 4vw, 60px); }
.panel__copy small { font-size: 14px; font-weight: 700; opacity: .8; }
.panel h3 { margin: 10px 0 18px; font-size: clamp(46px, 6vw, 88px); font-weight: 700; letter-spacing: -.045em; line-height: .9; }
.panel__copy > p { margin: 0; max-width: 440px; font-size: 17px; line-height: 1.6; }
.panel .checklist { font-size: 16px; font-weight: 600; margin: 24px 0 34px; }
.panel .checklist li::before { color: inherit; }
.panel .button { margin-top: auto; }
.panel--invest .button { background: var(--green-ink); border-color: var(--green-ink); }
.panel--invest .button:hover { background: #000; border-color: #000; }
.panel--health .button { background: #0b4bff; border-color: #0b4bff; }
.panel--health .button:hover { background: #06173d; border-color: #06173d; }

.panel__media { position: relative; --s: .5; --mx: 0; min-height: 380px; }
.panel__media .iphone { position: absolute; transition: transform .5s var(--ease); }
.panel__media .iphone--back { --w: clamp(220px, 19vw, 262px); right: 4%; top: 120px; transform: rotate(9deg) translateY(calc((.5 - var(--s)) * 120px)); }
.panel__media .iphone--front { --w: clamp(250px, 21.5vw, 300px); left: 10%; top: 56px; transform: rotate(-5deg) translateY(calc((.5 - var(--s)) * -60px)); }
.panel__media .win { position: absolute; left: 2%; top: clamp(60px, 7vw, 100px); width: 125%; transform: translateX(calc((.5 - var(--s)) * 90px)); transition: transform .5s var(--ease); }

/* =================================================================
   SERVICIOS
   ================================================================ */
.services { margin-top: clamp(40px, 5vw, 68px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.service {
    grid-column: span 5;
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    background: var(--soft);
    overflow: hidden;
}
.service:nth-child(1), .service:nth-child(4) { grid-column: span 7; }
.service__text { padding: clamp(24px, 2.8vw, 38px); padding-top: 0; }
.service h3 { margin: 0 0 8px; font-size: clamp(24px, 2.3vw, 32px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.service__text > p { margin: 0; max-width: 520px; color: var(--muted); }
.service .checklist { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px; font-size: 14.5px; font-weight: 600; }

.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: 15px; }
.checklist li { display: flex; gap: 10px; align-items: baseline; }
.checklist li::before { content: "✓"; color: var(--cobalt); font-weight: 800; }

.demo { position: relative; height: 270px; margin-bottom: 26px; overflow: hidden; }

/* Web: la misma página pasa de escritorio a móvil */
.demo--web { display: grid; place-items: end center; }
.demo--web div {
    width: min(84%, 520px);
    height: 226px;
    padding: 18px;
    border-radius: 16px 16px 0 0;
    background: #fff;
    box-shadow: 0 20px 50px -24px rgba(10, 20, 80, .4);
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: 14px auto auto 1fr;
    gap: 12px;
    animation: demo-web 7s var(--ease) infinite;
}
.demo--web i { border-radius: 6px; background: #e6eaf4; }
.demo--web i:nth-child(1) { grid-column: 1 / -1; width: 60px; background: var(--ink); }
.demo--web i:nth-child(2) { height: 46px; background: var(--ink); border-radius: 8px; }
.demo--web i:nth-child(3) { grid-row: span 2; background: var(--cobalt); border-radius: 12px; min-height: 110px; }
.demo--web i:nth-child(4) { height: 30px; width: 110px; border-radius: 99px; background: #b9c6ff; }
.demo--web i:nth-child(5) { grid-column: 1 / -1; }
@keyframes demo-web {
    0%, 38% { width: min(84%, 520px); grid-template-columns: 1.3fr 1fr; }
    50%, 88% { width: 196px; grid-template-columns: 1fr 0fr; border-radius: 28px 28px 0 0; }
    100% { width: min(84%, 520px); grid-template-columns: 1.3fr 1fr; }
}

/* Software: una tarjeta que avanza sola por el flujo */
.demo--soft { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 28px 28px 0; }
.demo--soft > div { padding: 12px 10px; border-radius: 14px; background: #fff; display: grid; gap: 8px; align-content: start; }
.demo--soft b { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.demo--soft span { height: 40px; border-radius: 9px; background: var(--soft); }
.demo--soft i {
    position: absolute;
    left: 38px;
    top: 168px;
    width: calc((100% - 76px) / 3 - 20px);
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--cobalt);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: 0 14px 26px -12px rgba(27, 52, 245, .8);
    animation: demo-soft 7s var(--ease) infinite;
}
@keyframes demo-soft {
    0%, 22% { transform: none; }
    32%, 54% { transform: translateX(calc(100% + 30px)); }
    64%, 90% { transform: translateX(calc(200% + 60px)); background: #0f9d58; }
    100% { transform: none; }
}

/* SEO: su negocio sube hasta el primer resultado */
.demo--seo { padding: 28px 28px 0; }
.demo--seo p { margin: 0 0 14px; padding: 11px 18px; border-radius: 99px; background: #fff; color: var(--muted); font-size: 14px; font-weight: 600; box-shadow: 0 10px 26px -16px rgba(10, 20, 80, .5); }
.demo--seo ol { list-style: none; position: relative; margin: 0; padding: 0; height: 190px; }
.demo--seo li { position: absolute; inset: 0 0 auto; height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-radius: 12px; background: #fff; }
.demo--seo li::before { content: ""; width: 22px; height: 22px; border-radius: 6px; background: #e0e5f0; }
.demo--seo li::after { content: ""; width: 46%; height: 9px; border-radius: 9px; background: #e0e5f0; }
.demo--seo li:nth-child(1) { animation: demo-seo-1 7s var(--ease) infinite; }
.demo--seo li:nth-child(2) { transform: translateY(54px); animation: demo-seo-2 7s var(--ease) infinite; }
.demo--seo li:nth-child(3) { transform: translateY(108px); animation: demo-seo-3 7s var(--ease) infinite; z-index: 2; background: var(--cobalt); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 16px 30px -16px rgba(27, 52, 245, .9); }
.demo--seo li:nth-child(3)::before { background: #fff; }
.demo--seo li:nth-child(3)::after { display: none; }
@keyframes demo-seo-1 { 0%, 42% { transform: none; } 52%, 92% { transform: translateY(54px); } 100% { transform: none; } }
@keyframes demo-seo-2 { 0%, 20% { transform: translateY(54px); } 30%, 92% { transform: translateY(108px); } 100% { transform: translateY(54px); } }
@keyframes demo-seo-3 { 0%, 20% { transform: translateY(108px); } 30%, 42% { transform: translateY(54px); } 52%, 92% { transform: none; } 100% { transform: translateY(108px); } }

/* Hosting: latido */
.demo--host { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 30px clamp(24px, 3vw, 40px) 0; }
.demo--host p { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.demo--host p::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #0f9d58; animation: pulse 1.8s infinite; }
.demo--host div { display: flex; align-items: flex-end; gap: clamp(3px, .5vw, 6px); height: 130px; }
.demo--host i { flex: 1; height: 100%; border-radius: 99px; background: #0f9d58; transform-origin: bottom; animation: demo-host 2.6s calc(var(--i) * 70ms) ease-in-out infinite; }
@keyframes demo-host { 0%, 100% { transform: scaleY(.34); opacity: .35; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(15, 157, 88, .5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(15, 157, 88, 0); } }

/* =================================================================
   SECCIÓN OSCURA
   ================================================================ */
.dark { background: var(--ink); color: #fff; }
.dark h2 { font-size: clamp(40px, 6.6vw, 100px); max-width: 1200px; line-height: 1; }
.dark h2 span { opacity: .18; transition: opacity .35s ease; }
.dark h2 span.is-lit { opacity: 1; }

.benefits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(44px, 6vw, 80px); }
.benefits b {
    padding: 14px 24px;
    border-radius: 999px;
    background: #1a1d28;
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 600;
    transition: background .25s ease, transform .25s var(--ease);
}
.benefits b:hover { background: var(--cobalt); transform: translateY(-3px); }

.dark-cta { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; margin-top: clamp(44px, 6vw, 80px); padding-top: 32px; border-top: 1px solid #262a38; }
.dark-cta p { margin: 0; font: 600 clamp(22px, 2.3vw, 32px)/1.2 var(--display); letter-spacing: -.02em; }
.dark .button--white:hover { background: var(--cobalt); border-color: var(--cobalt); }

/* =================================================================
   PROYECTOS
   ================================================================ */
.project-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.projects { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(44px, 5vw, 76px) clamp(20px, 2.4vw, 34px); }
.project:nth-child(even) { margin-top: clamp(0px, 7vw, 110px); margin-bottom: clamp(-110px, -7vw, 0px); }
.project__image {
    position: relative;
    display: block;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    border-radius: 28px;
    background: var(--c, var(--soft));
}
.project__image .win { position: absolute; left: 10%; top: 16%; width: 118%; border-radius: 14px; transition: transform .7s var(--ease); }
.project:hover .project__image .win { transform: translate(-4.5%, -5%) scale(1.03); }
.project__go {
    position: absolute;
    right: 20px;
    bottom: 20px;
    padding: 12px 20px;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .4s var(--ease);
}
.project:hover .project__go, .project__image:focus-visible .project__go { opacity: 1; transform: none; }
.project__meta { padding: 22px 4px 0; }
.project__meta h3 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin: 0 0 8px; font-size: clamp(24px, 2.3vw, 32px); font-weight: 700; letter-spacing: -.03em; }
.project__meta h3 small { color: var(--muted-2); font: 600 14px var(--body); letter-spacing: 0; }
.project__meta > p { margin: 0; max-width: 560px; color: var(--muted); }
.project__link { display: inline-flex; gap: 8px; margin-top: 14px; font-weight: 700; color: var(--cobalt); }
.project__link i { transition: transform .25s var(--ease); }
.project__link:hover i { transform: translateX(4px); }

/* =================================================================
   PROCESO
   ================================================================ */
.process { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); padding-top: calc(var(--section-y) + clamp(0px, 7vw, 110px)); }
.process .intro { position: sticky; top: 120px; align-self: start; }
.process ol { --p: 0; position: relative; list-style: none; margin: 0; padding: 0; }
.process ol::before, .process ol::after { content: ""; position: absolute; left: 21px; top: 22px; bottom: 60px; width: 3px; border-radius: 3px; background: var(--line); }
.process ol::after { background: var(--cobalt); transform: scaleY(var(--p)); transform-origin: top; }
.process li { position: relative; z-index: 1; display: grid; grid-template-columns: 45px 1fr; gap: 24px; padding-bottom: 44px; }
.process li:last-child { padding-bottom: 0; }
.process li small { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50%; background: var(--cobalt); color: #fff; font: 700 17px var(--display); box-shadow: 0 0 0 8px #fff; }
.process h3 { margin: 4px 0 4px; font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -.03em; }
.process li p { margin: 0; color: var(--muted); }

/* =================================================================
   PLANES
   ================================================================ */
.pricing { background: var(--soft); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(40px, 5vw, 68px); }
.price-card { display: flex; flex-direction: column; padding: 30px 26px 26px; border-radius: 26px; background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.price-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(10, 20, 80, .35); }
.price-card h3 { margin: 0 0 12px; font-size: 25px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.price-card > p { margin: 0; color: var(--muted); font-size: 15px; }
.price-card .checklist { flex: 1; align-content: start; margin-bottom: 30px; }
.price-card .button { width: 100%; padding-inline: 12px; }
.price-card .badge { align-self: flex-start; margin: -4px 0 16px; padding: 5px 12px; border-radius: 99px; background: #fff; color: var(--cobalt); font-size: 13px; font-weight: 700; }
.price-card--featured { background: var(--cobalt); color: #fff; }
.price-card--featured > p { color: #dbe1ff; }
.price-card--featured .checklist li::before { color: #b9c6ff; }

/* =================================================================
   FAQ
   ================================================================ */
.faq-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 100px); }
.faq-section .intro { position: sticky; top: 120px; align-self: start; }
.faqs { border-top: 1px solid var(--line); }
.faqs details { border-bottom: 1px solid var(--line); }
.faqs summary { padding: 22px 0; cursor: pointer; list-style: none; font: 600 clamp(18px, 1.5vw, 21px)/1.3 var(--display); letter-spacing: -.01em; display: flex; justify-content: space-between; align-items: center; gap: 20px; transition: color .2s ease; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary:hover { color: var(--cobalt); }
.faqs summary i { flex-shrink: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); font: 500 20px var(--body); transition: transform .3s var(--ease), background .25s ease, color .25s ease; }
.faqs details[open] summary i { transform: rotate(45deg); background: var(--cobalt); color: #fff; }
.faqs details p { margin: 0 56px 24px 0; color: var(--muted); line-height: 1.7; animation: rise-in .35s var(--ease) both; }

/* =================================================================
   CONTACTO
   ================================================================ */
.contact-wrap { scroll-margin-top: 60px; background: var(--cobalt); color: #fff; padding: var(--section-y) var(--gutter); }
.contact { max-width: calc(var(--container) - 2 * var(--gutter)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact .eyebrow { color: #c9d3ff; }
.contact h2 { font-size: clamp(42px, 5.6vw, 84px); line-height: .95; }
.contact__intro > p:not(.eyebrow) { margin: 24px 0 34px; max-width: 420px; color: #dbe1ff; font-size: 17px; }
.contact-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 420px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .28); font-size: 17px; font-weight: 700; word-break: break-word; transition: padding .25s var(--ease); }
.contact-link:hover { padding-left: 10px; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; padding: clamp(22px, 3vw, 44px); border-radius: 30px; background: #fff; color: var(--ink); }
.contact-form :focus-visible { outline-color: var(--cobalt); }
.contact-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px 16px; border: 1.5px solid transparent; border-radius: 14px; background: var(--soft); color: var(--ink); font: 500 16px var(--body); /* 16px evita el zoom en iOS */ resize: vertical; transition: border-color .2s ease, background .2s ease; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #737b8c; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--cobalt); background: #fff; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form .button { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.contact-form .button:hover { background: var(--ink); border-color: var(--ink); }
.contact-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.contact-form__foot small { flex: 1; min-width: 180px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.contact-form__foot small a { text-decoration: underline; }
.form-notice { padding: 14px 18px; border-radius: 14px; font-size: 15px; font-weight: 600; }
.form-notice--ok { background: #d5f6e4; color: #064d2b; }
.form-notice--error { background: #ffe0e0; color: #8f1111; }

/* =================================================================
   ANIMACIONES
   ================================================================ */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal--visible { opacity: 1; transform: none; }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes marquee { to { transform: translateX(-100%); } }

/* =================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
    .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stage__web, .stage__soft { width: 52%; }
}

@media (max-width: 900px) {
    .products__head, .process, .faq-section, .contact { grid-template-columns: minmax(0, 1fr); }
    .process .intro, .faq-section .intro { position: static; }
    .panel, .panel + .panel { position: relative; top: 0; grid-template-columns: minmax(0, 1fr); }
    .panel__copy .button { margin-top: 0; }
    .panel--invest { clip-path: inset(0 round 24px); }
    .panel__media { min-height: 440px; }
    .panel--health .panel__media { min-height: 320px; }
    .panel__media .iphone--front { left: 8%; top: 10px; }
    .panel__media .iphone--back { right: 8%; top: 60px; }
    .panel__media .win { left: clamp(22px, 4vw, 60px); top: 10px; width: 130%; }
    .service, .service:nth-child(1), .service:nth-child(4) { grid-column: 1 / -1; }
    .project-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
    .hero h1 { font-size: clamp(42px, 12.4vw, 64px); }
    .stage { --pw: 254px; margin-bottom: -70px; }
    .stage__web, .stage__soft { width: 320px; }
    .stage__web { left: -150px; top: 30px; }
    .stage__soft { right: -170px; top: 180px; }
    .stage__tag { display: none; }
    .proof { grid-template-columns: 1fr; gap: 14px; padding-top: 104px; }
    .proof span { justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
    .proof span:last-child { border-bottom: 0; padding-bottom: 0; }

    .projects { grid-template-columns: minmax(0, 1fr); }
    .project:nth-child(even) { margin-top: 0; margin-bottom: 0; }
    .project__go { display: none; }
    .project__image .win { top: 8%; left: 8%; width: 112%; }
    .process { padding-top: var(--section-y); }
    .plans { grid-template-columns: minmax(0, 1fr); }
    .demo { height: 240px; }
    .demo--web div { height: 206px; }
    .demo--soft { padding-inline: 18px; }
    .demo--soft i { left: 28px; width: calc((100% - 56px) / 3 - 20px); font-size: 11px; }
    .faqs details p { margin-right: 0; }
    .contact-form { grid-template-columns: minmax(0, 1fr); }
    .contact-form__foot .button, .dark-cta .button { width: 100%; }
}

@media (max-width: 420px) {
    .actions .button { width: 100%; }
    .hero-news span { white-space: normal; }
    .panel .button { width: 100%; }
    .panel__media .iphone--front { --w: 210px; left: 4%; }
    .panel__media .iphone--back { --w: 186px; right: 2%; }
}

@media (hover: none) {
    .price-card:hover { transform: none; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .js .reveal { opacity: 1; transform: none; }
    .dark h2 span { opacity: 1; }
    .strip__list { animation: none !important; }
}
