:root {
    /* Palette */
    --primary-900: #004866;
    --primary-600: #467c9b;
    --secondary-900: #f59300;
    --secondary-600: #ffad33;
    --white: #fefefe;

    /* Neutrals */
    --gray-950: #0b1b22;
    --gray-800: #23323b;
    --gray-600: #4b5a64;
    --gray-300: #cbd5db;
    --gray-200: #e6edf1;
    --gray-100: #f5f7f9;

    /* Backgrounds */
    --bg: #ffffff;
    --bg-alt: #f7fafc;

    /* Text */
    --text: var(--gray-950);
    --text-subtle: var(--gray-600);
    --link: var(--primary-900);

    /* Radius & spacing (relativo) */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;

    /* Typography fluida (clamp) */
    --font-sans: "Segoe UI", Roboto, sans-serif;
    --fs-300: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
    --fs-400: clamp(1rem, 0.95rem + 0.4vw, 1.15rem);
    --fs-500: clamp(1.05rem, 1rem + 0.6vw, 1.25rem);
    --fs-700: clamp(1.6rem, 1.2rem + 1.8vw, 2.2rem);
    --fs-900: clamp(2rem, 1.2rem + 4vw, 3rem);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 1px rgba(0, 0, 0, .04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, .08), 0 6px 24px rgba(0, 0, 0, .06);
    --shadow-lg: 0 8px 28px rgba(0, 0, 0, .12);
}

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

html {
    color-scheme: light;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: var(--fs-400);
}

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

a {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover {
    opacity: .9;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin: 0 0 var(--space-4);
}

h1 {
    font-size: var(--fs-900);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--fs-700);
}

h3 {
    font-size: var(--fs-500);
}

p {
    margin: 0 0 var(--space-4);
    color: var(--text);
}

.subtitle {
    color: var(--text-subtle);
    max-width: 65ch;
}

.nowrap {
    white-space: nowrap;
}

.container {
    width: min(1120px, 92vw);
    margin-inline: auto;
    padding-inline: clamp(1rem, 2vw, 1.5rem);
}

/* Skip link (accesibilidad) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: .5rem .75rem;
    background: var(--white);
    color: var(--primary-900);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--gray-200);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: var(--space-4);
}

.top-nav ul {
    display: flex;
    gap: var(--space-6);
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-nav a {
    text-decoration: none;
    color: var(--text);
    font-size: var(--fs-300);
}

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

/* ===== Hero ===== */
.hero {
    background:
        radial-gradient(1200px 600px at 10% -10%, color-mix(in oklab, var(--primary-900) 12%, transparent), transparent 55%),
        radial-gradient(900px 500px at 110% 10%, color-mix(in oklab, var(--primary-600) 12%, transparent), transparent 50%),
        linear-gradient(180deg, #fff, #f9fbfd);
    padding-block: clamp(3rem, 6vw, 6rem);
    border-bottom: 1px solid var(--gray-200);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
}

.bullets {
    margin: var(--space-6) 0 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: var(--space-3);
}

.bullets li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-subtle);
}

.bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--secondary-900);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--secondary-600) 25%, transparent);
}

/* ===== Signup Card / Form ===== */
.signup-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 3vw, 1.5rem);
    box-shadow: var(--shadow-md);
}

.signup-card h2 {
    margin-bottom: var(--space-2);
}

.signup-card .small {
    color: var(--text-subtle);
    font-size: var(--fs-300);
}

.form {
    margin-top: var(--space-4);
}

.form .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

@media (max-width: 700px) {
    .form .grid {
        grid-template-columns: 1fr;
    }
}

.field label {
    display: inline-block;
    margin-bottom: .4rem;
    font-weight: 600;
    font-size: .95rem;
}

.field input {
    width: 100%;
    padding: .75rem .9rem;
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.field input::placeholder {
    color: color-mix(in oklab, var(--text-subtle) 70%, #fff);
}

.field input:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary-600) 20%, transparent);
}

/* Mensajes nativos del navegador mejor visibles (opcional) */
input:required:invalid {}

input:required:valid {}

.hp {
    /* honeypot hidden field */
    position: absolute !important;
    left: -9999px !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.consent {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: var(--space-3);
    margin: var(--space-2) 0 var(--space-4);
}

.consent input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: .35rem;
    accent-color: var(--primary-900);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: .2px;
    transition: transform .04s ease, filter .2s ease, box-shadow .2s ease;
    will-change: transform;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(180deg, var(--secondary-900), var(--secondary-600));
    color: #1a1a1a;
    box-shadow: 0 8px 20px rgba(245, 147, 0, .18);
}

.btn-primary:hover {
    filter: brightness(1.02);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--secondary-600) 25%, transparent);
}

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid var(--gray-200);
    background: #fff;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
    justify-content: space-between;
    padding-block: var(--space-6);
}

.site-footer a {
    color: var(--text-subtle);
    text-decoration: none;
}

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

/* ===== Motion preferences ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}