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

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

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--surface-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

:focus-visible {
    outline: 3px solid var(--color-400);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 9999;
    padding: 10px 18px;
    background: var(--color-600);
    color: #FFFFFF;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: 12px;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Etiquetas superiores de sección (Pills fieles al diseño aprobado) */
.section-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--color-600);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(42, 98, 167, 0.25);
}

.section-pill--glow {
    background: rgba(51, 120, 204, 0.22);
    color: var(--color-50);
    border: 1px solid var(--color-400);
    box-shadow: 0 0 22px rgba(88, 144, 213, 0.28);
}

.section-pill svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Encabezados de sección */
.section-header {
    max-width: 780px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-header--left {
    margin: 0 0 40px;
    text-align: left;
}

.section-title {
    margin-top: 16px;
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 3.2vw, 2.65rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--text-heading);
}

.section-title--light {
    color: #FFFFFF;
}

.section-subtitle {
    margin-top: 14px;
    font-size: clamp(0.98rem, 1.3vw, 1.1rem);
    color: var(--text-muted);
    line-height: 1.65;
}

.section-subtitle--light {
    color: var(--color-100);
}

/* Botones Corporativos Reutilizables */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    white-space: nowrap;
}

.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn--primary {
    background: var(--color-600);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(42, 98, 167, 0.30);
}

.btn--primary:hover {
    background: var(--color-700);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(33, 77, 131, 0.38);
}

/* Botón primario sobre fondos oscuros (--color-900 / --color-950) */
.btn--primary-on-dark {
    background: linear-gradient(135deg, var(--color-500) 0%, var(--color-600) 100%);
    color: #FFFFFF;
    border: 1px solid var(--color-400);
    box-shadow: 0 8px 24px rgba(42, 98, 167, 0.45);
}

.btn--primary-on-dark:hover {
    background: linear-gradient(135deg, var(--color-400) 0%, var(--color-500) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(88, 144, 213, 0.52);
}

/* Botón cristal / secundario con teléfono WhatsApp */
.btn--glass {
    background: rgba(235, 241, 250, 0.10);
    color: #FFFFFF;
    border: 1px solid rgba(161, 193, 232, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn--glass:hover {
    background: rgba(235, 241, 250, 0.18);
    border-color: var(--color-200);
    transform: translateY(-2px);
}

/* Animación sutil de aparición al hacer scroll */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 560ms cubic-bezier(0.22, 1, 0.36, 1), transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
