/* ==========================================================================
   1. RESET PURISTA (The "Old School" Foundation)
   ========================================================================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* Forzamos el modelo de caja para evitar desbordamientos con padding/border */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* HTML5 display-role reset para navegadores viejos */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ==========================================================================
   2. DEFINICIÓN DE VARIABLES VISUALES (Tipografía y Colores)
   ========================================================================== */
body {
    line-height: 1.6;
    background-color: #FFFFFF;
    color: #000000;
    font-family: 'Roboto', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Jerarquía de Títulos - Basado en Montserrat */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #000000;
    display: block;
    clear: both;
}

h1 { font-size: 56px; line-height: 1.1; margin-bottom: 25px; letter-spacing: -1px; }
h2 { font-size: 42px; line-height: 1.2; margin-bottom: 20px; }
h3 { font-size: 32px; line-height: 1.3; margin-bottom: 15px; }
h4 { font-size: 24px; margin-bottom: 10px; }

/* Cuerpo de texto */
p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333333;
}

strong { font-weight: bold; }

/* Enlaces globales */
a {
    color: #0052FF; /* Tu color de acento */
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   3. CLASES DE ESTRUCTURA Y CONTENEDORES (Layout Clásico)
   ========================================================================== */

/* El "Corazón" de la web: El Container */
.container {
    width: 1140px; /* Tamaño estándar para pantallas de escritorio */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    display: block;
}

/* Helper para limpiar los Floats (Imprescindible sin Flexbox) */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Columnas genéricas por si necesitamos maquetar dentro de secciones */
.col-1-2 { width: 50%; float: left; }
.col-1-3 { width: 33.33%; float: left; }
.col-2-3 { width: 66.66%; float: left; }

/* Imágenes responsivas dentro de sus cajas */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Espaciadores de sección */
.section {
    padding-top: 100px;
    padding-bottom: 100px;
    display: block;
    width: 100%;
    clear: both;
}


/* ==========================================================================
   HEADER Y NAVEGACIÓN (PURISTA)
   ========================================================================== */

header {
    width: 100%;
    background-color: #FFFFFF;
    border-bottom: 2px solid #000000; /* Línea de autoridad negra */
    position: relative;
    z-index: 1000;
}

.logo {
    float: left;
    padding: 15px 0;
}

.logo img {
    height: 60px; /* Tamaño consistente */
    width: auto;
}

/* MENÚ ESCRITORIO */
.nav-links {
    float: right;
    margin-top: 35px;
}

.nav-links > li {
    display: inline-block;
    margin-left: 30px;
    position: relative;
}

.nav-links li a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; /* Peso imponente */
    font-size: 14px;
    color: #000000;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: #0052FF; /* Tu azul de acento */
}

/* BOTÓN CONTACTO (CTA) */
.nav-links li a.btn-cta {
    border: 2px solid #000000;
    padding: 8px 20px;
    transition: all 0.3s;
}

.nav-links li a.btn-cta:hover {
    background-color: #000000;
    color: #FFFFFF;
}

/* ==========================================================================
   DIBUJO DE HAMBURGUESA (3 SPANS)
   ========================================================================== */

.hamburguesa {
    display: none; /* Oculto en desktop */
    width: 30px;
    height: 20px;
    float: right;
    margin-top: 35px;
    cursor: pointer;
    position: relative;
}

.hamburguesa span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #000000; /* Negro puro como tu logo */
    margin-bottom: 5px;
    transition: 0.3s;
}

.hamburguesa span:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   SUBMENÚ (DROPDOWN)
   ========================================================================== */

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background-color: #000000; /* Fondo negro elegante */
    padding: 15px 0;
}

.submenu li {
    display: block;
    width: 100%;
}

.submenu li a {
    color: #FFFFFF;
    padding: 12px 25px;
    display: block;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
}

.submenu li a:hover {
    background-color: #333333;
    color: #0052FF;
}

.dropdown:hover .submenu {
    display: block;
}

/* ==========================================================================
   RESPONSIVE (MODELO DE FLUJO)
   ========================================================================== */

/* ==========================================================================
   ESTILOS DE NAVEGACIÓN MÓVIL (CORREGIDOS)
   ========================================================================== */

/* Prevenir scroll cuando el menú está abierto */
body.no-scroll {
    overflow: hidden;
}

@media screen and (max-width: 992px) {
    
    .container { width: 95%; }

    .hamburguesa {
        display: block;
        float: right;
        position: relative;
        z-index: 10001;
        margin-top: 30px;
    }

    /* CORRECCIÓN AQUÍ: Añadimos padding: 0 y margin: 0 */
    .nav-links {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #FFFFFF;
        padding-top: 120px;
        padding-left: 0;   /* CRUCIAL: Quita el espacio de la izquierda */
        margin: 0;         /* CRUCIAL: Quita márgenes residuales */
        list-style: none;  /* Quita los puntos de la lista */
        z-index: 10000;
        
        opacity: 0;
        visibility: hidden;
        transform: scale(0.8);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    .nav-links li {
        display: block;
        width: 100%;       /* Ocupa todo el ancho */
        text-align: center;
        border-bottom: 1px solid #F4F4F4;
        margin: 0;         /* Asegura que no haya margen lateral */
    }

    .nav-links li a {
        display: block;
        padding: 20px 0;   /* Padding arriba/abajo, 0 a los lados para centrar bien */
        font-size: 22px;
        color: #000000;
        text-decoration: none;
        width: 100%;
    }

    /* Estilo específico para el botón de contacto (el que tiene borde en tu imagen) */
    /* Ajusta '.contacto' por la clase real que tenga tu botón */
    .nav-links li:last-child a {
        border: 2px solid #000; /* Crea el recuadro que se ve en la imagen */
        width: 80%;             /* No llega al borde total para que respire */
        margin: 20px auto;      /* Lo centra horizontalmente */
    }

    .submenu {
        position: static;
        width: 100%;
        background-color: #F9F9F9;
        border: none;
        box-shadow: none;
        display: none;
        padding: 0;            /* Resetear también el padding del submenú */
    }

    /* Animación de la hamburguesa */
    .hamburguesa.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburguesa.open span:nth-child(2) { opacity: 0; }
    .hamburguesa.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
}


footer {
    background-color: #000000; /* Fondo oscuro para dar autoridad */
    color: #ffffff;
    padding: 80px 0 30px 0;
    font-family: 'Inter', sans-serif; /* O tu fuente principal */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr; /* Diseño asimétrico pro */
    gap: 40px;
    padding: 0 5%;
}

.footer-info p {
    color: #a0a0a0;
    line-height: 1.6;
    margin-top: 15px;
    font-size: 15px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    background: #1a1a1a;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    margin-top: 20px;
    border: 1px solid #333;
}

.status-badge .dot {
    height: 8px;
    width: 8px;
    background-color: #00ff88; /* Verde brillante de "disponible" */
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px #00ff88;
}

h5 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 12px;
}

footer ul li a, .social-links a {
    color: #a0a0a0;
    text-decoration: none;
    transition: 0.3s;
}

footer ul li a:hover, .social-links a:hover {
    color: #ffffff;
    padding-left: 5px; /* Efecto sutil al pasar el mouse */
}

.footer-cta {
    display: inline-block;
    background: #ffffff;
    color: #000000 !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 15px;
}

.footer-bottom {
    margin-top: 60px;
    border-top: 1px solid #1a1a1a;
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr; /* 2 columnas en tablets */
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr; /* 1 columna en móvil */
        text-align: center;
    }
    
    .status-badge {
        justify-content: center;
    }
    
    footer ul li a:hover {
        padding-left: 0;
    }
}


.top-bar {
    background-color: #f8f9fa; /* Un gris muy suave o negro si prefieres */
    border-bottom: 1px solid #eeeeee;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left a, .top-right a {
    color: #333;
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.top-left a:hover, .top-right a:hover {
    color: #007bff; /* Tu color de marca */
}

.top-right a {
    margin-right: 0;
    margin-left: 15px;
    font-weight: bold;
}

/* En móvil, ocultamos la top bar o la simplificamos para no quitar espacio */
@media screen and (max-width: 768px) {
    .top-bar {
        display: none; /* Opción A: Ocultar para dar prioridad al menú hamburguesa */
        /* Opción B: Podrías dejar solo el icono de WhatsApp si prefieres */
    }
}