/* =========================================================
   INSTALACIONES ÁLVAREZ
   BASE.CSS (DEPURADO)
   ========================================================= */

/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =========================================================
   HTML & BODY
   ========================================================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* =========================================================
   ELEMENTOS GENERALES
   ========================================================= */

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

/* =========================================================
   SELECCIÓN DE TEXTO
   ========================================================= */

::selection {
    color: var(--color-white, #ffffff);
    background-color: var(--color-navy, #0b0f19);
}

/* =========================================================
   CONTAINER & SECCIONES
   ========================================================= */

.container {
    width: min(
        calc(100% - (var(--container-padding, 20px) * 2)),
        var(--container-width, 1200px)
    );
    margin-inline: auto;
}

.section {
    position: relative;
    padding-top: var(--section-padding, 80px);
    padding-bottom: var(--section-padding, 80px);
}

/* =========================================================
   TÍTULOS Y TIPOGRAFÍA
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

h1 {
    font-size: var(--text-6xl);
    font-weight: 800;
}

h2 {
    font-size: var(--text-4xl);
    font-weight: 800;
}

h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
}

p {
    color: var(--color-text-secondary);
}

/* =========================================================
   CABECERAS DE SECCIÓN (ALINEADAS A LA IZQUIERDA)
   ========================================================= */

.section-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 760px;
    margin-bottom: 56px;
    margin-left: 0;
    margin-right: auto;
}

.section-heading h2 {
    text-align: left;
    max-width: 700px;
    margin-top: 12px;
}

.section-heading > p {
    text-align: left;
    max-width: 650px;
    margin-top: 20px;
    font-size: var(--text-lg);
    line-height: 1.75;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-gold, var(--accent-yellow, #cccc00));
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: left;
}

.section-eyebrow::before {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--color-gold, var(--accent-yellow, #cccc00));
}

/* =========================================================
   BOTONES
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: var(--button-height, 48px);
    padding: 0 var(--button-padding-x, 24px);
    border-radius: var(--radius-md, 8px);
    font-size: var(--text-base);
    font-weight: 700;
    line-height: 1;
    transition:
        transform var(--transition, 0.3s ease),
        background-color var(--transition, 0.3s ease),
        color var(--transition, 0.3s ease),
        border-color var(--transition, 0.3s ease),
        box-shadow var(--transition, 0.3s ease);
}

.button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.button:hover {
    transform: translateY(-2px);
}

.button:active {
    transform: translateY(0);
}

/* BOTÓN PRINCIPAL */
.button-primary {
    color: var(--color-white);
    background-color: var(--color-navy);
    box-shadow: 0 12px 24px rgba(11, 31, 51, 0.14);
}

.button-primary:hover {
    background-color: var(--color-navy-light);
    box-shadow: 0 16px 30px rgba(11, 31, 51, 0.18);
}

/* BOTÓN SECUNDARIO */
.button-secondary {
    color: var(--color-navy);
    background-color: var(--color-white);
    border: 1px solid var(--color-navy);
    box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
    color: var(--color-white);
    background-color: var(--color-navy);
}

/* =========================================================
   FOCUS & FORMULARIOS
   ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(21, 159, 194, 0.35);
    outline-offset: 3px;
}

input,
textarea,
select {
    width: 100%;
    color: var(--color-text);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    transition:
        border-color var(--transition, 0.3s ease),
        box-shadow var(--transition, 0.3s ease);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 4px rgba(21, 159, 194, 0.08);
}

textarea {
    resize: vertical;
    min-height: 130px;
}

/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: var(--color-background);
}

::-webkit-scrollbar-thumb {
    background: #c7d2da;
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: #aab9c3;
}

/* =========================================================
   UTILIDADES
   ========================================================= */

.text-center {
    text-align: center;
}

.text-yellow {
    color: var(--color-gold, var(--accent-yellow, #cccc00)) !important;
}

.hidden {
    display: none !important;
}

/* =========================================================
   ANIMACIONES
   ========================================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.65;
        transform: scale(1.08);
    }
}

/* =========================================================
   RESPONSIVE / MEDIA QUERIES
   ========================================================= */

@media (max-width: 1024px) {
    h1 {
        font-size: var(--text-5xl);
    }

    h2 {
        font-size: var(--text-3xl);
    }

    .section-heading {
        margin-bottom: 44px;
    }
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 76px;
    }

    body {
        font-size: 0.95rem;
    }

    h1 {
        font-size: var(--text-4xl);
        letter-spacing: -0.04em;
    }

    h2 {
        font-size: var(--text-3xl);
    }

    h3 {
        font-size: var(--text-xl);
    }

    .section-heading {
        margin-bottom: 36px;
    }

    .section-heading > p {
        font-size: var(--text-base);
        line-height: 1.7;
    }

    .button {
        width: 100%;
        padding-inline: 20px;
    }

    .section-eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.13em;
    }
}