.hamburger-menu {
    display: none;
}

/* =========================================
   1. RESET Y BASE GENERAL
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa; 
    overflow-x: hidden; 
}

/* =========================================
   PÁGINA CONTACTO (HEADER)
   ========================================= */
.hero-section-inicio {
    position: relative;
    width: 100%;
    height: 70vh; 
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('contactofondoardiles.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- TÍTULO GIGANTE EN HEADER --- */
.page-title-overlay {
    position: absolute;
    bottom: 80px; 
    right: 3%;  
    font-weight: 900; /* Poppins Black */
    font-size: 90px;  
    color: #d0d0ce;
    line-height: 1;
    z-index: 10;
    letter-spacing: -3px;
    margin: 0;
}

/* =========================================
   FRANJA / BARRA DE NAVEGACIÓN
   ========================================= */
.navbar {
    position: absolute;
    top: 50px; 
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center; 
    background-color: rgba(5, 10, 25, 0.9);
    height: 150px; 
    padding: 0 5%; 
    width: 100%;
    z-index: 999;
}

.logo-container {
    width: 300px; 
    height: 100%;
    position: relative; 
    display: flex;
    align-items: center;
}

.logo-link {
    position: absolute; 
    top: 50%;
    left: 0;
    transform: translateY(-50%); 
    height: 280px; 
    display: block;
    z-index: 30; 
}

.logo-img {
    height: 100%; 
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 45px; 
}

.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 300; 
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #ff7826; 
}

/* --- MENÚ DESPLEGABLE --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    display: flex !important;
    align-items: center;
    gap: 6px; 
    cursor: pointer;
}

.dropdown-arrow {
    transition: transform 0.3s ease; 
    margin-top: 2px; 
}

.dropdown:hover .dropdown-arrow,
.dropdown-content.show ~ .dropbtn .dropdown-arrow {
    transform: rotate(180deg);
    color: #ff7826;
}

.dropdown-content {
    display: none; 
    position: absolute;
    top: 100%; 
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(35, 48, 77, 0.98); 
    min-width: 250px; 
    box-shadow: 0px 8px 20px 0px rgba(0,0,0,0.5); 
    border-radius: 6px;
    padding: 10px 0;
    list-style: none;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s ease; 
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px; 
    left: 0;
    width: 100%;
    height: 15px;
    background-color: transparent; 
}

.dropdown-content li a {
    color: #ffffff;
    padding: 12px 20px;
    display: block;
    text-align: start;
    font-size: 13px; 
    font-weight: 300;
}

.dropdown-content li a:hover {
    background-color: rgba(255, 120, 38, 0.15); 
    color: #ff7826; 
}

.dropdown:hover .dropdown-content,
.dropdown-content.show {
    display: block;
    opacity: 1;
}

.btn {
    display: inline-block;
    background-color: #eab332; 
    color: #ffffff;
    text-decoration: none;
    font-weight: 500; 
    border-radius: 6px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e5661a;
}

.btn-nav {
    padding: 12px 24px;
    font-size: 14px;
}

/* =========================================
   CONTENIDO "CONTÁCTENOS"
   ========================================= */

.overlapping-content {
    background-color: #ffffff;
    border-radius: 40px 40px 0 0; 
    margin-top: -60px; 
    position: relative; 
    z-index: 5;
    padding: 80px 8%; 
    min-height: 90vh; 
}

/* --- INDICADOR 24/7 (ARRIBA DERECHA) --- */
.contact-247-top {
    position: absolute;
    top: 60px;
    right: 8%;
    text-align: right;
}

.contact-247-top h4 {
    font-weight: 300; 
    font-size: 35px;
    color: #bfae91; 
    line-height: 1;
    margin-bottom: 5px;
}

.contact-247-top p {
    font-weight: 300; 
    font-size: 11px;
    color: #666666;
    line-height: 1.3;
}

/* --- CONTENEDOR PRINCIPAL Y FILAS --- */
.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px; /* Separación entre la fila de arriba y la de abajo */
    margin-top: 40px;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

/* --- FILA SUPERIOR (Texto y Abogada PNG) --- */

.contact-text-box {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-main-heading {
    font-weight: 500; 
    font-size: 45px; 
    color: #222222; 
    line-height: 1.2;
    letter-spacing: -1px;
}

.contact-gold-text {
    color: #bfae91; 
}

.contact-desc p {
    font-weight: 300; 
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
}

.contact-feature-icon {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.c-icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.contact-feature-icon p {
    font-weight: 300; 
    font-size: 12px;
    color: #333333;
    line-height: 1.5;
}

.contact-img-box.right-align {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
}

.lawyer-png {
    width: 100%;
    max-width: 170px; /* Abogada de cuerpo entero */
    height: auto;
    object-fit: contain;
    margin-right: 200px;
}

/* --- FILA INFERIOR (Abogado y Formulario) --- */

.contact-img-box.left-align {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.lawyer-framed {
    width: 100%;
    max-width: 450px;
    height: auto;
    /* La imagen ya trae su marco dorado según tus indicaciones */
}

/* ESTILOS DEL FORMULARIO */
.contact-form-box {
    flex: 1;
    width: 100%;
    max-width: 500px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-half {
    display: flex;
    gap: 20px;
}

.form-group-half input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 25px; /* Bordes muy redondeados como en tu diseño */
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: #333;
    outline: none;
    background-color: transparent;
    transition: border-color 0.3s ease;
}

.form-group-full textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: #333;
    outline: none;
    background-color: transparent;
    height: 120px; /* Altura del área de texto */
    resize: none; /* Evita que el usuario lo deforme */
    transition: border-color 0.3s ease;
}

.form-group-half input:focus,
.form-group-full textarea:focus {
    border-color: #bfae91; /* Borde dorado al hacer click */
}

.btn-submit {
    align-self: flex-start; /* Alinea el botón a la izquierda */
    background-color: #bfae91; /* Color dorado */
    color: #ffffff;
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
    background-color: #a8987b; /* Un dorado un poco más oscuro */
    transform: translateY(-2px);
}


/* =========================================
   FOOTER 
   ========================================= */
.site-footer {
    background-color: #030614; 
    color: #ffffff;
    padding-top: 100px;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr; 
    gap: 40px;
    margin-bottom: 30px;
}

.brand-col {
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.footer-logo-container {
    position: relative;
    height: 100px; 
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px; 
}

.footer-logo {
    position: absolute; 
    height: 320px; 
    width: auto;
    top: 80%;
    left: 10%;
    transform: translate(-50%, -50%); 
}

.footer-phone {
    font-weight: 500; 
    font-size: 24px;
    letter-spacing: 0.5px;
    margin-top: 50px;
    margin-left: -300px;
}

.col-title {
    font-weight: 300; 
    font-size: 14px;
    margin-bottom: 25px;
    color: #ffffff;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 300; 
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff7826; 
}

.footer-social {
    display: flex;
    justify-content: flex-end; 
    gap: 15px;
    padding-bottom: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ffffff;
    border-radius: 50%; 
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #ff7826;
    border-color: #ff7826;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 20px 0;
}

.footer-bottom-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    gap: 8px; 
    text-align: center;
}

.copyright, .developer {
    font-weight: 300; 
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7); 
    margin: 0;
}

.developer {
    color: rgba(255, 255, 255, 0.4); 
}

/* =========================================================
   1. RESPONSIVE: MÓVILES (Celulares hasta 768px)
   ========================================================= */
@media screen and (max-width: 768px) {

    body.no-scroll {
        overflow: hidden;
    }
    /* --- BARRA DE NAVEGACIÓN Y HAMBURGUESA --- */
    .navbar {
        height: 90px;
        top: 0;
        padding: 0 20px;
        background-color: rgba(5, 10, 25, 0.95);
    }

    .nav-btn-container { display: none !important; }

    .logo-container { width: 100%; display: flex; justify-content: space-between; align-items: center; }
    .logo-link { height: auto; position: relative; transform: none; top: 0; display: flex; align-items: center; width: 70%; }
    .logo-img { width: 100%; max-width: 200px; height: auto; }

    .hamburger-menu {
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        width: 38px; height: 38px; cursor: pointer; z-index: 100; margin-right: 10px; flex-shrink: 0;
    }
    .hamburger-menu span {
        display: block; height: 2px; width: 22px; background-color: #ffffff;
        border-radius: 2px; transition: all 0.3s ease; position: absolute;
    }
    .hamburger-menu span:nth-child(1) { transform: translateY(-7px); }
    .hamburger-menu span:nth-child(2) { transform: translateY(0); }
    .hamburger-menu span:nth-child(3) { transform: translateY(7px); }
    
    .hamburger-menu.active span:nth-child(1) { transform: translateY(0) rotate(45deg); }
    .hamburger-menu.active span:nth-child(2) { opacity: 0; }
    .hamburger-menu.active span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

    /* --- MENÚ DESPLEGABLE MÓVIL --- */
    .nav-links {
        position: fixed; top: 90px; left: -100%; width: 100%; height: calc(100vh - 90px);
        background-color: rgba(25, 28, 33, 0.98); flex-direction: column; justify-content: flex-start;
        align-items: stretch; padding: 0; margin: 0; gap: 0; transition: left 0.4s ease; z-index: 99; overflow-y: auto;
    }
    .nav-links.active { left: 0; }
    .nav-links li { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
    .nav-links li a { padding: 18px 25px; font-size: 16px; display: flex; justify-content: space-between; width: 100%; }
    .dropdown { position: static; }
    .dropdown-content { position: static; transform: none; background-color: rgba(0, 0, 0, 0.25); min-width: 100%; box-shadow: none; }

    /* --- CABECERA Y TÍTULO --- */
    .hero-section-inicio { height: 40vh; }
    .page-title-overlay { font-size: 45px; bottom: 40px; right: 5%; }

    /* --- CONTENIDO CONTACTO (Apilado) --- */
    .overlapping-content {
        padding: 50px 5%;
        margin-top: -30px;
        border-radius: 25px 25px 0 0;
    }

    .contact-247-top {
        position: relative;
        top: 0; right: 0;
        text-align: center;
        margin-bottom: 30px;
    }

    .contact-wrapper { gap: 40px; margin-top: 0; }
    
    .contact-row {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    /* --- CAMBIO: OCULTAR IMAGEN DE LA ABOGADA EN MÓVIL --- */
    .top-row .contact-img-box {
        display: none;
    }

    .contact-text-box { align-items: center; }
    .contact-main-heading { font-size: 35px; }
    .contact-feature-icon { flex-direction: column; text-align: center; gap: 10px; }
    
    /* Ajuste para la imagen del abogado de abajo */
    .bottom-row .contact-img-box { justify-content: center; }
    .lawyer-framed { max-width: 100%; }

    /* --- FORMULARIO ADAPTADO A MÓVIL --- */
    .contact-form-box { max-width: 100%; }
    .form-group-half {
        flex-direction: column;
        gap: 20px;
    }
    .btn-submit { align-self: center; width: 100%; }

    /* --- FOOTER --- */
    .footer-top { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-logo { position: static; height: auto; max-width: 180px; transform: none; }
    .footer-phone { margin-left: 0; margin-top: 15px; }
    .footer-social { justify-content: center; }
}

/* =========================================================
   2. RESPONSIVE DEFINITIVO: IPADS (768px a 1024px)
   ========================================================= */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    /* --- NAVBAR --- */
    .navbar { height: 130px; padding: 0 20px; display: flex; justify-content: flex-end; align-items: center; position: relative; }
    .logo-container { width: 250px; height: 100%; position: absolute; left: 20px; top: 0; display: flex; align-items: center; z-index: 30; }
    .logo-link { position: absolute; top: 50%; left: 0; transform: translateY(-50%); width: 100%; height: auto; }
    .logo-img { width: 100%; height: auto; max-height: 240px; object-fit: contain; }
    
    .nav-links { gap: 15px; display: flex; align-items: center; margin-right: 15px; }
    .nav-links li a { font-size: 13px; white-space: nowrap; }
    .btn-nav { padding: 10px 12px; font-size: 12px; width: 150px; text-align: center; white-space: normal; }
    .dropbtn { gap: 4px !important; }

    /* --- CABECERA Y TÍTULO --- */
    .page-title-overlay { font-size: 65px; bottom: 110px; }

    /* --- CONTENIDO CONTACTO --- */
    .contact-247-top {
        position: relative; 
        top: 0; right: 0;
        text-align: center;
        margin-bottom: 40px;
    }

    .contact-wrapper { gap: 50px; margin-top: 0; }

    .contact-row {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
    }

    /* --- CAMBIO: OCULTAR IMAGEN DE LA ABOGADA EN IPAD --- */
    .top-row .contact-img-box {
        display: none;
    }

    .contact-text-box { align-items: center; max-width: 80%; }
    .contact-main-heading { font-size: 45px; }
    .contact-feature-icon { justify-content: center; text-align: left; }
    
    /* Ajuste para la imagen del abogado de abajo */
    .bottom-row .contact-img-box { justify-content: center; }
    .lawyer-framed { max-width: 60%; }

    .contact-form-box { max-width: 100%; width: 80%; }
    .btn-submit { align-self: center; }

    /* --- FOOTER --- */
    .footer-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 40px; }
    .footer-logo { position: static !important; height: auto; max-height: 180px; transform: none !important; margin: 0 auto; }
    .footer-phone { margin: 20px 0 0 0 !important; text-align: center; }
    .footer-social { justify-content: center; margin-top: 20px; }
}

/* =========================================================
   3. RESPONSIVE: LAPTOPS PEQUEÑAS / NEST HUB (1025px a 1280px)
   ========================================================= */
@media screen and (min-width: 1025px) and (max-width: 1280px) {
    .navbar { height: 120px; padding: 0 3%; }
    .logo-container { width: 220px; }
    .logo-link { height: 200px; }
    .nav-links { gap: 20px; }
    
    .page-title-overlay { font-size: 75px; }

    .contact-wrapper { gap: 60px; }
    
    /* En laptops pequeñas SÍ mostramos la abogada, pero con menos margen */
    .lawyer-png { margin-right: 50px; } 
    
    .contact-form-box { max-width: 450px; }
    
    .footer-top { grid-template-columns: 1fr 1fr 1.2fr; gap: 20px; }
    .footer-logo { height: 240px; left: 50%; top: 60%; }
    .footer-phone { margin-left: 0; text-align: center; width: 100%; }
}



/* --- 2. LAPTOPS ESCALA 125% Y POCA ALTURA (Hasta 1440px o < 850px alto) --- */
@media screen and (max-width: 1440px), screen and (max-height: 850px) {
    .titulo-elegante-nosotros { font-size: 4.5rem; margin-top: -150px; }
    .nosotros-container { padding-top: 60px; }
    
    .logo-nosotros-seccion { max-width: 600px; top: -10px; }
    .titulo-ardiles { margin-top: 100px; }

    .footer-logo { height: 140px; }
    .footer-phone { font-size: 20px; }
}

/* --- 1. LAPTOPS Y PANTALLAS GRANDES (1025px a 1600px) --- */
@media screen and (min-width: 1025px) and (max-width: 1600px) {
    .nosotros-layout { gap: 150px; }
    .nosotros-col-izq { margin-left: -100px; }
    
    .logo-nosotros-seccion { 
        max-width: 700px; 
        left: -80px; 
        pointer-events: none; 
    }
    .footer-top { grid-template-columns: 1fr 1fr 1.2fr; gap: 20px; }
    .footer-logo { 
        height: 260px; 
        left: 50%; 
        top: 60%; 
        /* SOLUCIÓN: Evita que la imagen del logo bloquee los clicks de los enlaces en laptops */
        pointer-events: none; 
    }
    .footer-phone { margin-left: 0; font-size: 22px; text-align: center; width: 100%; }
    
    /* Aseguramos que los links estén por encima y reciban el click */
    .footer-links a, .social-icon {
        position: relative;
        z-index: 60;
    }
}