/* Todo está contenido bajo .lead-form-component para no alterar estilos globales */
.lead-form-component {
    background-color: #111111;
    width: 100%;
    max-width: 420px;
    padding: 30px 24px;
    border-radius: 8px;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.lead-form-component * {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.lead-form-component h2 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.lead-form-component .subtitle {
    color: #76bce0;
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 24px 0;
}

.lead-form-component form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lead-form-component input, 
.lead-form-component select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background-color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    color: #333333;
    outline: none;
}

.lead-form-component input::placeholder {
    color: #757575;
}

/* Contenedor para controlar la flecha del select de forma limpia */
.lead-form-component .select-wrapper {
    position: relative;
    width: 100%;
}

.lead-form-component .select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23666666' d='M0 0l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.lead-form-component select:invalid,
.lead-form-component select option[value=""] {
    color: #757575;
}

.lead-form-component #submit-btn {
    margin-top: 10px;
    width: 100%;
    height: 44px;
    background-color:#2d4754;
    color: #ffffff;
    border: none;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.lead-form-component #submit-btn:hover {
    background-color: #4c7a90;
}

/* --- RESPONSIVE --- */

/* Tablets */
@media (max-width: 768px) {
    .lead-form-component {
        max-width: 100%;
        padding: 26px 20px;
    }

    .lead-form-component h2 {
        font-size: 20px;
    }

    .lead-form-component .subtitle {
        font-size: 12.5px;
        margin-bottom: 20px;
    }
}

/* Celulares medianos */
@media (max-width: 480px) {
    .lead-form-component {
        padding: 22px 16px;
        border-radius: 6px;
    }

    .lead-form-component h2 {
        font-size: 18px;
    }

    .lead-form-component .subtitle {
        font-size: 12px;
        margin-bottom: 18px;
    }

    .lead-form-component form {
        gap: 12px;
    }

    .lead-form-component input,
    .lead-form-component select {
        height: 42px;
        font-size: 13px;
        padding: 0 12px;
    }

    .lead-form-component #submit-btn {
        height: 42px;
        font-size: 14px;
    }
}

/* Celulares muy pequeños */
@media (max-width: 360px) {
    .lead-form-component {
        padding: 18px 14px;
    }

    .lead-form-component h2 {
        font-size: 16px;
    }

    .lead-form-component input,
    .lead-form-component select {
        height: 40px;
        font-size: 12.5px;
    }

    .lead-form-component #submit-btn {
        height: 40px;
        font-size: 13px;
    }
}


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

nav{
    width:100%;
    background:#2d4754;
    position: relative;
    z-index: 1000; /* nav siempre por encima del contenido normal de la página */
}

.nav-container{
    width:100%;
    max-width:1200px;
    margin:auto;

    display:flex;
    align-items:center;
    padding:12px 20px;
    position: relative;
    z-index: 1001; /* por encima del propio nav */
}

.hamburger{
    display:none;
    width:32px;
    height:24px;
    border:none;
    background:none;
    cursor:pointer;
    padding:0;
    flex-direction:column;
    justify-content:space-between;
    z-index: 1002; /* siempre clickeable, incluso sobre el panel abierto */
    margin-right: 16px;
    position: relative;
}

.hamburger span{
    width:100%;
    height:3px;
    background:#fff;
    border-radius:10px;
    transition:transform .18s ease, opacity .18s ease;
}

.hamburger.active span:nth-child(1){
    transform:translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2){
    opacity:0;
}

.hamburger.active span:nth-child(3){
    transform:translateY(-9px) rotate(-45deg);
}

/* Wrapper que agrupa lista-izq / logo / lista-der.
   En desktop es "invisible" como contenedor (display:contents),
   así sus hijos participan directo del flex del .nav-container. */
.nav-menus{
    display:contents;
}

#log{
    order: 2;
    margin: 0 40px;
    position: relative;
    z-index: 1;
}

#log img{
    width:90px;
    display:block;
}

/* LISTAS DE NAV (izquierda y derecha) - DESKTOP */

.nav-side{
    display:flex;
    align-items:center;
    gap:35px;
    list-style:none;
    margin:0;
    padding:0;
    flex: 1;
}

#navMenuLeft{
    order: 1;
    justify-content: flex-end;
}

#navMenuRight{
    order: 3;
    justify-content: flex-start;
}

.nav-side li a{
    color:#fff;
    text-decoration:none;
    font-weight:500;
    transition:.3s;
    white-space: nowrap;
}

.nav-side li a:hover{
    color:#76bce0;
}

/* ================= MOBILE ================= */

@media (max-width:768px){

    .nav-container{
        justify-content: center;
    }

    .hamburger{
        display:flex;
        position:absolute;
        left:20px;
        top:50%;
        transform:translateY(-50%);
        margin-right: 0;
    }

    /* El wrapper deja de ser "contents" y se vuelve el panel del menú */
    .nav-menus{
        display:flex;
        flex-direction:column;

        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:#2d4754;

        opacity:0;
        visibility:hidden;
        pointer-events:none;
        transform:translateY(-10px);

        z-index: 999; /* debajo del hamburger, pero por encima de TODO el resto de la página */

        transition:
            opacity .2s ease,
            transform .2s ease,
            visibility .2s;
    }

    .nav-menus.active{
        opacity:1;
        visibility:visible;
        pointer-events:auto;
        transform:translateY(0);
    }

    /* En mobile las 3 secciones se apilan verticalmente en orden natural */
    .nav-side{
        flex-direction: column;
        order: initial;
        gap: 0;
    }

    #navMenuLeft{
        order: 1;
    }

    #log{
        order: 2;
        margin: 16px 0;
    }

    #navMenuRight{
        order: 3;
    }

    .nav-side li a{
        display:block;
        width:100%;
        padding:22px 20px;
        text-align:center;
    }
}

/* CELULARES */

@media (max-width:480px){

    .nav-container{
        padding:20px 25px;
    }

    #log img{
        width:10rem;
        height: auto;
        object-fit: cover;
        margin: 0 auto;
    }

    .nav-side li a{
        font-size:15px;
        padding:16px;
        border: none;
    }

    .hamburger{
        width:28px;
        height:20px;
    }
}

/* CELULARES PEQUEÑOS */

@media (max-width:360px){

    #log img{
        width:58px;
    }

    .nav-side li a{
        font-size:14px;
    }
}