/* --- 1. VARIABLES Y RESET --- */
:root {
    --azul-obscuro: #002d5a;
    --azul-turquesa: #00a8cc;
    --blanco: #ffffff;
    --gris-claro: #f4f7f6;
    --gris-texto: #555;
    --shadow: 0 8px 32px 0 rgba(0, 45, 90, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--gris-texto);
    background-color: var(--blanco);
    scroll-behavior: smooth;
    padding-top: 90px; /* Espacio para el header fijo */
}

/* --- 2. HEADER Y NAVEGACIÓN --- */
header {
    background: var(--blanco);
    height: 90px;
    display: flex;
    justify-content: space-between; /* Empuja logo a izq y nav a der */
    align-items: center;
    padding: 0 5%;
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.logo img { height: 60px; }

nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 25px; }
nav ul li a {
    text-decoration: none;
    color: var(--azul-obscuro);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: 0.3s;
}

/* Contenedor de Logo + Texto */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none; /* Quita el subrayado del link */
    gap: 15px; /* Espacio entre imagen y letras */
}

.logo-container img {
    height: 60px;
    width: auto;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--azul-obscuro);
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul li a:hover { color: var(--azul-turquesa); }

/* --- 3. SECCIONES Y TÍTULOS --- */
section { padding: 80px 5%; }

.section-title {
    text-align: right;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--azul-obscuro);
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--azul-turquesa);
    margin: 10px auto;
}

.section-description {
    max-width: 700px;
    margin: 15px auto 0;
    font-size: 1rem;
    color: #888;
}

/* --- 4. GRID DE TARJETAS --- */
.grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: var(--blanco);
    border: 1px solid #eee;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s ease;
    cursor: pointer;
    text-align: center;
    padding-bottom: 20px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card h3 {
    margin: 15px 0 5px;
    color: var(--azul-obscuro);
    font-size: 1.2rem;
}

.price {
    font-weight: bold;
    color: var(--azul-turquesa);
    display: block;
    margin-top: 10px;
}

/* --- 5. IMÁGENES DE CORTE (DIVIDERS) --- */
.divider-img {
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
}

/* --- 6. ESTILOS DEL MODAL (TU CÓDIGO CON EFECTOS) --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--blanco);
    width: 90%;
    max-width: 850px;
    border-radius: 20px;
    position: relative;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: var(--azul-obscuro);
    cursor: pointer;
    z-index: 10;
}

.modal-body { display: flex; flex-wrap: wrap; }
.modal-img-container { flex: 1; min-width: 300px; }
.modal-img-container img { width: 100%; height: 100%; object-fit: cover; display: block; }

.modal-text {
    flex: 1;
    padding: 40px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-text h2 { font-family: 'Playfair Display', serif; color: var(--azul-obscuro); margin-bottom: 15px; }
.modal-text p { font-size: 0.95rem; color: #666; margin-bottom: 20px; line-height: 1.6; }

#modal-specs { list-style: none; padding: 0; margin-bottom: 25px; }
#modal-specs li {
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: var(--azul-obscuro);
}

.price-tag { font-size: 1.6rem; font-weight: bold; color: var(--azul-turquesa); margin-bottom: 20px; }

.btn-accion {
    background: var(--azul-obscuro);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}
.btn-accion:hover { background: var(--azul-turquesa); }

/* --- 7. RESPONSIVE Y MENÚ HAMBURGUESA --- */

/* Ocultar botón de hamburguesa en PC */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: var(--azul-obscuro);
    transition: 0.3s;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Mostrar en móviles */
        z-index: 1100;
    }

    nav {
    display: flex;
    align-items: center;
}
    .nav-list {
        display: none; /* Ocultar lista original */
        flex-direction: column;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        text-align: right;
    }

    .nav-list.active {
        display: flex; /* Se muestra al hacer clic */
    }

    .nav-list li {
        margin: 15px 0;
    }

    /* Animación de la hamburguesa a una "X" */
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .modal-body { flex-direction: column; }
    .modal-img-container { height: 250px; }
}

/* --- FOOTER ESTILOS --- */
.main-footer {
    background-color: var(--azul-obscuro);
    color: white;
    padding: 60px 5% 20px;
    font-size: 0.9rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--azul-turquesa);
}

.footer-column p {
    line-height: 1.8;
    color: #cbd5e0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e0;
}

.footer-column ul li i {
    color: var(--azul-turquesa);
    width: 20px;
}

.footer-column a {
    color: #cbd5e0;
    text-decoration: none;
    transition: 0.3s;
}

.footer-column a:hover {
    color: var(--azul-turquesa);
}

/* Iconos Redes Sociales */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--azul-turquesa);
    color: var(--azul-obscuro);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer-container {
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-column ul li {
        justify-content: center;
    }
}