/* Importar fuentes de Google Fonts si se usan */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@300;400;700&display=swap');

:root {
    --color-primary: #000000; /* Negro */
    --color-secondary: #FFFFFF; /* Blanco */
    --color-accent: #D4AF37; /* Dorado/Beige suave para acentos */
    --color-light-gray: #f8f8f8;
    --color-dark-gray: #333333;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--color-dark-gray);
    background-color: var(--color-secondary);
}

a {
    text-decoration: none;
    color: var(--color-primary);
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--color-primary);
    margin-bottom: 15px;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; text-align: center; margin-bottom: 40px;}
h3 { font-size: 1.6em; }

/* Header y Navegación */
header {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 80px; /* Ajusta el tamaño del logo */
    filter: invert(100%);  /* Si el logo es negro, lo invierte a blanco para el fondo oscuro */
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--color-secondary);
    font-weight: 400;
    padding: 5px 0;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
}

/* Hero Section */
.hero {
    background: url('../images/hero-background.jpg') no-repeat center center/cover; /* Imagen de fondo para el hero */
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-secondary);
    position: relative;
}

.hero::before { /* Capa oscura sobre la imagen de fondo */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    color: var(--color-secondary);
    font-size: 3.5em;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 12px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: var(--color-primary);
    color: var(--color-accent);
}

.primary-btn {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.primary-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-accent);
}

.whatsapp-btn {
    background-color: #25D366; /* Color de WhatsApp */
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.whatsapp-btn:hover {
    background-color: #1DA851;
    color: var(--color-secondary);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    filter: invert(100%);
}

/* General Content Sections */
.content-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.content-section:nth-child(even) { /* Color de fondo alterno para secciones */
    background-color: var(--color-light-gray);
}

.content-section p {
    margin-bottom: 20px;
    font-size: 1.1em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-image {
    max-width: 100%;
    height: auto;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    background-color: var(--color-secondary);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    color: var(--color-accent);
    margin-bottom: 15px;
    text-align: center;
}

.service-item ul {
    list-style: disc;
    padding-left: 20px;
}

.service-item ul li {
    margin-bottom: 8px;
    color: var(--color-dark-gray);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* Reservation Options */
.reservation-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.option-card {
    background-color: var(--color-secondary);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    width: 45%;
    min-width: 300px;
    text-align: center;
}

.option-card h3 {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.option-card p {
    font-size: 1em;
    margin-bottom: 30px;
}

.small-text {
    font-size: 0.85em;
    color: #666;
    margin-top: 15px;
}

/* Contact Section */
.contact-info {
    margin-top: 40px;
    font-size: 1.1em;
    line-height: 1.8;
}

.contact-info p {
    margin-bottom: 10px;
}

.mapa {
    margin-top: 50px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mapa iframe {
    border: none;
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9em;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
}

.social-links img {
    width: 30px;
    height: 30px;
    filter: invert(100%); /* Si los iconos son negros, los invierte a blanco */
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: scale(1.1);
}

.footer-content p {
    margin-bottom: 15px;
    color: #bbb;
}

.legal-links a {
    color: #aaa;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--color-accent);
}

/* Legal Popups (Aviso Legal, Política de Privacidad, Cookies) */
.legal-popup {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto; /* Para scroll si el contenido es largo */
}

.legal-popup.active {
    display: flex;
}

.popup-content {
    background-color: var(--color-secondary);
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: left;
}

.popup-content h3 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--color-primary);
}

.popup-content p {
    font-size: 0.95em;
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--color-dark-gray);
}

.popup-content ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.popup-content ul li {
    margin-bottom: 8px;
}

.close-popup {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.1em;
    padding: 10px 20px;
    border: 1px solid var(--color-accent);
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.close-popup:hover {
    background-color: var(--color-accent);
    color: var(--color-secondary);
}


/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0 10px 10px;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    h2 {
        font-size: 1.8em;
    }

    .content-section {
        padding: 50px 15px;
    }

    .services-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }

    .option-card {
        width: 100%;
    }

    .reservation-options {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 50px;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 5px 0;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1em;
    }
}