/* =========================================================
   ZetaWeb — hoja de estilos
   1. Tokens          5. Secciones
   2. Base            6. Componentes
   3. Utilidades      7. Chat
   4. Cabecera        8. Animaciones
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
    --brand-50: #eef4ff;
    --brand-100: #d9e6ff;
    --brand-400: #5b8def;
    --brand-500: #3b6fe0;
    --brand-600: #2f57c4;
    --accent-500: #7c5cff;

    --bg: #ffffff;
    --bg-muted: #f7f9fc;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --fg: #0d1526;
    --fg-muted: #5b6577;
    --border: #e4e9f2;
    --border-strong: #cfd7e6;
    --primary: var(--brand-500);
    --primary-hover: var(--brand-600);
    --primary-fg: #ffffff;
    --primary-soft: var(--brand-50);
    --danger: #dc2626;
    --success: #15803d;
    --overlay: rgba(13, 21, 38, 0.45);
    --header-bg: rgba(255, 255, 255, 0.72);

    --radius-sm: 0.5rem;
    --radius: 0.875rem;
    --radius-lg: 1.25rem;
    --radius-full: 999px;

    --shadow-sm: 0 1px 2px rgba(13, 21, 38, 0.06);
    --shadow: 0 4px 16px -4px rgba(13, 21, 38, 0.1);
    --shadow-lg: 0 18px 40px -12px rgba(13, 21, 38, 0.18);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Sora', var(--font-sans);

    --section-gap: clamp(4rem, 9vw, 7rem);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme='dark'] {
    --bg: #0b1120;
    --bg-muted: #0f1729;
    --surface: #131c30;
    --surface-raised: #182238;
    --fg: #eef2f9;
    --fg-muted: #9aa7bd;
    --border: #23304a;
    --border-strong: #32405c;
    --primary: var(--brand-400);
    --primary-hover: #7aa4f5;
    --primary-fg: #0b1120;
    --primary-soft: rgba(91, 141, 239, 0.14);
    --danger: #f87171;
    --success: #4ade80;
    --overlay: rgba(3, 7, 18, 0.65);
    --header-bg: rgba(11, 17, 32, 0.72);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 18px 40px -12px rgba(0, 0, 0, 0.65);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* El atributo hidden tiene que ganar siempre. Varios paneles de esta hoja
   (.intro, .chat-modal, .mobile-menu) declaran su propio display, que por
   especificidad se impone al display:none del navegador; sin esto quedarían
   como capas invisibles capturando clics. */
[hidden] {
    display: none !important;
}

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

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--fg);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

body.no-scroll {
    overflow: hidden;
}

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

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

::selection {
    background: var(--primary);
    color: var(--primary-fg);
}

/* ---------- 3. Utilidades ---------- */
.container {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.skip-link {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -150%);
    z-index: 200;
    background: var(--primary);
    color: var(--primary-fg);
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--radius) var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
    transform: translate(-50%, 0);
}

.scrim {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: var(--overlay);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.scrim.active {
    opacity: 1;
}

/* ---------- 4. Cabecera ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 70;
    width: 100%;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
        backdrop-filter 0.3s var(--ease);
}

.header.scrolled {
    background-color: var(--header-bg);
    backdrop-filter: blur(14px) saturate(160%);
    border-bottom-color: var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 4.5rem;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

/* --- Logo: una Z partida por un corte diagonal --- */
/* El ángulo del corte vive en logo.js (CUT_ANGLE); si lo cambias ahí,
   ajusta aquí los recortes y la rotación de la hoja. */
.logo-mark {
    position: relative;
    display: block;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    overflow: visible;
}

.logo-mark > svg,
.logo-half svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Z de respaldo: es lo que se ve sin JS. */
.logo-mark > svg path {
    fill: var(--primary);
}

.logo-half {
    position: absolute;
    inset: 0;
    will-change: transform;
}

.logo-half-top {
    clip-path: polygon(-25% -25%, 125% -25%, 125% 22.7%, -25% 77.3%);
}

.logo-half-bottom {
    clip-path: polygon(-25% 77.3%, 125% 22.7%, 125% 125%, -25% 125%);
}

.logo-half-top svg path { fill: var(--primary); }
.logo-half-bottom svg path { fill: var(--accent-500); }

.logo-blade {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 190%;
    height: 2px;
    margin: -1px 0 0 -95%;
    border-radius: 2px;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(90deg,
        transparent,
        color-mix(in srgb, var(--accent-500) 70%, #fff) 35%,
        #fff 50%,
        color-mix(in srgb, var(--primary) 70%, #fff) 65%,
        transparent);
    box-shadow: 0 0 10px 1px color-mix(in srgb, var(--accent-500) 55%, transparent);
    transform: rotate(-20deg) translateX(-170%);
}

.logo-word {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fg);
    white-space: nowrap;
}

.logo-word span {
    background: linear-gradient(120deg, var(--primary), var(--accent-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Cortinilla de entrada --- */
.intro {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    background-color: var(--bg);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.intro.is-visible { opacity: 1; }

.intro::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(38rem 24rem at 50% 50%, var(--primary-soft), transparent 70%);
}

.intro-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.intro-mark {
    width: clamp(6rem, 22vw, 9rem);
    height: clamp(6rem, 22vw, 9rem);
}

.intro-mark .logo-blade {
    height: 3px;
    margin-top: -1.5px;
    box-shadow: 0 0 26px 3px color-mix(in srgb, var(--accent-500) 60%, transparent);
}

.intro-word {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--fg);
    opacity: 0;
    transform: translateY(0.75rem);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.intro.is-named .intro-word {
    opacity: 1;
    transform: none;
}

.intro-word span {
    background: linear-gradient(120deg, var(--primary), var(--accent-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.intro-lock {
    overflow: hidden;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    position: relative;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--fg-muted);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--fg);
    background-color: var(--primary-soft);
}

.header-actions {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--fg-muted);
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease),
        border-color 0.2s var(--ease);
}

.icon-button:hover {
    color: var(--fg);
    background-color: var(--bg-muted);
    border-color: var(--border-strong);
}

.icon-moon { display: none; }
[data-theme='dark'] .icon-sun { display: none; }
[data-theme='dark'] .icon-moon { display: block; }

.language-toggle {
    min-width: 2.75rem;
    height: 2.5rem;
    padding-inline: 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    color: var(--fg-muted);
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease),
        border-color 0.2s var(--ease);
}

.language-toggle:hover {
    color: var(--fg);
    background-color: var(--bg-muted);
    border-color: var(--border-strong);
}

.mobile-menu-button { display: inline-flex; }

@media (min-width: 860px) {
    .desktop-nav,
    .header-actions { display: flex; }
    .mobile-menu-button { display: none; }
}

/* Menú móvil */
.mobile-menu {
    position: fixed;
    inset-block: 0;
    right: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    width: min(20rem, 85vw);
    background-color: var(--surface);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    min-height: 4.5rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
}

.mobile-nav-link {
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--fg);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.mobile-nav-link:hover {
    color: var(--primary);
    background-color: var(--primary-soft);
}

.mobile-menu-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
}

.mobile-menu-toggles {
    display: flex;
    gap: 0.5rem;
}

.ghost-button {
    flex: 1;
    padding: 0.625rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--fg-muted);
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.ghost-button:hover {
    color: var(--fg);
    background-color: var(--bg-muted);
}

/* ---------- 5. Secciones ---------- */
.section {
    padding-block: var(--section-gap);
}

.section-muted {
    background-color: var(--bg-muted);
    border-block: 1px solid var(--border);
}

.section-header {
    max-width: 44rem;
    margin-inline: auto;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
}

.section-title {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--fg-muted);
    font-size: 1.0625rem;
}

/* Hero */
.hero {
    position: relative;
    isolation: isolate;
    padding-block: clamp(4rem, 12vw, 8rem);
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(60rem 30rem at 50% -10%, var(--primary-soft), transparent 70%),
        linear-gradient(to right, var(--border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border) 1px, transparent 1px);
    background-size: 100% 100%, 5rem 5rem, 5rem 5rem;
    -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 40%, transparent 100%);
    mask-image: radial-gradient(80% 60% at 50% 30%, #000 40%, transparent 100%);
    opacity: 0.85;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--fg-muted);
    animation: fadeInUp 0.8s var(--ease) both;
}

.eyebrow-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--success);
    box-shadow: 0 0 0 0 currentColor;
    animation: ping 2.4s ease-out infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    max-width: 18ch;
    background: linear-gradient(180deg, var(--fg), color-mix(in srgb, var(--fg) 65%, var(--primary)));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInUp 0.8s 0.1s var(--ease) both;
}

.hero-subtitle {
    max-width: 44ch;
    font-size: clamp(1.0625rem, 2vw, 1.1875rem);
    color: var(--fg-muted);
    animation: fadeInUp 0.8s 0.2s var(--ease) both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    animation: fadeInUp 0.8s 0.3s var(--ease) both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1rem 2.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    width: min(100%, 44rem);
    animation: fadeInUp 0.8s 0.4s var(--ease) both;
}

.stat dt {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-muted);
    margin-bottom: 0.25rem;
}

.stat dd {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
}

/* ---------- 6. Componentes ---------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8125rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
        transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.button-primary {
    background-color: var(--primary);
    color: var(--primary-fg);
    box-shadow: var(--shadow);
}

.button-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.button-ghost {
    background-color: var(--surface);
    border-color: var(--border);
    color: var(--fg);
}

.button-ghost:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.button-sm {
    padding: 0.5625rem 1.125rem;
    font-size: 0.875rem;
}

.button-block {
    width: 100%;
}

/* Verde de marca de WhatsApp: se mantiene igual en claro y oscuro, porque es
   lo que hace que el botón se reconozca de un vistazo. */
.button-whatsapp {
    background-color: #25d366;
    color: #05270f;
    box-shadow: 0 4px 16px -4px rgba(37, 211, 102, 0.5);
}

.button-whatsapp:hover {
    background-color: #1fbe5a;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px -8px rgba(37, 211, 102, 0.6);
}

.button-lg {
    padding: 0.9375rem 1.75rem;
    font-size: 1rem;
}

.whatsapp-icon {
    flex-shrink: 0;
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.arrow-icon {
    transition: transform 0.2s var(--ease);
}

.button:hover .arrow-icon {
    transform: translateX(4px);
}

.card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
        border-color 0.3s var(--ease);
}

.card-title {
    font-size: 1.1875rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--fg-muted);
    font-size: 0.9375rem;
}

.card-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 720px) {
    .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

/* Servicios */
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius);
    background-color: var(--primary-soft);
    color: var(--primary);
}

.service-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Proyectos */
.project-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.project-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.25rem;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: #fff;
    overflow: hidden;
}

.project-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    background-color: var(--primary-soft);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.tag-soft {
    background-color: color-mix(in srgb, var(--fg-muted) 12%, transparent);
    color: var(--fg-muted);
}

.tag-accent {
    background-color: color-mix(in srgb, var(--accent-500) 14%, transparent);
    color: var(--accent-500);
}

.project-card .card-text {
    margin-bottom: 0.875rem;
}

.project-client {
    margin-top: -0.25rem;
    margin-bottom: 0.625rem;
    font-size: 0.8125rem;
    color: var(--fg-muted);
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-logo-initials {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent-500));
    border-color: transparent;
    padding: 0;
}

/* Para quién trabajamos */
.audience-card {
    border-left: 3px solid var(--primary);
}

/* Cómo trabajamos */
.step-list {
    list-style: none;
    display: grid;
    gap: 1.25rem;
    max-width: 52rem;
    margin-inline: auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--primary-soft);
    color: var(--primary);
    font-family: var(--font-display);
    font-weight: 700;
}

.step .card-title {
    margin-bottom: 0.25rem;
}

/* Preguntas frecuentes: <details> nativo, sin una línea de JavaScript. */
.faq-list {
    max-width: 52rem;
    margin-inline: auto;
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--surface);
    overflow: hidden;
}

.faq-item[open] {
    border-color: var(--primary);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '';
    flex-shrink: 0;
    width: 0.625rem;
    height: 0.625rem;
    border-right: 2px solid var(--fg-muted);
    border-bottom: 2px solid var(--fg-muted);
    transform: rotate(45deg) translateY(-0.125rem);
    transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
    transform: rotate(-135deg) translateY(-0.125rem);
}

.faq-item summary:hover {
    color: var(--primary);
}

.faq-item p {
    padding: 0 1.25rem 1.125rem;
    color: var(--fg-muted);
    font-size: 0.9375rem;
}

/* ---------- Tarifas ---------- */
.price-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

.price-amount {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    margin-block: 0.5rem 0.75rem;
}

.price-amount strong {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.price-from,
.price-period {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fg-muted);
}

.price-card .card-text {
    margin-bottom: 1.5rem;
}

.price-card .button {
    margin-top: auto;
}

.price-note,
.section-note {
    max-width: 44rem;
    margin: 2.5rem auto 0;
    text-align: center;
    font-size: 0.9375rem;
    color: var(--fg-muted);
}

.price-note a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Sobre nosotros */
.about-content {
    display: grid;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
    max-width: 64rem;
    margin-inline: auto;
}

@media (min-width: 860px) {
    .about-content { grid-template-columns: 1.2fr 1fr; }
}

.about-text {
    font-size: 1.0625rem;
    color: var(--fg-muted);
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.founder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.founder-image {
    display: grid;
    place-items: center;
    width: clamp(6rem, 18vw, 8.5rem);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--surface);
    box-shadow: var(--shadow-lg);
    margin-bottom: 0.5rem;
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-image-initials {
    background: linear-gradient(135deg, var(--primary), var(--accent-500));
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.founder-image-sm {
    width: 3.25rem;
    margin-bottom: 0;
    border-width: 2px;
    box-shadow: var(--shadow-sm);
    font-size: 0.9375rem;
    flex-shrink: 0;
}

.founder-name {
    font-size: 1.0625rem;
}

.founder-role {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

/* Contacto */
.contact-content {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

@media (min-width: 860px) {
    .contact-content { grid-template-columns: 1.1fr 0.9fr; }
}

.contact-form-card {
    padding: clamp(1.5rem, 3vw, 2rem);
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    margin-top: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4375rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.6875rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--bg);
    color: var(--fg);
    font: inherit;
    font-size: 0.9375rem;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-input[aria-invalid='true'],
.form-textarea[aria-invalid='true'] {
    border-color: var(--danger);
}

.form-textarea {
    min-height: 7rem;
    resize: vertical;
}

/* Fuera de pantalla en vez de display:none: los robots que interpretan CSS
   saltan lo que está oculto, y aquí lo que queremos es justo que lo rellenen. */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.error-message {
    color: var(--danger);
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    display: none;
}

.error-message.show { display: block; }

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-card {
    padding: 1.5rem;
}

.contact-card-head {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.contact-name {
    font-size: 1.0625rem;
}

.contact-role {
    font-size: 0.8125rem;
    color: var(--fg-muted);
}

.contact-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4375rem;
}

.contact-links a {
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s var(--ease);
}

.contact-links a:hover {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.contact-area {
    font-size: 0.875rem;
    color: var(--fg-muted);
}

/* Footer */
.footer {
    background-color: var(--bg-muted);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 3rem;
}

.footer-brand {
    max-width: 24rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-description {
    font-size: 0.875rem;
    color: var(--fg-muted);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    font-size: 0.875rem;
    color: var(--fg-muted);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.footer-nav a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-block: 1.5rem;
    font-size: 0.8125rem;
    color: var(--fg-muted);
    text-align: center;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translate(-50%, 150%);
    z-index: 120;
    transition: transform 0.35s var(--ease);
    pointer-events: none;
}

.toast.show { transform: translate(-50%, 0); }

.toast-content {
    background-color: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.75rem 1.25rem;
    box-shadow: var(--shadow-lg);
    font-size: 0.9375rem;
    font-weight: 500;
    max-width: min(90vw, 24rem);
}

.toast-content.is-error {
    border-color: var(--danger);
    color: var(--danger);
}

.toast-content.is-success {
    border-color: var(--success);
    color: var(--success);
}

/* ---------- 7. Chat ---------- */
.whatsapp-button {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    min-height: 3.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.125rem;
    color: #05270f;
    font-weight: 700;
    background-color: #25d366;
    border: none;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    cursor: pointer;
    z-index: 90;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.whatsapp-button:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
}

.whatsapp-button svg {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    fill: #05270f;
}

body.no-scroll .whatsapp-button {
    display: none;
}

.whatsapp-button-label {
    font-size: 0.9375rem;
    white-space: nowrap;
}

/* En pantallas muy estrechas el botón vuelve a ser sólo el icono, para no
   taparle al visitante media pantalla. */
@media (max-width: 400px) {
    .whatsapp-button {
        width: 3.5rem;
        padding: 0;
        justify-content: center;
    }

    .whatsapp-button-label { display: none; }
}

.chat-modal {
    position: fixed;
    bottom: 5.5rem;
    right: 1.25rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    width: min(22rem, calc(100vw - 2.5rem));
    height: min(28rem, calc(100vh - 8rem));
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    transform: translateY(1rem) scale(0.98);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.chat-modal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    background-color: #075e54;
    color: #fff;
}

.chat-header svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
    flex-shrink: 0;
}

.chat-header h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    flex: 1;
}

.chat-close {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s var(--ease);
}

.chat-close:hover { background-color: rgba(255, 255, 255, 0.18); }

.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 1rem;
    overflow-y: auto;
    background-color: var(--bg-muted);
}

.message {
    max-width: 85%;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    line-height: 1.45;
    box-shadow: var(--shadow-sm);
}

.message.bot {
    background-color: var(--surface);
    border: 1px solid var(--border);
    align-self: flex-start;
    border-top-left-radius: 0.25rem;
}

.message.user {
    background-color: var(--primary);
    color: var(--primary-fg);
    align-self: flex-end;
    border-top-right-radius: 0.25rem;
}

.options,
.contact-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.options { flex-direction: column; }

.option-button,
.contact-option {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.option-button:hover,
.contact-option:hover {
    border-color: var(--primary);
    background-color: var(--primary-soft);
}

.contact-option svg {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
}

.redirect-button {
    align-self: flex-start;
    background-color: #25d366;
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.625rem 1.125rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s var(--ease);
}

.redirect-button:hover { background-color: #128c7e; }

.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    align-self: flex-start;
    padding: 0.625rem 0.875rem;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-top-left-radius: 0.25rem;
}

.typing-dot {
    width: 0.375rem;
    height: 0.375rem;
    background-color: var(--fg-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

/* ---------- 8. Animaciones ---------- */
/* Sin JS el contenido se muestra siempre; sólo lo ocultamos si hay script. */
.js .reveal {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .reveal.visible {
    opacity: 1;
    transform: none;
}

.card-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.card-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.card-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.card-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.card-grid .reveal:nth-child(6) { transition-delay: 0.4s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(1.25rem); }
    to { opacity: 1; transform: none; }
}

@keyframes ping {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent); }
    70% { box-shadow: 0 0 0 0.5rem transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js .reveal { opacity: 1; transform: none; }

    .intro { display: none; }
    .logo-blade { display: none; }
}
