/* =========================================
   YELOSE TECH — IDENTIDAD DE MARCA
   Estilos específicos de la página de identidad de marca.
   ========================================= */

/* =========================================
   CONTENIDO GENERAL
   ========================================= */

body > main {
    overflow-x: clip;
}

body > main > section {
    padding: 8% var(--content-padding-inline);
}

/* =========================================
   HERO
   ========================================= */

body > main > section[data-section="hero"] {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-block: clamp(2rem, 6vh, 4.5rem);
    padding-inline: var(--content-padding-inline);
    background-color: var(--color-white);
}

body > main > section[data-section="hero"] > img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: 1200 / 896;
    justify-self: center;
    align-self: center;
    object-fit: cover;
    object-position: center;
    border-radius: 0.25rem;
}

body > main > section[data-section="hero"] > div {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

body > main > section[data-section="hero"] > div > h2 {
    font-size: clamp(1.85rem, 3.2vw, 2.75rem);
    font-weight: 200;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
    color: var(--color-black);
}

body > main > section[data-section="hero"] > div > p:last-child {
    max-width: 42rem;
    font-weight: 300;
    line-height: 1.7;
    text-align: justify;
    color: var(--color-black);
}

/* =========================================
   IDENTIDAD
   ========================================= */

body > main > section[data-section="identidad"] {
    display: grid;
    position: relative;
    z-index: 0;
    justify-items: center;
    align-content: center;
    gap: clamp(1rem, 2.5vh, 1.65rem);
    min-height: 100vh;
    min-height: 100dvh;
    padding-block-start: calc(8% + 2.5rem);
    padding-block-end: calc(4% + 7.75rem);
    padding-inline: var(--content-padding-inline);
    text-align: center;
    color: var(--color-white);
    background-color: transparent;
    background-image: linear-gradient(
        var(--color-secondary-500),
        var(--color-secondary-500)
    );
    background-repeat: no-repeat;
    background-size: 100% calc(100% - 16.5rem);
    background-position: center center;
    overflow: visible;
}

body > main > section[data-section="identidad"] > header,
body > main > section[data-section="identidad"] > [data-identidad-cards],
body > main > section[data-section="identidad"] > [data-identidad-cierre] {
    position: relative;
    z-index: 4;
}

body > main > section[data-section="identidad"] > header {
    display: grid;
    width: 100%;
    max-width: 65rem;
    justify-items: center;
    gap: 0.35rem;
}

body > main > section[data-section="identidad"] > header > h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 200;
    line-height: 1.2;
    color: var(--color-white);
}

body > main > section[data-section="identidad"] > header > p {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    color: var(--color-secondary-light);
}

body > main > section[data-section="identidad"] > [data-identidad-cards] {
    display: grid;
    width: 100%;
    max-width: 70rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.85rem, 2vw, 1.35rem);
    align-items: stretch;
}

body > main > section[data-section="identidad"] > [data-identidad-cards] > article {
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    justify-items: center;
    align-content: start;
    gap: 0.5rem;
    padding: clamp(1rem, 2vw, 1.35rem) 0.95rem;
    background-color: var(--color-white);
    border: 0.0625rem solid color-mix(in srgb, var(--color-white) 28%, transparent);
    border-radius: 0.35rem;
}

body > main > section[data-section="identidad"] > [data-identidad-cards] > article > span {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 0.0625rem solid var(--color-secondary-200);
    border-radius: 50%;
    background-color: var(--color-secondary-50);
}

body > main > section[data-section="identidad"] > [data-identidad-cards] > article > span > img {
    display: block;
    width: 1.45rem;
    height: 1.45rem;
    object-fit: contain;
}

body > main > section[data-section="identidad"] > [data-identidad-cards] > article > h3 {
    font-size: clamp(1.1rem, 1.7vw, 1.25rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-primary-500);
}

body > main > section[data-section="identidad"] > [data-identidad-cards] > article > p {
    max-width: 15rem;
    font-weight: 300;
    line-height: 1.4;
    color: var(--color-black);
}

body > main > section[data-section="identidad"] > [data-identidad-cards] > article > [data-incluye] {
    display: grid;
    width: 100%;
    gap: 0.2rem;
    padding-top: 0.45rem;
    border-top: 0.0625rem solid var(--color-primary-100);
}

body > main > section[data-section="identidad"] > [data-identidad-cards] > article > [data-incluye] > span {
    display: block;
    width: auto;
    height: auto;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-secondary-500);
    background: none;
    border: 0;
    border-radius: 0;
}

body > main > section[data-section="identidad"] > [data-identidad-cards] > article > [data-incluye] > p {
    max-width: none;
    font-size: 0.78rem;
    font-weight: 300;
    line-height: 1.4;
    color: var(--color-secondary-700);
}

body > main > section[data-section="identidad"] > [data-identidad-cards] > article > [data-plazo] {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-secondary-500);
}

body > main > section[data-section="identidad"] > [data-identidad-cierre] {
    max-width: 40rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--color-white);
}

/* ARRIBA — capa clara */
body > main > section[data-section="identidad"] > div[data-wave="top"] {
    position: absolute;
    top: 1.5rem;
    bottom: auto;
    left: 0;
    z-index: 1;
    width: 112%;
    height: 8rem;
    background-color: var(--color-secondary-light);
    transform: translate(-7rem, -2.2rem);
    clip-path: var(--onda-superior-clara);
    pointer-events: none;
}

/* ARRIBA — capa oscura */
body > main > section[data-section="identidad"]::before {
    position: absolute;
    top: 1rem;
    bottom: auto;
    left: 0;
    z-index: 2;
    width: 105%;
    height: 8rem;
    background-color: var(--color-secondary-800);
    transform: translate(-2rem, -1.2rem);
    clip-path: var(--onda-superior-oscura-alargada);
    pointer-events: none;
    content: "";
}

/* ARRIBA — capa verde */
body > main > section[data-section="identidad"]::after {
    position: absolute;
    top: 1rem;
    bottom: auto;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 8.5rem;
    background-color: var(--color-secondary-500);
    transform: none;
    clip-path: var(--onda-superior-clara);
    pointer-events: none;
    content: "";
}

/* ABAJO — capa clara */
body > main > section[data-section="identidad"] > div[data-wave="bottom"] {
    position: absolute;
    bottom: 3rem;
    left: 0;
    z-index: 1;
    width: 112%;
    height: 8rem;
    background-color: var(--color-secondary-light);
    transform: translate(-7rem, 2rem);
    clip-path: var(--onda-inferior-clara);
    pointer-events: none;
}

/* ABAJO — capa oscura */
body > main > section[data-section="identidad"] > div[data-wave="bottom"]::before {
    position: absolute;
    bottom: 2rem;
    left: 0;
    z-index: 2;
    width: 105%;
    height: 8rem;
    background-color: var(--color-secondary-800);
    transform: translate(-2rem, 1rem);
    clip-path: var(--onda-inferior-oscura-alargada);
    pointer-events: none;
    content: "";
}

/* ABAJO — capa verde */
body > main > section[data-section="identidad"] > div[data-wave="bottom"]::after {
    position: absolute;
    bottom: 2rem;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 8.65rem;
    background-color: var(--color-secondary-500);
    clip-path: var(--onda-inferior-clara);
    pointer-events: none;
    content: "";
}

body > main > section[data-section="contacto"] {
    align-content: center;
    gap: clamp(0.85rem, 2vw, 1.35rem);
    min-height: 100vh;
    min-height: 100dvh;
    padding-block: clamp(2rem, 5vh, 3.5rem);
    padding-inline: var(--content-padding-inline);
}

body > main > section[data-section="contacto"] > picture {
    display: block;
    width: 100%;
    max-width: 70rem;
    height: clamp(8.5rem, 18vh, 12.5rem);
    overflow: hidden;
    border-radius: 0.25rem;
}

body > main > section[data-section="contacto"] > picture > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

body > main > section[data-section="contacto"] > a {
    color: var(--color-primary-500);
    background-color: var(--color-white);
    border-color: var(--color-primary-500);
}

body > main > section[data-section="contacto"] > a:hover {
    color: var(--color-white);
    background-color: var(--color-primary-500);
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 53.3125rem) {
    body > main > section[data-section="hero"] {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        align-items: start;
        gap: clamp(1.5rem, 4vw, 3rem);
        row-gap: 1.5rem;
        padding-block: 8%;
        grid-template-rows: none;
    }

    body > main > section[data-section="hero"] > div {
        display: contents;
    }

    body > main > section[data-section="hero"] > div > h2 {
        order: 1;
        font-size: 1.875rem;
        white-space: normal;
    }

    body > main > section[data-section="hero"] > img {
        order: 2;
        max-width: 50%;
    }

    body > main > section[data-section="hero"] > div > p:last-child {
        order: 3;
        text-align: justify;
    }

    body > main > section[data-section="identidad"] {
        min-height: 0;
        align-content: start;
        gap: clamp(1rem, 2.25vh, 1.5rem);
        padding-block-start: calc(8% + 1.75rem);
        padding-block-end: calc(4% + 6.5rem);
    }

    body > main > section[data-section="identidad"] > div[data-wave="top"] {
        left: max(0px, calc(7rem - 12%));
    }

    body > main > section[data-section="identidad"]::before {
        left: max(0px, calc(2rem - 5%));
    }

    body > main > section[data-section="identidad"] > div[data-wave="bottom"] {
        left: max(0px, calc(7rem - 12%));
    }

    body > main > section[data-section="identidad"] > div[data-wave="bottom"]::before {
        left: max(0px, calc(2rem - 5%));
    }

    body > main > section[data-section="identidad"] > [data-identidad-cards] {
        grid-template-columns: minmax(0, 1fr);
        max-width: 22rem;
    }
}

@media (max-width: 47.9375rem) {
    body > main > section[data-section="identidad"] {
        padding-block-start: calc(8% + 4rem);
        padding-block-end: calc(4% + 8rem);
    }

    body > main > section[data-section="identidad"] > div[data-wave="bottom"] {
        bottom: 3rem;
        left: -1rem;
        width: calc(100% + 2rem);
        transform: translate(0, 2rem);
    }

    body > main > section[data-section="identidad"] > div[data-wave="bottom"]::before {
        bottom: 2rem;
        left: 0;
        width: 100%;
        transform: translate(0, 1rem);
    }

    body > main > section[data-section="identidad"] > div[data-wave="bottom"]::after {
        bottom: 2rem;
        left: 0;
        width: 100%;
        transform: none;
    }

    body > main > section[data-section="contacto"] {
        min-height: 0;
        padding-block-start: 8%;
        padding-block-end: calc(8% + 3rem);
    }
}

@media (min-width: 53.375rem) and (max-width: 80rem) and (orientation: portrait) {
    body > main > section[data-section="hero"] {
        align-content: start;
        align-items: center;
        justify-items: center;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        padding-block-start: 8%;
        padding-block-end: 1.25rem;
        row-gap: 2rem;
        text-align: center;
    }

    body > main > section[data-section="hero"] > div {
        display: contents;
    }

    body > main > section[data-section="hero"] > div > h2 {
        order: 1;
        width: 100%;
        text-align: center;
    }

    body > main > section[data-section="hero"] > div > p:last-child {
        order: 2;
        text-align: center;
        justify-self: center;
    }

    body > main > section[data-section="hero"] > img {
        order: 3;
        width: 44%;
        max-width: 44%;
    }

    body > main > section[data-section="identidad"] {
        align-content: start;
        min-height: auto;
        padding-block-start: 8.5rem;
        padding-block-end: 10.5rem;
    }

    body > main > section[data-section="identidad"] > header {
        justify-items: center;
        text-align: center;
    }

    body > main > section[data-section="identidad"] > [data-identidad-cards] {
        align-items: center;
    }

    body > main > section[data-section="identidad"] > [data-identidad-cards] > article {
        grid-template-rows: none;
        align-content: center;
        justify-items: center;
    }

    body > main > section[data-section="contacto"] {
        align-content: start;
        min-height: 0;
        padding-block: 1.25rem;
        padding-block-start: 3.5rem;
        gap: 1rem;
    }
}
