/* =====================
   Variables
   ===================== */
:root {
    /* Tipografias */
    --font-titles: "RobotoSlab";
    --font-body: "RobotoSlab";

    /* Tamaños de Fuentes */
    --xxSmall: clamp(0.55rem, 0.5rem + 0.15vw, 0.65rem);
    --xSmall: clamp(0.625rem, 0.6rem + 0.1vw, 0.75rem);
    --small: clamp(0.8rem, 0.75rem + 0.2vw, 0.875rem);
    --normal: clamp(1rem, 0.95rem + 0.4vw, 1.125rem);
    --large: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    --xLarge: clamp(2.5rem, 2rem + 4vw, 3.75rem);
    --xxLarge: clamp(3.5rem, 2.5rem + 8vw, 6.5rem);

    /* ── Colores IMB-PC ───────────────────────────────────── */
    /* Azul marino institucional (color principal del logo) */
    --brand: #1B2D6E;
    --brand-dark: #0F1A42;
    --brand-mid: #2B4499;
    --brand-light: #E8EDF8;

    /* Fondos */
    --bg: #F5F6FA;
    /* crema azulada muy suave */
    --bg-dark: #0F1A42;

    /* CTA (botones / acciones) */
    --cta: #1B2D6E;
    --cta-hover: #2B4499;

    /* Texto */
    --text: #0F1A42;
    --text-muted: #3D4F7C;
    --text-light: #F5F6FA;

    /* Bordes */
    --border: rgba(27, 45, 110, 0.15);
}


/* =====================
   General
   ===================== */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    overflow-x: hidden;

    display: grid;
    grid-template-rows: max-content 1fr max-content;
    grid-template-areas:
        "header"
        "main"
        "footer";
}

body::-webkit-scrollbar {
    display: none;
}

a {
    color: var(--text-link);
    text-decoration: none;
}

img {
    max-width: 100%;
}

hr {
    color: var(--border);
}

label {
    line-height: 2.618;
}


/* =====================
   Layout
   ===================== */
header {
    width: 100%;
    height: 10vh;
    max-height: 60px;
    padding: clamp(13px, 3vw, 21px);
    grid-area: header;
}

main {
    grid-area: main;
    overflow-x: hidden;
}

footer {
    background-color: var(--brand);
    width: 100%;
    margin-top: clamp(89px, 21vw, 144px);
    padding: clamp(21px, 13vw, 34px);
    grid-area: footer;
}

section {
    margin-block: clamp(89px, 34vw, 144px);
    padding: clamp(21px, 13vw, 34px);
}


/* =====================
   Utilidades
   ===================== */
.centerChilds {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
}

.centerText {
    text-align: center;
}

.icon {
    color: var(--text);
}


/* =====================
   Imágenes
   ===================== */
.imageSecondary {
    width: 100%;
    height: 100%;
    aspect-ratio: 1.618 / 1;
    object-fit: cover;
    object-position: center;
}


/* =====================
   Botones
   ===================== */
button,
.btn {
    background-color: var(--cta);
    color: var(--text-light);
    margin-block: 13px;
    padding-block: 13px;
    padding-inline: clamp(21px, 13vw, 34px);
    border: none;
    border-radius: 21px;
    box-shadow: 0px 5px var(--text);
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.007rem;
    display: inline-flex;
    justify-content: center;
    cursor: pointer;
}

button:hover,
.btn:hover {
    background-color: var(--cta-hover);
    color: var(--text-light);
    box-shadow: 0px 6px var(--text-muted);
    transform: scale(1.03);
}


/* =====================
   Inputs
   ===================== */
input {
    width: 100%;
    min-height: 50px;
    font-family: var(--font-body);
    padding: clamp(8px, 5vw, 13px);
    border: 1px solid var(--border);
    border-radius: 4px;
}

textarea {
    width: 100%;
    min-height: 120px;
    font-family: var(--font-body);
    padding: clamp(8px, 5vw, 13px);
    border: 1px solid var(--border);
    border-radius: 4px;
}


/* =====================
   Componentes
   ===================== */
.target {
    width: 100%;
    height: 100%;
    padding: clamp(21px, 8vw, 34px);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.carouselFather {
    display: flex;
    gap: 34px;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    scrollbar-width: none;
}

.carouselFather::-webkit-scrollbar {
    display: none;
}

.carouselChild {
    flex: 0 0 85%;
    scroll-snap-align: start;
}


/* =====================
   Tipografía — Tamaños
   ===================== */
.txtXx-small {
    font-size: var(--xxSmall);
}

.txtX-small {
    font-size: var(--xSmall);
}

.txtSmall {
    font-size: var(--small);
}

.txtNormal {
    font-size: var(--normal);
}

.txtLarge {
    font-size: var(--large);
}

.txtX-large {
    font-size: var(--xLarge);
}

.txtXx-large {
    font-size: var(--xxLarge);
}


/* =====================
   Tipografía — Semántica
   ===================== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-titles);
    font-weight: bolder;
}

.txtComplement {
    font-size: var(--small);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.txtDescription {
    font-size: var(--small);
}

.txtPrincipal {
    font-size: var(--large);
}


/* =====================
   Texto Enfocado en Estilos
   ===================== */
.txtMark {
    color: var(--cta);
}


/* =====================
   Contenedores de Texto
   ===================== */
.titleContainer {
    width: 100%;
    max-width: 40ch;
    line-height: 1.118;
    font-weight: 900;
}

.textContainer {
    max-width: clamp(20ch, 100%, 65ch);
    line-height: 1.618;
}


/* =====================
   Responsive
   ===================== */
@media (max-width: 600px) {
    .carouselChild {
        flex: 0 0 85%;
    }
}