/* =========================================================
    ESTILOS BASE (GLOBALES Y FUENTES)
    ========================================================= */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-weight: normal;
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden;
}

:root {
    --9: 90%;
    --MainColor: #b29472;
    --AllH: 100%;
    --color-dark: #333333;
    --color-text-light: #ffffff;
    --color-accent-crema: #8a7657;
}

@font-face {
    font-family: 'Sugar';
    src: url(/ASSETS/FONTS/brown-sugar.ttf);
}

@font-face {
    font-family: 'Campton';
    src: url(/ASSETS/FONTS/CamptonMedium.otf);
}

/* ANIMACIONES */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

[data-animate].visible {
    opacity: 1;
    transform: none;
}

[data-animate="fade-in"] {
    transform: none;
}

[data-animate="slide-up"] {
    transform: translateY(30px);
}

[data-animate="slide-right"] {
    transform: translateX(-30px);
}

[data-animate="zoom-in"] {
    transform: scale(0.8);
}

/* =========================================================
    HEADER Y NAVEGACIÓN (RESPONSIVE)
    ========================================================== */
body {
    background-color: white;
}

.top {
    width: 100%;
    height: auto;
    background-image: url(/ASSETS/IMG/Hero.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5rem;
    /* Reducido para móvil */
    color: white;
    font-family: Campton;
    padding-bottom: 5rem;
    /* Reducido para móvil */
    background-color: white;
    padding-top: 2.5rem;
}

nav {
    width: 100%;
    /* Ajustado para mejor control en móvil */
    height: auto;
    display: flex;
    flex-flow: column wrap;
    place-content: center;
}

/* Top Banner */
.Top__Banner {
    width: 90%;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.Box {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

#logo {
    max-width: 15rem;
    width: 100%;
    height: auto;
    object-fit: contain;
    padding-bottom: 0;
}

.contact {
    text-decoration: none;
    color: white;
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
}

.contactIcon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    filter: invert(1);
}

.langBox {
    position: relative;
    display: inline-block;
    z-index: 100;
}

.langBtn {
    background: none;
    border: none;
    color: white;
    text-transform: uppercase;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    cursor: pointer;
}

.flag {
    width: 18px;
    height: 18px;
}

.arrowIcon {
    width: 12px;
    height: 12px;
    display: inline-block;
    vertical-align: middle;
}

.En {
    display: none;
    position: absolute;
    top: 10;
    right: 0;
    background-color: #0c0c0c;
    backdrop-filter: blur(6px);
    min-width: 150px;
    padding: 10px;
    border-radius: 6px;
    z-index: 200;
    box-shadow: 0 4px 10px #00000035;
}

.En>a {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
}

.langBox:hover .En {
    display: block;
}

/* Bottom Banner (Menú) */
.Bottom__Banner {
    width: 90%;
    height: auto;
    display: flex;
    flex-flow: column wrap;
    place-content: center;
    border-top: .2rem solid white;
    z-index: 1;
    padding-top: 1rem;
}

ul {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    list-style: none;
    justify-content: center;
}

li>a {
    text-decoration: none;
    color: white;
    transition: ease-in-out .3s;
    padding: 0.5rem 1rem;
}

li>a:hover {
    background-color: var(--MainColor);
}

/* Hero Banner Específico de Nosotros */
.Hero__Banner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* MOBILE FIRST: apilamos por defecto */
    align-items: center;
    justify-content: center;
    user-select: none;
    padding: 0 5%;
}

.Hero__Banner__img {
    width: 90%;
    height: auto;
    order: 2;
    /* Imagen abajo en móvil */
}

.Hero__Banner__img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    padding-left: 0;
    max-height: 25rem;
}

.Hero__Banner__content {
    width: 100%;
    /* Ocupa todo el ancho en móvil */
    height: auto;
    font-size: 1.2rem;
    text-align: center;
    display: flex;
    place-content: center;
    flex-direction: column;
    padding: 2rem 0;
    order: 1;
    /* Contenido arriba en móvil */
}

.Hero__Banner__content h1 {
    font-size: 2.5rem;
    text-align: center;
}

.Hero__Banner__content span {
    font-family: Sugar;
    font-size: 5rem;
    color: var(--color-accent-crema);
    display: block;
    line-height: 0.8;
}

.Hero__Banner__content p {
    text-align: center;
    padding: 2rem 0;
    margin: 1.5rem auto 0;
    /* Centrar párrafo */
    font-size: 1.2rem;
    max-width: 95%;
    /* Controla el ancho del texto en móvil */
}

/* =========================================================
    SECCIÓN ACT (COMO NACE GINEVITALIS) (RESPONSIVE)
    ========================================================== */
.act {
    width: 100%;
    height: auto;
    padding-bottom: 5rem;
}

.act__title {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Sugar;
    font-size: 4rem;
    padding-top: 3rem;
    color: var(--MainColor);
    text-align: center;
    line-height: 1;
}

.act__subtitle {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Campton;
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem 5%;
    margin-bottom: 3rem;
}

.act__img {
    width: 90%;
    height: 25rem;
    /* Altura controlada para móvil */
    display: flex;
    place-self: center;
    margin: 0 auto;
}

.act__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
    SECCIÓN VALUES (MISIÓN, VISIÓN, VALORES) (RESPONSIVE)
    ========================================================== */
.values {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: white !important;
}

.values__title {
    width: 100%;
    height: auto;
    text-align: center;
    padding-top: 5rem;
    padding-bottom: 3rem;
    font-size: 3.5rem;
    /* Ajustado para móvil */
    font-family: Sugar;
    color: var(--MainColor);
    background-color: white;
}

/* Estilos para Mobile First: Apilado y sin bordes */
.values__content {
    width: 100%;
    display: block;
    /* Apilado */
    padding-top: 3rem;
    padding-bottom: 3rem;
    background-color: transparent;
}

.img {
    width: 90%;
    margin: 2rem auto;
    /* Centramos y damos espacio vertical */
    height: auto;
    text-align: center;

    border-right: none;
    /* Quitamos la línea vertical en móvil */

    padding: 1rem;
}

.img:last-child {
    border-right: none;
}

#vis,
#val {
    padding: 1rem;
}

.img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 350px;
    /* Limita el ancho del SVG en móvil */
}

/* =========================================================
    SECCIÓN DOCTOR (EL EQUIPO) (RESPONSIVE)
    ========================================================== */
.doctor {
    width: 100%;
    height: auto;
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    /* MOBILE FIRST: apilamos */
    place-content: center;
    align-items: center;
    background-color: white !important;
}

.doc__content {
    width: 90% !important;
    /* Ocupa casi todo el ancho en móvil */
    height: auto;
    padding: 2rem 5%;
    order: 2;
    text-align: center;
}

.doc__content h1 {
    width: 100%;
    font-family: Sugar;
    color: var(--MainColor);
    font-size: 4rem;
    /* Ajustado para móvil */
    line-height: 1.1;
}

.doc__content p {
    width: 100% !important;
    font-family: Campton;
    font-size: 1.1rem;
    /* Ajustado para móvil */
    padding: 0;
    margin: 1rem auto;
    max-width: 95%;
    /* Permite que el texto se ajuste al ancho */
}

.doc__img {
    width: 80%;
    /* Ocupa gran parte del ancho */
    height: 25rem;
    /* Altura controlada para móvil */
    padding-left: 0;
    order: 1;
}

.doc__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =========================================================
    SECCIÓN CONTACTO Y FOOTER (RESPONSIVE)
    ========================================================== */
.Contact {
    width: 100%;
    height: auto;
    background-color: white;
    display: flex;
    place-content: center;
    flex-direction: column;
    text-align: center;
}

.form {
    width: 90%;
    height: auto;
    align-self: center;
    display: flex;
    flex-direction: column;
    /* MOBILE FIRST: apilamos */
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.form__data {
    width: 100%;
    height: auto;
    background-color: #eaeaea;
    display: flex;
    place-content: top;
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    order: 2;
    padding-bottom: 3rem;
}

.form__data h1 {
    font-family: Campton;
    font-size: 2rem;
    padding-top: 1.5rem;
    color: #4b4b4b;
}

.form__img {
    width: 100%;
    height: 20rem;
    order: 1;
}

.form__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

form {
    padding-bottom: 0;
}

form div {
    padding-bottom: 1rem;
}

input {
    color: #636363;
    width: 90%;
    padding: 1rem;
    font-family: Campton;
    font-size: 1.1rem;
    border: 1px black solid
}

form button {
    border: none;
    color: white;
    background-color: var(--MainColor);
    padding: .5rem 5rem;
    border-radius: 10rem;
    font-family: Campton;
    font-size: 1.2rem;
    cursor: pointer;
    transition: .3s all ease-in-out;
}

form button:hover {
    background-color: #3a3a3a;
    color: white;
}

#stack {
    padding-bottom: 2rem;
}

.contact-options {
    gap: 10px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 3rem;
    padding-bottom: 5rem;
    flex-direction: column;
}

.contact__directions {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: auto;
    flex-direction: column;
}

.contact-item {
    padding: 10px 0;
    text-align: center;
    color: #3a3a3a;
    font-family: Campton;
    font-size: 1.2rem;
    letter-spacing: 1px;
    border-right: none;
    border-bottom: 1px solid #3a3a3a30;
}

.contact-item a {
    text-decoration: none;
    color: #3a3a3a;
    text-transform: uppercase;
    display: block;
}

.contact-item:last-child {
    border-bottom: none;
}

.rs {
    display: block;
}

/* Mostrar todos los items de contacto en móvil */

footer {
    width: 100%;
    height: auto;
    background-color: #3a3a3a;
    display: flex;
    place-content: center;
    flex-direction: column;
    padding: 3rem 1rem;
}

.footer__img {
    margin: 0 auto;
    width: 80%;
    height: 6rem;
}

.footer__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer__links {
    margin: 0 auto;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1rem;
}

.footer__links a {
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    font-family: Campton;
    position: relative;
    padding-bottom: .3rem;
    font-size: 1rem;
}

.footer__links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: currentColor;
    transition: width .3s ease;
}

.footer__links a:hover::after {
    width: 100%;
}

/* =========================================================
    MEDIA QUERY (ESCRITORIO / TABLET GRANDE)
    ========================================================== */
@media (min-width: 768px) {

    .top {
        gap: 14.5rem;
        padding-bottom: 10rem;
        padding-top: 2.5rem;
    }

    nav {
        width: var(--9);
        height: 15rem;
    }

    .Top__Banner,
    .Bottom__Banner {
        width: 95%;
    }

    .Hero__Banner {
        width: 90%;
        flex-direction: row;
        /* Escritorio: fila */
        padding: 0;
    }

    .Hero__Banner__img {
        width: 50%;
        order: 1;
        /* Imagen a la izquierda */
    }

    .Hero__Banner__img img {
        padding-left: 8rem;
        max-height: none;
    }

    .Hero__Banner__content {
        width: 70%;
        font-size: 1.5rem;
        text-align: center;
        order: 2;
        /* Contenido a la derecha */
        padding: 0;
        align-items: flex-start;
    }

    .Hero__Banner__content h1 {
        font-size: 3rem;
        text-align: left;
    }

    .Hero__Banner__content span {
        font-size: 8rem;
    }

    .Hero__Banner__content p {
        text-align: left;
        padding-top: 5rem;
        margin-top: 1.5rem;
        font-size: 1.5rem;
        max-width: 500px;
        /* Controla el ancho del texto en escritorio */
        margin-left: 0;
    }

    .act__title {
        font-size: 6rem;
        height: 10rem;
        padding-top: 5rem;
    }

    .act__subtitle {
        font-size: 1.5rem;
        padding: 0rem 12rem;
    }

    .act__img {
        width: 80%;
        height: 48rem;
    }

    .values__title {
        font-size: 6rem;
        padding-top: 10rem;
        padding-bottom: 5rem;
    }

    /* Misión, Visión, Valores: Distribución en fila y bordes */
    .values__content {
        display: flex;
        /* Activamos el Flexbox para la fila */
        align-items: flex-start;
        justify-content: space-evenly;
        padding-top: 5rem !important;
        padding-bottom: 14rem !important;
    }

    .img {
        flex: 1;
        margin: 0 1rem;
        width: auto;

        /* 🌟 Añadimos la línea separadora */
        border-right: 1px solid #e0e0e0;

        padding-right: 1rem;
        padding-left: 1rem;
    }

    .img:last-child {
        border-right: none;
    }

    .img img {
        max-width: none;
    }

    /* Sección Doctor: Distribución en fila */
    .doctor {
        height: 40rem;
        padding: 3rem;
        flex-direction: row;
    }

    .doc__content {
        width: 60% !important;
        padding-right: 2rem !important;
        order: 2;
        text-align: left;
    }

    .doc__content h1 {
        font-size: 6rem !important;
    }

    .doc__content p {
        font-size: 1.3rem;
        max-width: 550px;
        margin: 0;
    }

    .doc__img {
        width: 40%;
        height: 100%;
        padding-left: 14rem;
        order: 1;
    }

    /* Sección Contacto: Distribución en fila */
    .form {
        width: 80%;
        height: 55rem;
        flex-direction: row;
        padding-top: 6rem;
    }

    .form__data {
        width: 49%;
        order: 2;
        gap: 4rem;
    }

    .form__data h1 {
        font-size: 3rem;
        padding-top: 3rem;
    }

    .form__img {
        width: 49%;
        order: 1;
    }

    .contact__directions {
        flex-direction: row;
        width: 80%;
    }

    .contact-item {
        border-right: 1px solid #3a3a3a;
        border-bottom: none;
        padding: 0 25px;
        font-size: 1.6rem;
    }

    .contact-item:last-child {
        border-right: none;
    }

    footer {
        padding: 7rem;
    }

    .footer__img {
        width: 50%;
        height: 10rem;
    }

    .footer__links {
        width: 80%;
        height: 10rem;
        flex-direction: row;
        gap: 4rem;
        padding-top: 0;
    }
}