* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px; /* Esto asegura que 1rem sea igual en todos lados */
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
:root{
    --9:90%;
    --MainColor:#b29472;
    --AllH:100%;
}
@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;
}
/* Estado visible */
[data-animate].visible {
  opacity: 1;
  transform: none;
}
/* Variantes */
[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); }
/* ANIMACIONES */

.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: 7.5rem;
}
nav{
    width:100%;
    height: 100%;
    display: flex;
    flex-flow: column wrap;
    place-content: center;
    padding-top: 4rem;
}
.Hero__Banner{
    width: 100%;
    /* CAMBIO 1: Cambia la altura a 'auto' */
    height: auto; 
    
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    user-select: none;
}
.Hero__Banner__Content{
    width: 100%;
    height: 100%;
    text-align: center;
    place-content: center;
    font-size: 4rem;
    color: white;
}
@media only screen and (max-width: 600px) {
  .Hero__Banner__Content{
    padding-bottom: 8rem;
  }
  .top{
    gap: 4rem;
  }
}
.Hero__Banner__Content > span{
    display: block;
    padding-bottom: 1rem;
    font-family: Sugar;
    font-size: 8rem;
}
.Hero__Banner__Content > a{
    font-size: 1rem;
    text-decoration: none;
    color: white;
    padding: 1rem 2rem;
    border: .1rem solid white;
    border-radius: 4rem;
    transition: all ease-in-out .3s;
}
.Hero__Banner__Content > a:hover{
    background-color: var(--MainColor);
    border: none;
}/* Mantener tu layout original pero asegurar alineado correcto */
.Top__Banner{
    width: 95%;
    height: 45%;
    display: flex;
    justify-content: space-between;
    align-items: center; /* ayuda a centrar verticalmente sin cambiar layout */
    position: relative;
    z-index: 10;
}

/* IMPORTANT: dejar .Box como inline-block (esto evita que se muevan los elementos) */
.Box {
    position: relative;
    display: inline-block;   /* <- aquí se regresó a inline-block */
    vertical-align: middle;  /* alinea con la línea base del banner */
}
/* CONTENEDOR DEL LOGO */
#log {
    padding-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* LOGO RESPONSIVE Y FÁCIL DE AJUSTAR */
#logo {
    max-width: var(--logo-size, 20rem);  /* <-- Tamaño fácil de editar */
    width: 100%;
    height: auto;
    object-fit: contain;
    padding-bottom: 3rem;
}
/* CONTACTO: icono antes del texto sin cambiar la posición del enlace */
.contact{
    text-decoration: none;
    color: white;
    display: inline-block;   /* mantiene flujo inline original */
    vertical-align: middle;
    line-height: normal;
    font-family: Campton;
}
.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; /* asegurar que esté sobre todo */
}
.langBtn {
    background: none;
    border: none;
    color: white;
    text-transform: uppercase;
    padding: 8px 12px;
    display: inline-flex;      /* permite tener bandera + texto + flecha */
    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; /* más claro visualmente */
}

.En > a {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
}

/* Mostrar al pasar mouse */
.langBox:hover .En {
    display: block;
}
/* Dejo tu regla de Bottom__Banner tal cual para conservar la línea divisora */
.Bottom__Banner{
    width: 95%;
    height: 45%;
    display: flex;
    flex-flow: column wrap;
    place-content: center;
    border-top: .2rem solid white;
    z-index: 1;
}

ul{
    display: flex;
    flex-direction: row;
    gap: 4rem;
    list-style: none;
}
li > a{
    text-decoration: none;
    color: white;
    transition: ease-in-out .3s;
    padding: 1rem;
    font-family: Campton;
}
li > a:hover{
    background-color: #b29472;
}


/* Main Content */

.Main-Content{
    width: 100%;
    height: 100%;
}
.Experience{
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.Experience__Content{
    width: 50%;
    height:100%;
}
.Experience__IMG{
    width: 45%;
    height: var(--AllH);
    padding: 5rem;
}
.Experience__IMG img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.Experience__Content__Title{
    width: 100%;
    height: auto;
    font-size: 5rem;
    text-transform: uppercase;
    font-family: Sugar;
    color: var(--MainColor);
    padding-top: 7rem !important;
}
@media only screen and (max-width: 600px) {
  .Experience__Content__Title{
    font-size: 4rem !important;
  }
  .Experience__Content__Development p{
     font-size: 1.3rem !important;
     padding: 0rem 3rem !important;
  }
}

@media (min-width: 1024px) {
  .Experience__Content__Title{
    padding: 0rem .1rem;
    text-align: center;
  }
}
.Experience__Content__Development{
    width: 100%;
    height: 60%;
    display: flex;
    flex-flow: column wrap;
}
@media (min-width: 1024px) {
  .Experience__Content__Development{
    padding-left: 14%;
  }
}
.Experience__Content__Development p{
    line-height: 1.4;
  width: 70%;
  text-align: justify;
  font-size: 1.5rem;
  font-family: Campton;
  padding: 1rem 1rem;
  color: #5d5d5d;
}
@media (min-width: 1024px) {
  .Experience__Content__Development p{
    text-align: left;
  }
}
.Experience__Content__Development > div{
    display: flex;
    align-self: left;
    padding: 4rem 0rem;
}
.Experience__Content__Development > div > a{
    color: white;
    background-color: var(--MainColor);
    border-radius: 2rem;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 1rem 4rem;
    align-self: center;
    font-family: Campton;
    transition: all ease-in-out .3s;
}
.Experience__Content__Development > div > a:hover{
    background-color:transparent;
    border: 1px solid #202020;
    color: #202020;
} 

/* ==============================
       MEDIA QUERY RESPONSIVE GENERAL
============================== */

/* TABLET - PANTALLAS MEDIAS */
@media (max-width: 1024px) {

    /* Header */
    header {
        height: auto;
        padding: 2rem 5%;
        text-align: center; /* asegurar que el contenido esté centrado */
    }

    #logo {
        max-width: 12rem;
        padding-bottom: 2rem;
        margin: 0 auto; /* centrar logo */
        display: block;
    }

    /* Top Banner */
    .Top__Banner {
        flex-direction: column;
        align-items: center; /* centrar contenido */
        height: auto;
        gap: 1rem;
    }

    /* Bottom Banner */
    .Bottom__Banner {
        flex-direction: column;
        align-items: center; /* centrar contenido */
        height: auto;
        gap: 1rem;
    }

    /* Ajuste del menu */
    .Bottom__Banner .menu {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    /* Hero Banner */
    .Hero__Banner {
        height: auto;
        padding: 2rem 0;
        width: 95%;
    }

    .Hero__Banner__Content {
        font-size: 3rem;
        height: auto;
        text-align: center;
    }

    .Hero__Banner__Content > span {
        font-size: 5rem;
    }

    .Hero__Banner__Content > a {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }

    /* Experience Section */
    .Experience {
        flex-direction: column;
        height: auto;
        padding: 2rem 0;
        align-items: center;
    }

    .Experience__Content, .Experience__IMG {
        width: 100%;
        height: auto;
        padding: 1rem 0;
    }

    .Experience__Content__Title {
        font-size: 3rem;
        padding: 1.5rem 0;
        text-align: center;
    }

    .Experience__Content__Development p {
        width: 100%;
        font-size: 1.2rem;
        padding: 1rem 0;
        text-align: justify;
    }

    .Experience__Content__Development > div > a {
        font-size: 1rem;
        padding: 0.8rem 3rem;
        display: inline-block;
        margin: 0 auto;
    }
}

/* TABLET PEQUEÑA - PANTALLAS 768px */
@media (max-width: 768px) {

    .Hero__Banner__Content {
        font-size: 2.5rem;
    }

    .Hero__Banner__Content > span {
        font-size: 5rem;
    }

    .Experience__Content__Title {
        font-size: 2.5rem;
    }

    .Experience__Content__Development > div > a {
        font-size: 0.9rem;
        padding: 0.6rem 2.5rem;
    }
}

/* MÓVIL - PANTALLAS 480px O MENOS */
@media (max-width: 480px) {

    .Hero__Banner__Content {
        font-size: 2rem;
    }

    .Hero__Banner__Content > span {
        font-size: 3.5rem;
    }

    .Experience__Content__Title {
        font-size: 2rem;
        padding: 1rem 0.5rem;
    }

    .Experience__Content__Development p {
        font-size: 1rem;
        padding: 0.5rem 0;
    }

    .Experience__Content__Development > div > a {
        font-size: 0.8rem;
        padding: 0.5rem 2rem;
    }

    #logo {
        max-width: 7rem;
    }

    /* Esconder menu completamente en móvil */
    .Bottom__Banner .menu {
        display: flex;
    }
}


/* --- MENU VISIBLE EN MOVIL (IPHONE / ANDROID) --- */
@media (max-width: 480px) {

    nav {
        flex-direction: column;
        padding: 1rem 1.5rem; 
        gap: 1rem;
    }

    .nav-brand {
        margin: 0;
        width: 10rem;
        height: auto;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        align-items: center;
    }

    .nav-links a {
        padding: 0.8rem 1rem;
        font-size: 1rem;
        display: block;
        width: 100%;
        text-align: center;
    }

    .cta-nav {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1rem;
        margin-top: 0.5rem;
    }
}
