/* =========================================================
   IMCORRS 2026 — Base Styles
   Archivo: assets/css/base.css
========================================================= */

/* ================================
   1. Variables
================================ */

:root {
    /* Brand colors */
    --color-primary: #001e31;
    --color-accent: #b36b00;
    --color-secondary: #346e7f;
    --color-secondary-dark: #1e5a5e;
    --color-neutral: #d7d6d6;

    /* UI colors */
    --color-white: #ffffff;
    --color-black: #000000;

    --color-text: #001e31;
    --color-text-soft: #41525d;
    --color-text-muted: #6d7b83;

    --color-bg: #ffffff;
    --color-bg-soft: #f4f7f8;
    --color-bg-muted: #eef3f5;
    --color-bg-dark: #001e31;

    --color-border: rgba(0, 30, 49, 0.14);
    --color-border-light: rgba(0, 30, 49, 0.08);

    /* Fonts */
    --font-primary: "acumin-pro", sans-serif;

    /* Layout */
    --container: 1180px;
    --container-wide: 1320px;
    --section-padding: 96px;
    --section-padding-sm: 64px;

    /* Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;

    /* Shadows */
    --shadow-soft: 0 14px 38px rgba(0, 30, 49, 0.08);
    --shadow-card: 0 10px 26px rgba(0, 30, 49, 0.08);
    --shadow-hover: 0 16px 34px rgba(0, 30, 49, 0.12);

    /* Transitions */
    --transition-fast: 180ms ease;
    --transition-base: 280ms ease;
    --transition-slow: 420ms ease;
}

/* ================================
   2. Reset
================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

main {
    display: block;
}

section {
    position: relative;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
    background: none;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

figure {
    margin: 0;
}

::selection {
    color: var(--color-white);
    background: var(--color-accent);
}

/* ================================
   3. Tipografía
================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.08;
    color: var(--color-primary);
}

h1 {
    font-size: clamp(2.5rem, 5.8vw, 5.4rem);
    letter-spacing: -0.045em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    letter-spacing: -0.035em;
}

h3 {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    letter-spacing: -0.025em;
}

h4 {
    font-size: 1.2rem;
    letter-spacing: -0.015em;
}

p {
    margin: 0;
    color: var(--color-text-soft);
}

strong,
b {
    font-weight: 700;
    color: inherit;
}

em,
i {
    font-style: italic;
}

small {
    font-size: 0.875rem;
}

.text-accent {
    color: var(--color-accent);
}

.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-white {
    color: var(--color-white);
}

.text-center {
    text-align: center;
}

/* ================================
   4. Contenedores
================================ */

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.container-wide {
    width: min(100% - 40px, var(--container-wide));
    margin-inline: auto;
}

.section {
    padding-block: var(--section-padding);
}

.section-sm {
    padding-block: var(--section-padding-sm);
}

.section-light {
    background: var(--color-bg-soft);
}

.section-muted {
    background: var(--color-bg-muted);
}

.section-dark {
    background: var(--color-bg-dark);
    color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6,
.section-dark p {
    color: var(--color-white);
}

/* ================================
   5. Encabezados de sección
================================ */

.section-heading {
    max-width: 780px;
    margin-bottom: 48px;
}

.section-heading.center {
    margin-inline: auto;
    text-align: center;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.section-kicker::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--color-accent);
}

.section-heading.center .section-kicker::after {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--color-accent);
}

.section-title {
    margin-bottom: 18px;
}

.section-description {
    max-width: 680px;
    font-size: 1rem;
}

.section-heading.center .section-description {
    margin-inline: auto;
}

/* ================================
   6. Botones
================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 48px;
    padding: 0 28px;

    border: 1px solid transparent;
    border-radius: var(--radius-sm);

    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    transition:
        transform var(--transition-base),
        background-color var(--transition-base),
        color var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.btn:hover {
    transform: translateY(-2px);
}

/* Botón principal dorado */
.btn-primary {
    color: var(--color-white);
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    color: var(--color-accent);
    background: var(--color-white);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-soft);
}

/* Botón azul institucional */
.btn-secondary {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    color: var(--color-primary);
    background: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-soft);
}

/* Botón outline */
.btn-outline {
    color: var(--color-primary);
    background: transparent;
    border-color: var(--color-primary);
}

.btn-outline:hover {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* Botón claro para fondos oscuros */
.btn-light {
    color: var(--color-primary);
    background: var(--color-white);
    border-color: var(--color-white);
}

.btn-light:hover {
    color: var(--color-white);
    background: var(--color-accent);
    border-color: var(--color-accent);
}

/* Botón tipo registro */
.btn-register {
    min-height: 52px;
    padding: 0 34px;
    color: var(--color-accent);
    background: transparent;
    border: 1.5px solid var(--color-accent);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.btn-register:hover {
    color: var(--color-white);
    background: var(--color-accent);
    border-color: var(--color-accent);
}

/* ================================
   7. Cards
================================ */

.card {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    background: var(--color-white);
    box-shadow: var(--shadow-card);
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base),
        border-color var(--transition-base);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(179, 107, 0, 0.25);
    box-shadow: var(--shadow-hover);
}

.card-body {
    padding: 28px;
}

/* ================================
   8. Imágenes
================================ */

.image-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-rounded {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.overlay-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 30, 49, 0.72);
}

.overlay-content {
    position: relative;
    z-index: 2;
}

/* ================================
   9. Grids
================================ */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* ================================
   10. Utilidades
================================ */

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.gap-24 {
    gap: 24px;
}

.gap-32 {
    gap: 32px;
}

.mt-12 {
    margin-top: 12px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.mt-32 {
    margin-top: 32px;
}

.mt-48 {
    margin-top: 48px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}

.divider {
    width: 100%;
    height: 1px;
    background: var(--color-border-light);
}

.accent-line {
    display: block;
    width: 64px;
    height: 3px;
    background: var(--color-accent);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;
    padding: 0 12px;

    border-radius: var(--radius-xs);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: var(--color-accent);
    background: rgba(179, 107, 0, 0.1);
}

/* ================================
   11. Accesibilidad
================================ */

:focus-visible {
    outline: 3px solid rgba(179, 107, 0, 0.45);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 9999;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--color-white);
    background: var(--color-primary);
    transition: top var(--transition-base);
}

.skip-link:focus {
    top: 20px;
}

/* ================================
   12. Responsive base
================================ */

@media (max-width: 1024px) {
    :root {
        --section-padding: 78px;
        --section-padding-sm: 56px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        gap: 34px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container,
    .container-wide {
        width: min(100% - 28px, var(--container));
    }

    .section {
        padding-block: 64px;
    }

    .section-sm {
        padding-block: 48px;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .btn {
        min-height: 46px;
        padding-inline: 22px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: clamp(2.25rem, 12vw, 3.1rem);
    }

    h2 {
        font-size: clamp(1.75rem, 9vw, 2.4rem);
    }

    .section-kicker {
        font-size: 0.7rem;
    }

    .card-body {
        padding: 22px;
    }
}