/* 
* Estilos principales para Barsant Promociones - Ventanilla
* Versión optimizada - Eliminando duplicados
*/

:root {
    --primary-color: #3a3a3a;
    --secondary-color: #e0c88c;
    --light-bg: #f5f5f5;
    --dark-bg: #2a2a2a;
    --text-color: #333;
    --light-text: #fff;
    --border-radius: 4px;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--light-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

header.scrolled {
    background-color: #fff;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    justify-content: center;
    position: relative;
    
}

/* ================================
   REEMPLAZAR TODA LA SECCIÓN DEL LOGO EN styles.css
   Busca la regla ".logo" y reemplázala completamente por esto:
   ================================ */

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    margin-right: auto; /* Empuja el logo hacia la izquierda */
    margin-left: 0; /* Asegura que no tenga margen izquierdo */
}

.logo span {
    color: var(--secondary-color);
}

.logo:hover {
    text-decoration: none;
    color: var(--primary-color);
}

.logo:hover span {
    color: var(--secondary-color);
}

/* Ajustar la navegación para que tenga más espacio */
nav {
    margin-left: 60px; /* Aumenta la separación entre logo y navegación */
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 30px;
}

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

@media (max-width: 992px) {
    nav {
        margin-left: 40px;
    }
    
    nav ul li {
        margin-left: 25px;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 20px;
    }
    
    /* En móvil, el menú se oculta así que no necesitamos el margen */
    nav {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }
}
nav ul {
    display: flex;
    list-style: none;
    margin-right: 10px;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--secondary-color);
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}


/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../../assets/images/06_ALZ_COMPLETO_CULT_R.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--light-text);
    padding-top: 80px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-in-out;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-in-out;
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: var(--primary-color);
}

.section-title:after {
    content: "";
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Historia Section */
.historia {
    margin-top: 50px;
    padding: 40px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.historia-content {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
}

.historia-text {
    font-size: 1.05em;
    line-height: 1.8;
    text-align: justify;
    color: #666;
}

.historia-image {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.historia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.historia-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 35px;
    text-align: center;
}

.historia p {
    margin-bottom: 25px;
}

.historia p:last-child {
    margin-bottom: 0;
}
/* Features Section */
/* Features Section */
.features {
    padding: 80px 0;                 /* un poco menos de aire vertical */
    background-color: #fff;
}

/* Grid responsiva centrada */
.features-grid {
    display: grid;
    gap: 30px;
    justify-content: center;
}

/* Pantallas grandes: Primera fila 3 columnas, segunda fila 2 centradas */
@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(6, 1fr);  /* 6 columnas para mejor control */
        max-width: 1000px;
        margin: 0 auto;
    }
    
    /* Primera fila: 3 tarjetas ocupan 2 columnas cada una */
    .feature-card:nth-child(1) { grid-column: 1 / 3; }
    .feature-card:nth-child(2) { grid-column: 3 / 5; }
    .feature-card:nth-child(3) { grid-column: 5 / 7; }
    
    /* Segunda fila: 2 tarjetas centradas ocupan desde columna 2-4 y 4-6 */
    .feature-card:nth-child(4) { grid-column: 2 / 4; }
    .feature-card:nth-child(5) { grid-column: 4 / 6; }
}

/* Tablets: 2 columnas, última centrada */
@media (min-width: 768px) and (max-width: 1199px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        margin: 0 auto;
    }
    
    .feature-card:nth-child(5) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 350px;
    }
}

/* Móvil: 1 columna */
@media (max-width: 767px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ---------- Tarjetas ---------- */
.feature-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;

    /* mismas dimensiones para todas */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100%;                /* iguala la altura */
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}
.feature-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}
/* Properties */
/* .properties {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.filters select {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1em;
    min-width: 200px;
    background-color: white;
}

.filters select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.table-responsive {
    overflow-x: auto;
    margin-top: 2rem;
}

.properties-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9em;
    background-color: #fff;
}

.properties-table th,
.properties-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.properties-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    white-space: nowrap;
}

.properties-table tbody tr:hover {
    background-color: #f5f5f5;
} */

.properties {
    padding: 100px 0;
    background-color: var(--light-bg);
}
.filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.filters select {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1em;
    min-width: 200px;
    background-color: white;
}

.filters select:focus {
    outline: none;
    border-color: var(--secondary-color);
}
/* ===== CONTENEDOR DE SCROLL MEJORADO ===== */
.table-scroll-container {
    position: relative;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-top: 2rem;
}

.table-responsive {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) #f1f1f1;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling en iOS */
}

.table-responsive::-webkit-scrollbar {
    height: 10px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #d4bc80;
}

/* ===== INDICADOR VISUAL DE SCROLL ===== */
.scroll-indicator {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: rgba(224, 200, 140, 0.95);
    color: var(--primary-color);
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.scroll-indicator.show {
    opacity: 1;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { 
        transform: translateY(-50%) scale(1);
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    50% { 
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 4px 15px rgba(224, 200, 140, 0.4);
    }
}

/* ===== AYUDA VISUAL PARA MÓVIL ===== */



/* ===== TABLA MEJORADA ===== */
.properties-table {
    width: 100%;
    min-width: 900px; /* Ancho mínimo para mantener legibilidad */
    border-collapse: collapse;
    background-color: white;
    font-size: 0.9rem;
}

.properties-table th,
.properties-table td {
    padding: 16px 12px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
    position: relative;
}

.properties-table th {
    background: linear-gradient(135deg, var(--primary-color), #4a4a4a);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== COLUMNAS FIJAS (PRIMERA Y ÚLTIMA) ===== */
.properties-table th:first-child,
.properties-table td:first-child {
    position: sticky;
    left: 0;
    background: white;
    z-index: 3;
    box-shadow: 2px 0 6px rgba(0,0,0,0.1);
    font-weight: 700;
    color: var(--primary-color);
}

.properties-table th:first-child {
    background: linear-gradient(135deg, var(--primary-color), #4a4a4a);
    color: white;
    z-index: 6;
    box-shadow: 2px 0 6px rgba(0,0,0,0.15);
}

.properties-table th:last-child,
.properties-table td:last-child {
    position: sticky;
    right: 0;
    background: white;
    z-index: 3;
    box-shadow: -2px 0 6px rgba(0,0,0,0.1);
}

.properties-table th:last-child {
    background: linear-gradient(135deg, var(--primary-color), #4a4a4a);
    color: white;
    z-index: 6;
    box-shadow: -2px 0 6px rgba(0,0,0,0.15);
}

/* ===== EFECTOS HOVER ===== */
.properties-table tbody tr {
    transition: all 0.3s ease;
}

.properties-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
}

.properties-table tbody tr:hover td:first-child,
.properties-table tbody tr:hover td:last-child {
    background-color: #f8f9fa;
}

/* ===== ESTILOS ESPECÍFICOS MEJORADOS ===== */
.estado-disponible {
    color: #28a745;
    font-weight: 700;
    background: rgba(40, 167, 69, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.estado-reservado {
    color: #dc3545;
    font-weight: 700;
    background: rgba(220, 53, 69, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vivienda-link {
    background: linear-gradient(135deg, var(--secondary-color), #f0d49e);
    color: var(--primary-color);
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(224, 200, 140, 0.3);
}

.vivienda-link:hover {
    background: linear-gradient(135deg, var(--primary-color), #2a2a2a);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(58, 58, 58, 0.4);
}

.planos a {
    color: var(--secondary-color);
    font-size: 1.3em;
    margin: 0 6px;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 4px;
}

.planos a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
    background: rgba(224, 200, 140, 0.1);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablets grandes y desktop */
@media (min-width: 1025px) {
    .scroll-help {
        display: none;
    }
    
    .properties-table {
        min-width: 100%;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Tablets medianas */
@media (min-width: 769px) and (max-width: 1024px) {
    .scroll-help {
        display: block;
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .properties-table {
        min-width: 800px;
        font-size: 0.85rem;
    }
    
    .properties-table th,
    .properties-table td {
        padding: 12px 10px;
    }
    
    .vivienda-link {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
}

/* Móviles grandes y tablets pequeñas */
@media (max-width: 768px) {
    .scroll-help {
        display: block;
        font-size: 0.85rem;
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .properties-table {
        min-width: 700px;
        font-size: 0.8rem;
    }
    
    .properties-table th,
    .properties-table td {
        padding: 10px 8px;
    }
    
    .vivienda-link {
        padding: 7px 12px;
        font-size: 0.7rem;
        gap: 4px;
    }
    
    .planos a {
        font-size: 1.1em;
        margin: 0 4px;
    }
    
    .filters {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .filters select {
        width: 100%;
        max-width: 280px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .properties-table {
        min-width: 650px;
        font-size: 0.75rem;
    }
    
    .properties-table th,
    .properties-table td {
        padding: 8px 6px;
    }
    
    .scroll-indicator {
        font-size: 0.75rem;
        padding: 8px 12px;
        right: 10px;
    }
    
    .vivienda-link {
        padding: 6px 10px;
        font-size: 0.65rem;
    }
    
    .estado-disponible,
    .estado-reservado {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */
.properties-table th {
    user-select: none;
}

.table-responsive:focus-within {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Indicar que la tabla es scrollable */
.table-scroll-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to left, rgba(224, 200, 140, 0.1), transparent);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.table-scroll-container.scrollable::before {
    opacity: 1;
}

.plano-icon {
    color: var(--secondary-color);
    font-size: 1.2em;
    cursor: pointer;
    margin: 0 5px;
}

.plano-icon:hover {
    color: var(--primary-color);
}

.price-note {
    font-size: 0.8em;
    color: #666;
    margin-top: 1rem;
    font-style: italic;
}

/*  Galería Mejorada 
.gallery {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.gallery-grid {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-main-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.6s ease-out;
}

/* Imagen principal */
/* .gallery-main-image {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    background: #f5f5f5;
}

.gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-main-image:hover img {
    transform: scale(1.02);
} */

/* Título de la imagen */
/* .gallery-image-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-main-image:hover .gallery-image-title {
    transform: translateY(0);
} */

/* Botones de navegación en imagen principal */
/* .gallery-nav-buttons {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-main-image:hover .gallery-nav-buttons {
    opacity: 1;
    pointer-events: auto;
}

.gallery-nav-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.gallery-nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.gallery-nav-btn:active {
    transform: scale(0.95);
}
 */
/* Botón de pantalla completa */
/* .gallery-fullscreen-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.gallery-main-image:hover .gallery-fullscreen-btn {
    opacity: 1;
}

.gallery-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Thumbnails */
/* .gallery-thumbnails {
    display: flex;
    gap: 8px;
    padding: 15px 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) transparent;
    justify-content: flex-start;
    position: relative;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: rgba(224, 200, 140, 0.1);
    border-radius: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.gallery-thumbnail {
    flex: 0 0 auto;
    width: 100px;
    height: 75px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    animation: slideInLeft 0.4s ease-out;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumbnail:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: rgba(224, 200, 140, 0.5);
}

.gallery-thumbnail:hover img {
    transform: scale(1.1);
}

.gallery-thumbnail.active {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 1px var(--secondary-color), 0 5px 15px rgba(224, 200, 140, 0.3);
    transform: translateY(-2px);
}

.gallery-thumbnail.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(224, 200, 140, 0.2);
    pointer-events: none;
} */

/* Animación escalonada para thumbnails */
/* .gallery-thumbnail:nth-child(1) { animation-delay: 0.05s; }
.gallery-thumbnail:nth-child( 2) { animation-delay: 0.1s; }
.gallery-thumbnail:nth-child(3) { animation-delay: 0.15s; }
.gallery-thumbnail:nth-child(4) { animation-delay: 0.2s; }
.gallery-thumbnail:nth-child(5) { animation-delay: 0.25s; }
.gallery-thumbnail:nth-child(6) { animation-delay: 0.3s; }
.gallery-thumbnail:nth-child(7) { animation-delay: 0.35s; }
.gallery-thumbnail:nth-child(8) { animation-delay: 0.4s; }
.gallery-thumbnail:nth-child(9) { animation-delay: 0.45s; }
.gallery-thumbnail:nth-child(10) { animation-delay: 0.5s; }
 */
/* Indicador de posición en thumbnails */
/* .gallery-thumbnails::before {
    content: attr(data-current) " / " attr(data-total);
    position: absolute;
    top: -10px;
    right: 0;
    font-size: 0.8rem;
    color: var(--secondary-color);
    background: rgba(224, 200, 140, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}
 */
/* Modal Mejorado */
/* .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 800px;
    width: 90%;
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.modal-gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-gallery-container img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: var(--border-radius);
    transition: opacity 0.3s ease;
}

.modal-nav-buttons {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
}

.modal-nav-btn {
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.modal-nav-btn:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: scale(1.1);
}

.modal-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
} */ 

/* Map Section */
.map-section {
    padding: 150px 0 100px;
    background-color: #fff;
    position: relative;
    z-index: 1;
}

.map-section .section-title {
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    padding-top: 0;
}

.map-section .description {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: var(--text-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

#map-container {
    height: 400px;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

/* Documentation */
.documentation {
    padding: 100px 0;
    background-color: #fff;
}

.documentation .section-subtitle {
    margin-bottom: 3rem;
}

.documentation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.doc-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.doc-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.doc-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.doc-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.doc-description {
    margin-bottom: 20px;
    color: #666;
}

.doc-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}
/* Estilos para mensajes de documentación */
.doc-unavailable, .coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.doc-unavailable i, .coming-soon i {
    font-size: 4rem;
    color: #6c757d;
}

.coming-soon i {
    color: #e0c88c;
}

.doc-unavailable h4, .coming-soon h4 {
    color: #3a3a3a;
    margin: 0;
    font-size: 1.3rem;
    text-align: center;
}

.doc-unavailable p, .coming-soon p {
    color: #666;
    margin: 0;
    line-height: 1.6;
    text-align: center;
}

.doc-unavailable .highlight {
    color: #e0c88c;
    font-weight: 600;
}
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.documentation-info {
    margin-top: 50px;
}

.info-box {
    background-color: var(--light-bg);
    padding: 20px;
    border-left: 5px solid var(--secondary-color);
    border-radius: var(--border-radius);
}

.info-box h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.doc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 1200;
    align-items: center;
    justify-content: center;
}

.doc-modal-content {
    background-color: #fff;
    border-radius: var(--border-radius);
    max-width: 900px;
    width: 90%;
    padding: 20px;
    box-shadow: var(--shadow);
    position: relative;
}

.doc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.doc-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

.pdf-viewer iframe {
    width: 100%;
    height: 600px;
    border: none;
}

/* Contact */
.contact {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.contact-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.contact-detail {
    margin-bottom: 25px;
}

.contact-detail h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-form {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1em;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}
/* Estilos para el formulario de contacto mejorado */

/* Notificaciones del formulario */
.form-notification {
    margin: 20px 0;
}

.notification {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: var(--border-radius);
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.notification.sending {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.notification.success {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.notification.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.notification i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Estados de error en campos */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.field-error::before {
    content: "⚠";
    font-size: 0.8rem;
}

/* Animaciones */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados del botón de envío */
.contact-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.contact-form button[type="submit"] {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
}

/* Mejoras generales del formulario */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(224, 200, 140, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Responsive */
@media (max-width: 768px) {
    .notification {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .contact-form button[type="submit"] {
        width: 100%;
        min-height: 48px;
    }
}
/* ========================================
   BOTÓN PARA CAMBIAR ESTADO DE VIVIENDA
   ======================================== */

.btn-cambiar-estado {
padding: 8px 16px;
border: none;
border-radius: 20px;
cursor: pointer;
font-weight: 500;
font-size: 14px;
transition: all 0.3s ease;
font-family: 'Montserrat', sans-serif;
min-width: 100px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-cambiar-estado:hover {
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-cambiar-estado:active {
transform: scale(0.98);
}

.btn-cambiar-estado:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
}

/* Estilos según el estado */
.btn-cambiar-estado.estado-disponible {
background-color: #d4edda;
color: #155724;
border: 2px solid #c3e6cb;
}

.btn-cambiar-estado.estado-disponible:hover {
background-color: #c3e6cb;
border-color: #b1dfbb;
}

.btn-cambiar-estado.estado-reservado {
background-color: #f8d7da;
color: #721c24;
border: 2px solid #f5c6cb;
}

.btn-cambiar-estado.estado-reservado:hover {
background-color: #f5c6cb;
border-color: #f1b0b7;
}

/* Icono de carga cuando se está actualizando */
.btn-cambiar-estado .fa-spinner {
animation: spin 1s linear infinite;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
.btn-cambiar-estado {
    padding: 6px 12px;
    font-size: 12px;
    min-width: 80px;
}
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
}

.footer-column h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4:after {
    content: "";
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Estilos para los enlaces de viviendas */
.vivienda-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.vivienda-link:hover {
    color: var(--secondary-color);
}

tr.vivienda-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

tr.vivienda-row:hover {
    background-color: #f0f0f0;
}

/* Estilos para los estados de las viviendas */
.estado-disponible {
    color: #28a745;
    font-weight: 500;
}

.estado-reservado {
    color: #dc3545;
    font-weight: 500;
}

/* Animaciones adicionales */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Efectos adicionales para mejor experiencia 
.gallery-main-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(224, 200, 140, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-main-image:hover::before {
    opacity: 1;
}
    */

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 992px) {
    .features-grid, 
    .properties-grid, 
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content, 
    .contact-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .about-text, 
    .contact-info {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .gallery-main-image {
        height: 450px;
    }
    
    .gallery-thumbnail {
        width: 90px;
        height: 68px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .features-grid, 
    .properties-grid, 
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-column {
        margin-bottom: 30px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .historia-content {
        flex-direction: column-reverse;
    }

    .historia-image {
        margin-bottom: 30px;
        max-width: 100%;
        position: static;
        height: 300px;
    }

    /* Galería responsive 
    .gallery-main-image {
        height: 350px;
    }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-nav-buttons {
        padding: 0 10px;
    }
    
    .gallery-fullscreen-btn {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
    }
    
    .gallery-thumbnail {
        width: 80px;
        height: 60px;
    }
    
    .gallery-thumbnails {
        gap: 6px;
    }
    
    .modal-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .modal-nav-buttons {
        padding: 0 15px;
    }
    
    .gallery-image-title {
        font-size: 1rem;
        padding: 25px 15px 15px;
    }

    .contact-wrapper {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-main-image {
        height: 280px;
    }
    
    .gallery-thumbnail {
        width: 70px;
        height: 53px;
    }
    
    .gallery-thumbnails {
        gap: 4px;
        padding: 10px 0;
    }
    
    .gallery-nav-buttons {
        opacity: 1;
        pointer-events: auto;
    }
    
    .gallery-fullscreen-btn {
        opacity: 1;
    }
    
    .modal-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .gallery-image-title {
        font-size: 0.9rem;
        padding: 20px 10px 10px;
    }

    .contact-wrapper {
        gap: 15px;
    }

    .vivienda-content {
        padding: 30px 0;
    }
        */
}

/* ================================
   CSS MÍNIMO PARA MENÚ MÓVIL FUNCIONAL
   ================================ */

/* Botón hamburguesa - mostrar solo en móvil */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    z-index: 1001;
    position: absolute;
    right: 20px;
}

.mobile-menu-toggle:hover {
    background-color: rgba(224, 200, 140, 0.1);
    border-radius: 4px;
}

/* Icono hamburguesa */
.hamburger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Animación del icono activo */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Overlay */
.mobile-menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 998 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}

.mobile-menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Panel del menú */
.mobile-menu-panel {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 320px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    background: white !important;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2) !important;
    z-index: 999 !important;
    transition: right 0.3s ease !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.mobile-menu-panel.active {
    right: 0 !important;
}

/* Header del menú */
.mobile-menu-header {
    padding: 22px !important;
    background: linear-gradient(45deg, var(--secondary-color), #ebe9e5) !important;
    position: relative !important;
    min-height: 40x !important;
    display: flex !important;
    align-items: center !important;
    position: center !important;
}

.mobile-menu-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mobile-menu-close:hover {
    background: #2a2a2a !important;
}

.mobile-menu-logo {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.mobile-menu-logo img {
    height: 200px !important;
    width: auto !important;
}

.mobile-menu-logo span {
    font-size: 18px !important;
    font-weight: bold !important;
    color: var(--primary-color) !important;
}

/* Navegación */
.mobile-menu-nav {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 8px 0 !important;
}

.mobile-menu-nav ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mobile-menu-nav li {
    border-bottom: 1px solid #f0f0f0 !important;
    margin: 0 !important;
}

.mobile-menu-nav li:last-child {
    border-bottom: none !important;
}

.mobile-menu-nav a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px 20px !important;
    color: var(--text-color, #333) !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border-left: 4px solid transparent !important;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    background: rgba(224, 200, 140, 0.1) !important;
    color: var(--primary-color, #3a3a3a) !important;
    transform: translateX(5px) !important;
    border-left-color: var(--secondary-color, #e0c88c) !important;
}

/* Iconos de navegación */
.nav-icon {
    font-size: 18px !important;
    color: var(--secondary-color, #e0c88c) !important;
    width: 20px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

/* Información del menú */
.mobile-menu-info {
    padding: 20px !important;
    background: #f8f9fa !important;
    border-top: 1px solid #e0e0e0 !important;
}

.mobile-menu-info h4 {
    color: var(--primary-color) !important;
    font-size: 16px !important;
    margin-bottom: 10px !important;
    font-weight: 600 !important;
}

.mobile-menu-info p {
    color: #666 !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
}

.mobile-menu-info a {
    color: var(--secondary-color) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

/* Evitar scroll cuando está abierto */
body.menu-open {
    overflow: hidden !important;
}

/* ================================
   RESPONSIVE - ACTIVAR EN MÓVIL
   ================================ */

@media (max-width: 768px) {
    /* Mostrar botón hamburguesa */
    .mobile-menu-toggle {
        display: block !important;
    }
    
    /* Ocultar navegación desktop */
    nav ul {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .mobile-menu-panel {
        width: 100vw !important;
        max-width: none !important;
    }
    
    .mobile-menu-nav a {
        padding: 18px 20px !important;
        font-size: 17px !important;
    }
}

/* ================================
   FALLBACK - ESTILOS CRÍTICOS CON VALORES ABSOLUTOS
   Si los CSS variables no funcionan
   ================================ */



.mobile-menu-close {
    background: #3a3a3a !important;
}

.mobile-menu-nav a {
    color: #333 !important;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    background: rgba(224, 200, 140, 0.1) !important;
    color: #3a3a3a !important;
    border-left-color: #e0c88c !important;
}


.mobile-menu-info h4 {
    color: #3a3a3a !important;
}

.mobile-menu-info a {
    color: #e0c88c !important;
}

.nav-icon {
    color: #e0c88c !important;
}

/* ================================
   DEBUG - FORZAR VISIBILIDAD
   ================================ */

.mobile-menu-nav {
    background: rgba(255, 255, 255, 0.02) !important;
    min-height: 200px !important;
}

.mobile-menu-nav ul {
    background: rgba(0, 0, 0, 0.01) !important;
}

.mobile-menu-nav li {
    background: rgba(255, 255, 255, 0.01) !important;
    min-height: 50px !important;
}

.mobile-menu-nav a {
    background: rgba(248, 249, 250, 0.8) !important;
    min-height: 48px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* FORZAR VISIBILIDAD DEL MENÚ MÓVIL */
.mobile-menu-nav {
    flex: 1 !important;
    background: white !important;
    padding: 20px 0 !important;
    min-height: 300px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-menu-nav ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.mobile-menu-nav li {
    display: block !important;
    margin: 0 !important;
}

.mobile-nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px 20px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #e0e0e0 !important;
    min-height: 50px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-nav-link:hover {
    background: #e0c88c !important;
    transform: translateX(5px) !important;
}

.nav-icon {
    font-size: 18px !important;
    color: #e0c88c !important;
    width: 20px !important;
    text-align: center !important;
}

/* ================================
   RESPONSIVE OPTIMIZADO PARA TABLETS
   Añadir al final de styles.css
   ================================ */

/* ================================
   BREAKPOINTS DETALLADOS
   ================================ */

/* Móviles pequeños: hasta 480px */
@media (max-width: 480px) {
    .mobile-menu-toggle {
        display: block !important;
    }
    
    nav ul {
        display: none !important;
    }
    
    .mobile-menu-panel {
        width: 100vw !important;
        max-width: none !important;
    }
    
    .mobile-menu-nav a {
        padding: 18px 20px !important;
        font-size: 17px !important;
    }
    
    .header-content {
        padding: 10px 0 !important;
    }
    
    .logo img {
        height: 50px !important;
        position: center !important;
    }
}

/* Móviles grandes y tablets pequeñas: 481px - 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
    }
    
    nav ul {
        display: none !important;
    }
    
    .mobile-menu-panel {
        width: 400px !important;
        max-width: 85vw !important;
    }
    
    .mobile-menu-nav a {
        padding: 20px 24px !important;
        font-size: 18px !important;
    }
    
    .mobile-menu-header {
        padding: 24px !important;
        min-height: 90px !important;
    }
    
    .mobile-menu-info {
        padding: 24px !important;
    }
    
    .logo img {
        height: 60px !important;
        position: center !important;
    }
}

/* Tablets medianas: 769px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Opción A: Mantener navegación desktop (por defecto) */
    .mobile-menu-toggle {
        display: none !important;
    }
    
    nav ul {
        display: flex !important;
    }
    
    /* Ajustar espaciado para tablets */
    nav ul li {
        margin-left: 20px;
    }
    
    nav ul li a {
        font-size: 15px;
        padding: 8px 12px;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }
    
    nav ul li a:hover {
        background-color: rgba(224, 200, 140, 0.1);
    }
    
    .logo img {
        height: 70px !important;
    }
    
    .header-content {
        padding: 16px 0 !important;
    }
}

/* Tablets grandes y desktop: 1025px+ */
@media (min-width: 1025px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    nav ul {
        display: flex !important;
    }
    
    .mobile-menu-overlay,
    .mobile-menu-panel {
        display: none !important;
    }
    
    body.menu-open {
        overflow: auto !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
    }
    
    .logo img {
        height: 80px !important;
        position: center !important;
    }
}

/* ================================
   DETECCIÓN DE DISPOSITIVOS TÁCTILES
   ================================ */

/* Dispositivos táctiles (tablets y móviles) */
@media (hover: none) and (pointer: coarse) {
    /* Mejorar áreas táctiles */
    .mobile-menu-nav a {
        min-height: 54px !important;
        padding: 20px 24px !important;
    }
    
    .mobile-menu-close {
        width: 44px !important;
        height: 44px !important;
        font-size: 20px !important;
    }
    
    .mobile-menu-toggle {
        width: 44px !important;
        height: 44px !important;
        padding: 10px !important;
    }
    
    /* Eliminar efectos hover en dispositivos táctiles */
    .mobile-menu-nav a:hover {
        transform: none !important;
    }
}

/* ================================
   ORIENTACIÓN ESPECÍFICA PARA TABLETS
   ================================ */

/* iPad en orientación portrait */
@media only screen 
    and (min-device-width: 768px) 
    and (max-device-width: 1024px) 
    and (orientation: portrait) {
    
    .mobile-menu-toggle {
        display: block !important;
    }
    
    nav ul {
        display: none !important;
    }
    
    .mobile-menu-panel {
        width: 420px !important;
    }
    
    .container {
        max-width: 90% !important;
    }
}

/* iPad en orientación landscape */
@media only screen 
    and (min-device-width: 768px) 
    and (max-device-width: 1024px) 
    and (orientation: landscape) {
    
    /* Mantener menú desktop en landscape para mejor uso del espacio */
    .mobile-menu-toggle {
        display: none !important;
    }
    
    nav ul {
        display: flex !important;
    }
    
    nav ul li {
        margin-left: 18px;
    }
    
    nav ul li a {
        font-size: 14px;
        padding: 6px 10px;
    }
}

/* ================================
   MEJORAS ESPECÍFICAS PARA TABLETS
   ================================ */

@media (min-width: 768px) and (max-width: 1024px) {
    /* Aumentar área de click en tablets */
    .hamburger-icon {
        width: 28px !important;
        height: 22px !important;
    }
    
    .hamburger-line {
        height: 3px !important;
    }
    
    /* Mejor legibilidad en tablets */
    .mobile-menu-logo span {
        font-size: 20px !important;
    }
    
    /* Espaciado cómodo para dedos */
    .mobile-menu-nav li {
        margin-bottom: 2px;
    }
    
    /* Información más espaciosa */
    .mobile-menu-info h4 {
        font-size: 18px !important;
        margin-bottom: 14px !important;
    }
    
    .mobile-menu-info p {
        font-size: 15px !important;
        line-height: 1.6 !important;
        margin-bottom: 10px !important;
    }
}

/* ================================
   PREVENCIÓN DE ZOOM EN TABLETS
   ================================ */

@media (max-width: 1024px) {
    /* Prevenir zoom accidental en inputs */
    input, select, textarea {
        font-size: 16px !important;
    }
    
    /* Mejorar scroll en menú móvil */
    .mobile-menu-panel {
        -webkit-overflow-scrolling: touch !important;
    }
}

/* ================================
   ESPECÍFICO PARA IPAD PRO
   ================================ */

/* iPad Pro 11" */
@media only screen 
    and (min-device-width: 834px) 
    and (max-device-width: 834px) 
    and (-webkit-device-pixel-ratio: 2) {
    
    .mobile-menu-panel {
        width: 450px !important;
    }
    
    .mobile-menu-nav a {
        padding: 24px 28px !important;
        font-size: 19px !important;
    }
}

/* iPad Pro 12.9" */
@media only screen 
    and (min-device-width: 1024px) 
    and (max-device-width: 1024px) 
    and (-webkit-device-pixel-ratio: 2) {
    
    /* En iPad Pro grande, usar menú desktop por defecto */
    .mobile-menu-toggle {
        display: none !important;
    }
    
    nav ul {
        display: flex !important;
    }
}
