/* =========================================================
   TAGBACK — STYLES v59
   Hero animado palabra por palabra + reveal global
   WhatsApp + Planes con precios + Quiénes somos + Form estados
   ========================================================= */

@font-face {
    font-family: "Syne";
    src: url("../assets/fonts/Syne-VariableFont_wght.ttf") format("truetype");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "IBMPlexMonoMedium";
    src: url("../assets/fonts/ibm-plex-mono.medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "SFUIDisplayHeavy";
    src: url("../assets/fonts/OpenSans-Semibold-1.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* =========================================================
   VARIABLES
   ========================================================= */
:root {
    --blue: #3e5c76;
    --blue-bright: #748cab;
    --blue-dark: #1d2d44;

    --bg-main: #f0ebd8;
    --bg-secondary: #e8e2cc;
    --bg-alt: #dcd5be;
    --bg-elevated: #faf6e8;

    --text-primary: #0d1321;
    --text-secondary: #1d2d44;
    --text-muted: #5a6675;

    --line: rgba(29, 45, 68, 0.15);
    --line-strong: rgba(62, 92, 118, 0.35);

    --success: #4a8f6a;
    --error: #b85c5c;
    --whatsapp: #25d366;
    --whatsapp-dark: #128c7e;

    --title: "SFUIDisplayHeavy", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --body: "IBMPlexMonoMedium", "IBM Plex Mono", "SF Mono", monospace;
    --brand: "Syne", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --container: 1240px;
    --section-padding: 100px;
    --radius: 8px;
    --transition: 0.2s ease;

    --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

    --section-title-size: clamp(2rem, 3.1vw, 2.8rem);
    --section-copy-size: clamp(0.92rem, 1vw, 1rem);

    --head-to-content: 60px;
    --grid-gap: 24px;

    /* reveal timing unificado */
    --reveal-duration: 700ms;
    --reveal-shift: 18px;
}

/* =========================================================
   RESET Y BASE
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }

body {
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--body);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 110px;
    background: var(--bg-main);
    overflow: hidden;
}
.hero-canvas-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, #f5f1e2 0%, #f0ebd8 100%);
}
.hero-canvas-container canvas { width: 100%; height: 100%; display: block; }
.hero .container { position: relative; z-index: 2; }
.site-header, main, .site-footer { position: relative; z-index: 2; }

/* =========================================================
   TIPOGRAFÍA BASE
   ========================================================= */
h1, h2, h3, h4, h5, h6,
.section-title,
.plan-card h3,
.quote-form-title,
.legal-content h2,
.legal-content h3 {
    font-family: var(--title);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.logo-wordmark,
.footer-brand-name,
.footer-credit-wordmark {
    font-family: var(--brand);
    font-weight: 800;
}

/* =========================================================
   SKIP LINK
   ========================================================= */
.skip-link {
    position: absolute;
    top: -100px; left: 20px;
    background: var(--blue);
    color: var(--bg-main);
    padding: 10px 16px;
    border-radius: 4px;
    z-index: 9999;
    font-family: var(--body);
    font-size: 0.8rem;
    transition: top 0.2s ease;
    font-weight: 500;
}
.skip-link:focus { top: 20px; }

/* =========================================================
   CONTENEDOR Y SECTION HEAD
   ========================================================= */
.container {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
}
.section { padding: var(--section-padding) 0; }

.section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: var(--head-to-content);
    flex-wrap: wrap;
}
.section-title {
    font-size: var(--section-title-size);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin: 0;
    max-width: 820px;
    text-wrap: balance;
}
.section-desc {
    max-width: 62ch;
    color: var(--text-secondary);
    font-size: var(--section-copy-size);
    line-height: 1.75;
    margin: 0;
}
#servicios .section-head,
#soluciones .section-head,
#beneficios .section-head,
#trabajos .section-head,
#proceso .section-head,
#planes .section-head {
    text-align: left;
}

/* =========================================================
   REVEAL GLOBAL (IntersectionObserver)
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translate3d(0, var(--reveal-shift), 0);
    transition: opacity var(--reveal-duration) var(--ease-out) var(--reveal-delay, 0ms),
                transform var(--reveal-duration) var(--ease-out) var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1;
    transform: none;
    will-change: auto;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: background var(--transition), border-color var(--transition);
}
.site-header.scrolled {
    background: rgba(240, 235, 216, 0.88);
    border-color: var(--line);
    -webkit-backdrop-filter: blur(12px) saturate(1.1);
    backdrop-filter: blur(12px) saturate(1.1);
}
.header-inner {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; cursor: pointer; }
.logo-icon { width: 42px; height: 42px; flex: 0 0 42px; }
.logo-text { display: flex; align-items: baseline; gap: 6px; }
.logo-wordmark { color: var(--text-primary); font-size: 1.5rem; letter-spacing: -0.02em; }

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.4vw, 22px);
    margin-left: auto;
}
.main-nav > a {
    color: var(--text-secondary);
    font-family: var(--body);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.22s ease, opacity 0.22s ease;
    position: relative;
    white-space: nowrap;
}
.main-nav > a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -6px;
    width: 100%; height: 1px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 220ms var(--ease-out);
}
.main-nav > a:hover { color: var(--blue-dark); }
.main-nav > a:hover::after { transform: scaleX(1); transform-origin: left center; }
.main-nav > a.is-active { color: var(--blue-dark); }
.main-nav > a.is-active::after { transform: scaleX(1); transform-origin: left center; }
.main-nav a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 2px; }

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: rgba(29, 45, 68, 0.03);
    margin-left: 12px;
    opacity: 0.35;
    transition: opacity 0.3s ease, background 0.3s ease;
}
.lang-switcher:hover,
.lang-switcher:focus-within {
    opacity: 1;
    background: rgba(29, 45, 68, 0.06);
}
.lang-btn {
    background: transparent;
    border: 0;
    color: var(--text-secondary);
    font-family: var(--body);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    padding: 5px 8px;
    border-radius: 2px;
    transition: color 200ms var(--ease-soft), background 200ms var(--ease-soft);
}
.lang-btn.active { color: var(--bg-main); background: var(--blue-dark); font-weight: 600; }
.lang-btn:hover:not(.active) { color: var(--text-primary); }

.menu-toggle {
    display: none;
    width: 38px; height: 38px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: transparent;
    position: relative;
    z-index: 1101;
}
.menu-toggle span {
    position: absolute;
    left: 50%;
    width: 18px; height: 1.5px;
    background: var(--text-primary);
    transform: translateX(-50%);
    transition: transform 250ms var(--ease-soft), top 250ms var(--ease-soft);
}
.menu-toggle span:first-child { top: 14px; }
.menu-toggle span:last-child { top: 21px; }
.menu-toggle.active span:first-child,
.menu-toggle[aria-expanded="true"] span:first-child {
    top: 17.5px;
    transform: translateX(-50%) rotate(45deg);
}
.menu-toggle.active span:last-child,
.menu-toggle[aria-expanded="true"] span:last-child {
    top: 17.5px;
    transform: translateX(-50%) rotate(-45deg);
}

/* =========================================================
   HERO CONTENT — TÍTULO PALABRA POR PALABRA + SUBRAYADO
   ========================================================= */
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 900px) {
    .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}
.hero-content { position: relative; z-index: 2; }

.hero-title {
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 28px;
    max-width: 800px;
}
.hero-title .reveal-line {
    display: block;
    overflow: hidden;
}
.hero-title .word {
    display: inline-block;
    transform: translate3d(0, 110%, 0);
    opacity: 0;
    filter: blur(4px);
    animation: hero-word-in 900ms var(--ease-out) forwards;
    animation-delay: calc(120ms + var(--i, 1) * 90ms);
    will-change: transform, opacity, filter;
}
.hero-title .word--accent {
    color: var(--blue);
    position: relative;
}
.hero-title .word--accent .underline {
    position: absolute;
    left: 0; right: 0;
    bottom: 0.02em;
    height: 0.08em;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left center;
    animation: hero-underline 700ms var(--ease-out) forwards;
    animation-delay: 1400ms;
}
@keyframes hero-word-in {
    to { transform: translate3d(0, 0, 0); opacity: 1; filter: blur(0); }
}
@keyframes hero-underline {
    to { transform: scaleX(1); }
}

.hero-lead {
    max-width: 560px;
    color: var(--text-secondary);
    font-size: var(--section-copy-size);
    line-height: 1.75;
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    filter: blur(4px);
    animation: hero-soft-in 800ms var(--ease-out) 1200ms forwards;
}
@keyframes hero-soft-in {
    to { transform: translate3d(0, 0, 0); opacity: 1; filter: blur(0); }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    animation: hero-soft-in 700ms var(--ease-out) 1450ms forwards;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: var(--body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 200ms var(--ease-soft), color 200ms var(--ease-soft),
                border-color 200ms var(--ease-soft), transform 200ms var(--ease-soft);
}
.button-primary { border-color: var(--blue); background: var(--blue); color: var(--bg-main); }
.button-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button-secondary { border-color: var(--line-strong); background: transparent; color: var(--text-primary); }
.button-secondary:hover { border-color: var(--blue); color: var(--blue); background: rgba(62, 92, 118, 0.06); }
.button:disabled, .button[disabled] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

/* WhatsApp */
.button-whatsapp {
    background: var(--whatsapp);
    border-color: var(--whatsapp);
    color: #ffffff;
}
.button-whatsapp:hover {
    background: var(--whatsapp-dark);
    border-color: var(--whatsapp-dark);
}
.button-whatsapp--block { width: 100%; }
.whatsapp-icon { flex-shrink: 0; }

/* Botón flotante WhatsApp (mobile) */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9400;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(18, 140, 126, 0.35);
    transition: transform 200ms var(--ease-out), background 200ms var(--ease-soft), box-shadow 200ms var(--ease-soft);
}
.whatsapp-float:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(18, 140, 126, 0.45);
}
.whatsapp-float:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; }
@media (max-width: 900px) {
    .whatsapp-float { display: inline-flex; }
}

/* =========================================================
   SERVICIOS (Acordeón Horizontal)
   ========================================================= */
.services { border-top: 1px solid var(--line); }
.services-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.services-intro { position: sticky; top: 120px; }
.services-intro .section-title { margin-bottom: 20px; }

.accordion-horizontal {
    display: flex;
    flex-direction: row;
    gap: 12px;
    min-height: 520px;
    width: 100%;
    align-items: stretch;
}
.service-card {
    position: relative;
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 80px;
    transition: flex-grow 600ms var(--ease-out), border-color 250ms var(--ease-soft),
                background 250ms var(--ease-soft), box-shadow 250ms var(--ease-soft),
                opacity var(--reveal-duration) var(--ease-out) var(--reveal-delay, 0ms),
                transform var(--reveal-duration) var(--ease-out) var(--reveal-delay, 0ms);
    box-shadow: 0 1px 2px rgba(13, 19, 33, 0.06);
    cursor: pointer;
}
.service-card:hover, .service-card.is-open {
    border-color: var(--blue);
    box-shadow: 0 2px 12px rgba(62, 92, 118, 0.12);
    background: var(--bg-alt);
}
.service-card.is-open { flex: 8; }

.service-card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    padding: 30px 24px;
    background: transparent;
    border: 0;
    text-align: left;
    height: 100%;
    justify-content: flex-start;
    z-index: 3;
}
.service-card-icon {
    width: 32px;
    height: 32px;
    color: var(--blue);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.service-card-title {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.2;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    transition: transform 480ms var(--ease-out), color 300ms ease, opacity 300ms ease;
}
.service-card:not(.is-open) .service-card-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    margin-top: auto;
    margin-bottom: 20px;
    white-space: nowrap;
    opacity: 0.7;
}
.service-card.is-open .service-card-title {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    transform: translateY(0);
    margin-top: 0;
    margin-bottom: 0;
    color: var(--text-primary);
    opacity: 1;
}

.service-card-panel {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 0 24px 30px;
    background: var(--bg-alt);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 400ms var(--ease-soft) 0ms, transform 400ms var(--ease-soft) 0ms, visibility 0ms linear 400ms;
    pointer-events: none;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.service-card.is-open .service-card-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 400ms var(--ease-soft) 200ms, transform 400ms var(--ease-soft) 200ms, visibility 0ms linear 0ms;
}
.service-card-panel-inner { width: 100%; }
.service-card-panel p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 0 0 0 20px;
    border-left: 2px solid var(--blue);
    font-size: 0.95rem;
}

/* =========================================================
   SOLUCIONES A MEDIDA
   ========================================================= */
.custom-solutions { border-top: 1px solid var(--line); background: var(--bg-main); }
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
    align-items: stretch;
}
.solution-card {
    background: var(--bg-secondary);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease,
                opacity var(--reveal-duration) var(--ease-out) var(--reveal-delay, 0ms),
                box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
    color: var(--text-primary);
}
.solution-card:hover {
    background: var(--bg-alt);
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 19, 33, 0.08);
}
.solution-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--blue);
    margin-top: 4px;
    transition: color 0.3s ease;
}
.solution-card:hover .solution-icon { color: var(--blue-dark); }
.solution-content h3 {
    font-family: var(--title);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px;
}
.solution-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* =========================================================
   BENEFICIOS
   ========================================================= */
.why { border-top: 1px solid var(--line); background: var(--bg-secondary); }
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 40px;
    align-items: stretch;
}
.benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    height: 100%;
}
.benefit-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--blue);
    margin-top: 4px;
}
.benefit-content h3 {
    font-family: var(--title);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px;
}
.benefit-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* =========================================================
   WORK / PROYECTOS
   ========================================================= */
.work { padding-top: 120px; padding-bottom: 140px; border-top: 1px solid var(--line); }
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
    align-items: stretch;
}
.work-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: border-color 250ms var(--ease-soft), box-shadow 250ms var(--ease-soft),
                transform 250ms var(--ease-soft), background 250ms var(--ease-soft),
                opacity var(--reveal-duration) var(--ease-out) var(--reveal-delay, 0ms);
    box-shadow: 0 2px 10px rgba(13, 19, 33, 0.06);
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
    padding: 20px;
    cursor: pointer;
    height: 100%;
}
.work-card:hover {
    border-color: var(--blue);
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(13, 19, 33, 0.12), 0 0 20px rgba(62, 92, 118, 0.08);
    background: var(--bg-alt);
}
.work-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--body);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 14px;
}
.work-card-name {
    font-size: 1.3rem;
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0 0 14px;
}
.work-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-alt);
}
.work-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 700ms var(--ease-out);
}
.work-card:hover .work-card-image img { transform: scale(1.06); }

.work-card-overlay {
    padding: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    background: transparent;
    flex: 1 1 auto;
}
.work-card-category {
    font-family: var(--body);
    font-size: 0.66rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 500;
}
.work-card-claim {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1 1 auto;
}
.work-card-link {
    font-family: var(--body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--blue);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    transition: color 200ms var(--ease-soft), gap 200ms var(--ease-soft);
}
.work-card-link:hover { color: var(--blue-dark); gap: 12px; }
.work-card-link--soon {
    color: var(--text-muted);
    cursor: default;
}
.work-card-link--soon:hover { color: var(--text-muted); gap: 8px; }
.work-card--soon { cursor: default; }
.work-card--soon:hover { transform: none; }
.work-card--soon:hover .work-card-image img { transform: none; }

/* =========================================================
   QUIÉNES SOMOS
   ========================================================= */
.about { border-top: 1px solid var(--line); background: var(--bg-main); }
.about-inner {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}
.about-media { display: flex; justify-content: center; }
.about-photo {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--body);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-content .section-title { margin-bottom: 20px; }
.about-content .section-desc + .section-desc { margin-top: 14px; }
.about-content strong { color: var(--blue-dark); font-weight: 600; }

/* =========================================================
   TESTIMONIOS
   ========================================================= */
.testimonials { border-top: 1px solid var(--line); background: var(--bg-secondary); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap);
}
.testimonial-card {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.testimonial-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
}
.testimonial-card footer {
    font-family: var(--body);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}
.testimonial-card footer strong { color: var(--text-primary); font-weight: 600; }

/* =========================================================
   PROCESO
   ========================================================= */
.process { border-top: 1px solid var(--line); }
.process-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border: 0;
}
.process-item {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid var(--line-strong);
    position: relative;
    padding: 0;
    text-align: left;
    transition: opacity var(--reveal-duration) var(--ease-out) var(--reveal-delay, 0ms),
                transform var(--reveal-duration) var(--ease-out) var(--reveal-delay, 0ms);
}
.process-item + .process-item { border-left: 1px solid var(--line); }
.process-item:hover {
    background: radial-gradient(ellipse at 50% 0, rgba(62, 92, 118, 0.08), transparent 70%);
}
.process-item summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    padding: 26px 20px 52px;
    min-height: 220px;
    cursor: pointer;
    list-style: none;
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 200ms var(--ease-soft);
    text-align: left;
    position: relative;
}
.process-item summary::-webkit-details-marker { display: none; }

.process-num {
    font-family: var(--title);
    font-size: 0.72rem;
    font-weight: 900;
    color: var(--blue);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 6px;
}

.process-item summary::before {
    content: "";
    display: block;
    width: 36px; height: 36px;
    border: 1px solid rgba(62, 92, 118, 0.5);
    background: radial-gradient(circle, rgba(62, 92, 118, 0.15), transparent 68%);
    animation: process-pulse 4.8s ease-in-out infinite;
    flex-shrink: 0;
    margin-top: 8px;
}
.process-item:nth-child(1) summary::before {
    border-radius: 50%;
    background-image: radial-gradient(circle at 50% 50%, var(--blue) 0 3px, transparent 4px), radial-gradient(circle, rgba(62, 92, 118, 0.15), transparent 68%);
}
.process-item:nth-child(2) summary::before { transform: rotate(45deg); }
.process-item:nth-child(3) summary::before { border-radius: 50% 50% 4px 50%; }
.process-item:nth-child(4) summary::before {
    border-radius: 50%;
    box-shadow: inset 0 0 0 8px rgba(62, 92, 118, 0.08);
}
.process-item:nth-child(5) summary::before { transform: rotate(45deg); border-radius: 4px; }
.process-item:nth-child(2) summary::before { animation-delay: 1.2s; }
.process-item:nth-child(3) summary::before { animation-delay: 2.4s; }
.process-item:nth-child(4) summary::before { animation-delay: 3.6s; }
.process-item:nth-child(5) summary::before { animation-delay: 4.8s; }

@keyframes process-pulse {
    0%, 18%, 100% { border-color: rgba(62, 92, 118, 0.35); box-shadow: 0 0 0 0 rgba(62, 92, 118, 0); filter: brightness(0.95); }
    8% { border-color: var(--blue); box-shadow: 0 0 24px 5px rgba(62, 92, 118, 0.25); filter: brightness(1.1); }
}

.process-item summary::after {
    content: "+";
    font-family: var(--body);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--blue);
    flex-shrink: 0;
    position: absolute;
    bottom: 18px; right: 24px;
    transition: transform 300ms var(--ease-soft);
}
.process-item[open] summary::after { content: "−"; transform: rotate(180deg); }
.process-item summary:hover { color: var(--blue); }
.process-item p {
    padding: 0 20px 10px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
    text-align: left;
}
.process-time {
    display: block;
    padding: 0 20px 24px;
    font-family: var(--body);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* =========================================================
   PLANES
   ========================================================= */
.plans { border-top: 1px solid var(--line); }
.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}
.plan-card {
    position: relative;
    padding: 32px 24px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: border-color 250ms var(--ease-soft), box-shadow 250ms var(--ease-soft),
                transform 250ms var(--ease-soft), background 250ms var(--ease-soft),
                opacity var(--reveal-duration) var(--ease-out) var(--reveal-delay, 0ms);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(13, 19, 33, 0.05);
}
.plan-card:hover {
    border-color: var(--blue);
    background: var(--bg-alt);
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(13, 19, 33, 0.1), 0 0 20px rgba(62, 92, 118, 0.08);
}
.plan-card--featured {
    border-color: var(--blue);
    box-shadow: 0 2px 10px rgba(62, 92, 118, 0.15);
}
.plan-card--featured:hover {
    box-shadow: 0 14px 32px rgba(13, 19, 33, 0.12), 0 0 24px rgba(62, 92, 118, 0.18);
}
.plan-badge {
    position: absolute;
    top: 0; right: 0;
    background: var(--blue);
    color: var(--bg-main);
    font-family: var(--body);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 0 4px 0 4px;
}
.plan-label {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--blue);
    font-family: var(--body);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
}
.plan-card h3 {
    font-size: 1.35rem;
    line-height: 1.15;
    color: var(--text-primary);
    margin: 0 0 14px;
}
.plan-price {
    font-family: var(--title);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--blue);
    margin: 0 0 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.plan-price small {
    font-family: var(--body);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    display: block;
    letter-spacing: 0.06em;
    margin-top: 4px;
}
.plan-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1 1 auto;
}
.plan-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 20px 0 0;
    margin: 0;
    border-top: 1px solid var(--line);
}
.plan-features li {
    position: relative;
    padding-left: 22px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}
.plan-features li::before {
    content: "›";
    position: absolute;
    left: 0; top: -1px;
    color: var(--blue);
    font-size: 1rem;
    font-weight: bold;
}
.plan-card::after {
    content: attr(data-cta);
    margin-top: auto;
    padding-top: 24px;
    color: var(--blue);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { border-top: 1px solid var(--line); }
.faq-content .section-head { margin-bottom: 28px; }
.faq-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    border-top: 1px solid var(--line);
    margin: 0;
}
.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 0;
    text-align: left;
    transition: border-color 0.25s ease,
                opacity var(--reveal-duration) var(--ease-out) var(--reveal-delay, 0ms),
                transform var(--reveal-duration) var(--ease-out) var(--reveal-delay, 0ms);
}
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 200ms var(--ease-soft);
    text-align: left;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-family: var(--body);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--blue);
    flex-shrink: 0;
    transition: transform 300ms var(--ease-soft);
}
.faq-item[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq-item summary:hover { color: var(--blue); }
.faq-item[open] summary { color: var(--blue-dark); }
.faq-item p {
    padding: 0 0 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 760px;
    margin: 0;
    text-align: left;
    animation: faq-fade 300ms var(--ease-soft);
}
@keyframes faq-fade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   CONTACTO / FORMULARIO
   ========================================================= */
.contact { border-top: 1px solid var(--line); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}
.quote-form {
    width: 100%;
    padding: 36px;
    background: var(--bg-secondary);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(13, 19, 33, 0.05);
}
.quote-form-title { font-size: 1.35rem; line-height: 1.2; color: var(--text-primary); margin: 0 0 8px; }
.quote-form-lead { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 24px; }

.form-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.quote-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field-full { grid-column: 1 / -1; }
.form-fieldset { border: 0; padding: 0; margin: 0; }
.form-fieldset legend {
    color: var(--blue);
    font-family: var(--body);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding: 0;
}
.form-field label {
    color: var(--blue);
    font-family: var(--body);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    font-weight: 500;
    text-transform: uppercase;
}
.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    outline: none;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-family: var(--body);
    font-size: 0.9rem;
    transition: border-color 200ms var(--ease-soft), box-shadow 200ms var(--ease-soft);
}
.form-field input, .form-field select { min-height: 44px; padding: 0 14px; }
.form-field textarea { min-height: 110px; padding: 14px; resize: vertical; line-height: 1.6; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-muted); }
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: var(--blue); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(62, 92, 118, 0.18);
}
.form-field input[aria-invalid="true"], .form-field textarea[aria-invalid="true"],
.form-field select[aria-invalid="true"] { border-color: var(--error); }
.form-field-error {
    font-family: var(--body);
    font-size: 0.68rem;
    color: var(--error);
    letter-spacing: 0.02em;
    margin-top: 2px;
    display: none;
}
.form-field-error.is-visible { display: block; }
.quote-form-submit { margin-top: 24px; }
.form-response-time {
    margin-top: 12px;
    font-family: var(--body);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: var(--blue-dark);
    line-height: 1.5;
}
.form-legal-note {
    margin-top: 8px;
    font-family: var(--body);
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    line-height: 1.5;
}
.form-legal-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.form-legal-note a:hover { color: var(--blue-dark); }
.form-feedback {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 4px;
    font-family: var(--body);
    font-size: 0.78rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
    border-left: 3px solid transparent;
}
.form-feedback--success { background: rgba(74, 143, 106, 0.14); border-left-color: var(--success); color: #2d5a40; }
.form-feedback--error { background: rgba(184, 92, 92, 0.12); border-left-color: var(--error); color: #7a2f2f; }
.form-feedback--info { background: rgba(62, 92, 118, 0.12); border-left-color: var(--blue); color: var(--blue-dark); }

.contact-whatsapp { margin-top: 18px; }

/* =========================================================
   PILLS
   ========================================================= */
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pill { position: relative; display: inline-flex; cursor: pointer; }
.pill input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.pill span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-family: var(--body);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    transition: background 200ms var(--ease-soft), color 200ms var(--ease-soft), border-color 200ms var(--ease-soft);
}
.pill:hover span { border-color: var(--blue); color: var(--blue); }
.pill input[type="radio"]:checked + span { background: var(--blue); border-color: var(--blue); color: var(--bg-main); font-weight: 500; }
.pill input[type="radio"]:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    padding-top: 70px;
    border-top: 1px solid var(--line);
    color: var(--text-secondary);
}
.footer-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--line);
    align-items: start;
    text-align: right;
}
.footer-contact,
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-end;
    text-align: right;
}
.footer-contact-meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}
.footer-contact-meta > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}
.contact-meta-label {
    font-family: var(--body);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}
.footer-contact-meta > div:first-child .contact-meta-label { color: var(--text-primary); }
.contact-meta-value {
    font-family: var(--body);
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
    transition: color 200ms var(--ease-soft);
    line-height: 1.5;
}
a.contact-meta-value:hover { color: var(--blue); }
.footer-links strong {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-family: var(--body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.footer-links a {
    color: var(--text-secondary);
    font-family: var(--body);
    font-size: 0.85rem;
    transition: color 200ms var(--ease-soft);
    width: fit-content;
}
.footer-links a:hover { color: var(--blue); }

.footer-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 30px 0;
    color: var(--text-muted);
    font-family: var(--body);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    border-top: 1px solid var(--line);
    text-align: left;
}
.footer-copyright { color: var(--text-muted); text-align: left; }
.footer-credit-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--body);
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}
.footer-credit-icon { width: 18px; height: 18px; display: block; margin: 0 2px; }
.footer-credit-wordmark {
    font-family: var(--brand);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-transform: lowercase;
    letter-spacing: -0.01em;
}
.footer-credit-text { margin-right: 2px; }

/* =========================================================
   COOKIES
   ========================================================= */
.cookie-banner {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(29, 45, 68, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms var(--ease-soft), visibility 0ms linear 300ms;
    padding: 24px;
}
.cookie-banner.is-visible { opacity: 1; visibility: visible; transition: opacity 300ms var(--ease-soft), visibility 0ms linear 0ms; }
.cookie-card {
    width: 100%;
    max-width: 560px;
    padding: 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    text-align: center;
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(13, 19, 33, 0.18);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 400ms var(--ease-out), opacity 400ms var(--ease-out);
}
.cookie-banner.is-visible .cookie-card { transform: translateY(0); opacity: 1; }
.cookie-card h2 { font-size: 1.25rem; line-height: 1.2; color: var(--text-primary); margin: 0 0 12px; text-align: center; }
.cookie-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.65; margin: 0 0 24px; text-align: center; }
.cookie-card a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cookie-actions .button { min-height: 42px; padding: 0 20px; }
@media (max-width: 480px) {
    .cookie-card { padding: 24px 20px 22px; }
    .cookie-actions { flex-direction: column; }
    .cookie-actions .button { width: 100%; }
}

/* =========================================================
   LEGAL
   ========================================================= */
.legal-hero {
    padding-top: 160px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--line);
}
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--body);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 32px;
    transition: color 200ms var(--ease-soft);
}
.legal-back:hover { color: var(--blue); }
.legal-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin: 0;
    max-width: 900px;
}
.legal-content { padding: 80px 0 100px; }
.legal-content .container { max-width: 820px; }
.legal-meta {
    font-family: var(--body);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 40px;
}
.legal-content p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; margin: 0 0 20px; }
.legal-content h2 { font-size: 1.4rem; line-height: 1.2; color: var(--text-primary); margin: 48px 0 16px; letter-spacing: -0.02em; }
.legal-content h3 { font-size: 1.05rem; line-height: 1.3; color: var(--text-primary); margin: 28px 0 10px; letter-spacing: -0.01em; }
.legal-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.legal-content ul li {
    position: relative;
    padding-left: 22px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}
.legal-content ul li::before {
    content: "›";
    position: absolute;
    left: 0; top: -1px;
    color: var(--blue);
    font-size: 1.1rem;
    font-weight: bold;
}
.legal-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; transition: color 200ms var(--ease-soft); }
.legal-content a:hover { color: var(--blue-dark); }
.legal-content strong { color: var(--text-primary); font-weight: 500; }
.legal-content h2:first-of-type { margin-top: 40px; }

/* =========================================================
   FOCUS / SELECCIÓN
   ========================================================= */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, select:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}
::selection { background: var(--blue); color: var(--bg-main); }
::-moz-selection { background: var(--blue); color: var(--bg-main); }

#planes, #trabajos, #contacto, #faq, #servicios, #proceso, #beneficios, #soluciones, #quienes-somos {
    scroll-margin-top: 96px;
}

/* =========================================================
   PREFERS-REDUCED-MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-title .word,
    .hero-title .word--accent .underline,
    .hero-lead,
    .hero-actions,
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
        transition: none !important;
    }
    .work-card, .plan-card, .service-card-title { transition: none !important; }
}

/* =========================================================
   RESPONSIVE UNIFICADO
   ========================================================= */
@media (max-width: 1100px) {
    :root { --section-padding: 80px; }
    .services-inner { grid-template-columns: 1fr; gap: 40px; }
    .services-intro { position: static; }
    .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-grid { max-width: 100%; }
    .process-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .solutions-grid, .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .about-media { justify-content: center; }
    .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    :root { --section-padding: 70px; }
    .container { width: min(calc(100% - 40px), var(--container)); }
    .site-header { z-index: 1102; }
    .header-inner { min-height: 72px; gap: 16px; }
    .menu-toggle { display: flex; align-items: center; justify-content: center; }
    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0; right: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 10px 20px 20px;
        background: rgba(240, 235, 216, 0.98);
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
        z-index: 1100;
        margin-left: 0;
    }
    .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
    .main-nav > a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 8px 0;
        font-size: 14px;
        color: var(--text-primary);
        border-bottom: 1px solid var(--line);
    }
    .main-nav > a::after { display: none; }
    .main-nav > a:last-child { border-bottom: 0; }
    .lang-switcher { margin-left: 0; margin-right: 8px; opacity: 1; }
    .hero { padding-top: 130px; padding-bottom: 80px; }
    .hero-title { font-size: clamp(2.2rem, 7vw, 3.4rem); }
    .quote-form-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { gap: 32px; grid-template-columns: 1fr; text-align: center; }
    .footer-contact, .footer-links, .footer-contact-meta, .footer-contact-meta > div { align-items: center; text-align: center; }
    .legal-hero { padding-top: 130px; }
    .legal-content { padding: 60px 0 80px; }
    .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-item + .process-item { border-left: 0; }
    .process-item:nth-child(even) { border-left: 1px solid var(--line); }
}

@media (max-width: 768px) {
    :root { --section-padding: 60px; }
    .container { width: calc(100% - 32px); }
    .header-inner { min-height: 64px; }
    .logo-icon { width: 34px; height: 34px; flex: 0 0 34px; }
    .logo-wordmark { font-size: 1.3rem; }
    .hero { padding-top: 120px; padding-bottom: 70px; }
    .hero-title { font-size: clamp(2rem, 9vw, 3rem); margin-bottom: 22px; }
    .hero-lead { font-size: 0.95rem; }
    .hero-actions { gap: 10px; }
    .hero-actions .button { flex: 1 1 auto; min-width: 0; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 40px; }
    .section-title { font-size: 1.9rem; }
    .section-desc { font-size: 0.9rem; }

    .accordion-horizontal { flex-direction: column; min-height: auto; gap: 8px; }
    .service-card { flex: none !important; width: 100%; flex-direction: column; }
    .service-card-header {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        padding: 20px;
        height: auto !important;
    }
    .service-card:not(.is-open) .service-card-title {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        transform: none;
        margin: 0;
        white-space: normal;
        flex: 1;
    }
    .service-card.is-open .service-card-title { flex: 1; transform: none; }

    .service-card-panel {
        position: relative;
        height: auto;
        padding: 0 20px 22px;
        background: transparent;
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 400ms var(--ease-soft), opacity 300ms var(--ease-soft);
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }
    .service-card.is-open .service-card-panel { grid-template-rows: 1fr; }
    .service-card-panel-inner { min-height: 0; overflow: hidden; display: block; }
    .service-card-panel p {
        border-left: 2px solid var(--blue);
        padding: 0 0 0 16px;
        opacity: 0;
        transition: opacity 300ms var(--ease-soft);
    }
    .service-card.is-open .service-card-panel p { opacity: 1; }

    .solutions-grid, .why-grid { grid-template-columns: 1fr; gap: 12px; }
    .solution-card, .benefit-item { padding: 20px; gap: 16px; }

    .work { padding-top: 80px; padding-bottom: 80px; }
    .work-grid { grid-template-columns: 1fr; gap: 18px; }
    .work-card { padding: 14px; }
    .work-card-name { font-size: 1.2rem; }

    .about-inner { gap: 24px; }
    .about-photo { max-width: 240px; }
    .about-content { text-align: center; }

    .process-list { grid-template-columns: 1fr; }
    .process-item:nth-child(even) { border-left: 0; }
    .process-item summary { min-height: 162px; padding: 22px 20px 52px; }
    .process-item summary::after { bottom: 20px; right: 20px; }
    .process-item p { padding: 0 20px 10px; }
    .process-time { padding: 0 20px 20px; }

    .plans-grid { grid-template-columns: 1fr; }
    .plan-card { padding: 26px 22px; }
    .plan-price { font-size: 1.5rem; }

    .faq-item summary { font-size: 0.98rem; padding: 20px 0; }
    .faq-item p { font-size: 0.88rem; padding-bottom: 20px; }

    .contact-grid { max-width: 100%; grid-template-columns: 1fr; }
    .quote-form { padding: 24px 20px; }
    .quote-form-title { font-size: 1.2rem; }
    .quote-form-grid { grid-template-columns: 1fr; gap: 16px; }
    .form-field-full { grid-column: auto; }
    .quote-form-submit .button { width: 100%; }

    .legal-hero { padding-top: 110px; padding-bottom: 40px; }
    .legal-hero h1 { font-size: 2rem; }
    .legal-content { padding: 50px 0 70px; }
    .legal-content h2 { font-size: 1.2rem; margin-top: 36px; }
    .legal-content h3 { font-size: 1rem; }
    .legal-content p, .legal-content ul li { font-size: 0.9rem; }

    .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
    .footer-copyright { text-align: center; }

    .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

@media (max-width: 600px) {
    .work-grid, .process-list, .plans-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { width: calc(100% - 24px); }
    .logo-icon { width: 32px; height: 32px; flex: 0 0 32px; }
    .logo-wordmark { font-size: 1.1rem; }
    .lang-switcher { padding: 2px; opacity: 1; }
    .lang-btn { padding: 4px 6px; font-size: 0.65rem; }
    .hero { padding-top: 110px; padding-bottom: 60px; }
    .hero-title { font-size: 1.75rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .button { width: 100%; }
    .section-title { font-size: 1.55rem; }
    .service-card-header { padding: 16px 18px; gap: 12px; }
    .service-card-title { font-size: 1rem; }
    .solution-card, .benefit-item { padding: 16px; }
    .solution-content h3, .benefit-content h3 { font-size: 1rem; }
    .work { padding-top: 60px; padding-bottom: 60px; }
    .work-card { padding: 14px; }
    .work-card-name { font-size: 1.2rem; }
    .work-card-header { font-size: 0.6rem; }
    .plan-card { padding: 22px 18px; }
    .plan-card h3 { font-size: 1.15rem; }
    .plan-price { font-size: 1.3rem; }
    .plan-features li { font-size: 0.82rem; }
    .faq-item summary { font-size: 0.92rem; }
    .quote-form { padding: 22px 18px; }
    .form-field input, .form-field select { min-height: 42px; font-size: 0.88rem; }
    .form-field textarea { min-height: 100px; font-size: 0.88rem; }
    .pill-group { gap: 6px; }
    .pill span { padding: 8px 14px; font-size: 0.68rem; }

    .footer-links { gap: 18px; }
    .footer-bottom { font-size: 0.75rem; gap: 12px; }
    .legal-hero { padding-top: 100px; }
    .legal-hero h1 { font-size: 1.6rem; }
    .legal-content { padding: 40px 0 60px; }
    .legal-content h2 { font-size: 1.08rem; }
    .legal-meta { margin-bottom: 30px; }
}

@media print {
    .site-header, .menu-toggle, .tb-intro, .cookie-banner, .hero-waves-bg, .hero-canvas-container, .bg-surface, .whatsapp-float { display: none !important; }
    body { background: white; color: black; }
    .hero-title .word, .hero-lead, .hero-actions, .reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
    }
}
