* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --font-primary: "Cormorant Garamond", serif;
    --font-secondary: "Merriweather Sans", sans-serif;
    
    --text-large: 2rem;
    --text-medium: 1.5rem;
    --text-bm: 1.25rem;
    --text-base: 1rem;
    --text-sm: 0.875rem; 
    --text-xs: 0.75rem;
    
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;

    --light-gray: #ececec;
    --medium-gray: #808080;
    --dark-gray: #151515;
    --beige: #e5e0d0;
}

a, ul, h1 {
    text-decoration: none;
    list-style: none;
}

header {
    background-color: rgba(10, 10, 10, 0.9);
    transition: background-color 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); 
    border-bottom: 1.5px solid white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);

    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100px;
    transition: height 0.3s ease;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    gap: 2rem;
}

.container {
    width: 100%;
    height: 100px;
    background-color: black;
}

header img {
    width: 80px;
    height: auto;
    transition: width 0.3s ease;
}
header h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
header h1 a {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 300;
    white-space: nowrap;
    color: white;
}
header nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
header nav a, #menu nav a {
    color: white;
    transition: color 0.3s ease;
    font-family: var(--font-secondary);
    font-size: var(--text-xs);
    font-weight: var(--weight-regular);
    letter-spacing: 0.1rem;
    white-space: nowrap;
}
header nav a:hover, #menu nav a:hover {
    color: var(--beige);
    text-decoration: underline;
    text-decoration-style: wavy;
    text-underline-offset: 0.25rem;
}

/* MENÚ MÓVIL */
#menu-toggle { display: none; }
#menu { display: none; }
.menu-open { display: flex !important; justify-content: flex-end;}

#menu nav ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
}

.hero {
    width: 100%;
    height: 50vw;
    padding: 2rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); 
    display: flex;
    flex-direction: column;      /* Agregado para centrar contenido si lo pones */
    align-items: center;   /* Agregado */
    justify-content: center; /* Agregado */
    text-align: center;
    color: white;
}
.hero h1 {
    font-family: var(--font-primary);
    font-size: 5vw;
    font-weight: var(--weight-regular);
    z-index: 2;
}
.hero p {
    font-family: var(--font-secondary);
    font-size: 1vw;
    font-weight: var(--weight-light);
    margin-top: 1rem;
    z-index: 2;
}
.hero-btn {
    padding: 1rem 2rem;
    color: var(--beige);
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    font-weight: var(--weight-light);
    letter-spacing: 0.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    display: inline-block;
}
.hero-btn:hover {
    color: white;
}

/* Capa oscura encima de la foto */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(21, 21, 21, 0.7), rgba(64, 64, 64, 0.4));
    z-index: 1;
}

/* Títulos grandes (Antes .highlight h2) */
.section-title {
    font-family: var(--font-primary);
    font-size: 4rem; /* Reducido un poco para seguridad */
    font-weight: var(--weight-semibold);
    margin-bottom: 1rem;
}

.section-title-2 {
    font-family: var(--font-primary);
    font-size: 3rem; /* Reducido un poco para seguridad */
    font-weight: var(--weight-semibold);
    margin-bottom: 1rem;
}

/* Estilo de cuadrícula (Antes .highlight) */
.grid-section {
    width: 100%;
    display: grid;
    align-items: center;
    justify-content: space-between;
    grid-template-columns: 1fr; /* Una columna en tablet */
    gap: 20vh; /* Espacio general */
    padding: 20vh 20%; 
}

.grid-text p {
    font-family: var(--font-primary);
    font-size: var(--text-large);
    font-weight: var(--weight-regular);
    font-style: italic;
}

/* Imágenes decorativas en secciones */
.section-image {
    width: 100%;
    height: 40vw; /* Altura controlada */
    object-fit: cover; /* La imagen no se deforma */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Tarjetas de Contacto / Login / Info */
.info-card {
    background-color: var(--dark-gray);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); 
    padding: 10vh 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    color: var(--beige);
    font-family: var(--font-primary);
    font-size: var(--text-medium);
    font-weight: var(--weight-regular);
    font-style: italic;
}

/* Botones Generales */
.btn-primary {
    padding: 1rem 2rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    color: var(--dark-gray);
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    letter-spacing: 0.1rem;
    border: 1px solid var(--dark-gray);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}
.btn-primary:hover {
    background-color: var(--dark-gray);
    color: var(--beige);
}

.form-box {
    background-color: white;
    padding: 20vh 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); 
}
.inputs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
}
.form-group {
    width: 100%;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea {
    padding: 1rem;
    background-color: var(--light-gray);
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    font-weight: var(--weight-light);
    border: 0.5px solid var(--medium-gray);
    width: 100%;
}
.message-form {
    resize: vertical;
    min-height: 100px;
    max-height: 300px;
}


footer {
    background-color: var(--dark-gray);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.footer-nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap; /* Permite que caigan si no caben */
    padding: 5vh 0; 
    gap: 2rem;
}
.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-nav a {
    color: var(--beige);
    font-family: "Merriweather Sans", sans-serif;
    font-size: var(--text-xs);
    transition: color 0.3s ease;
}
.footer-nav a:hover { color: white; }
.slogan {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 2rem;
    border: 1px solid var(--beige);
    color: var(--beige);
    font-family: var(--font-primary);
    font-weight: 600;
    height: 5rem;
}
.footer-bottom {
    background-color:  black;
    width: 100%;
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.footer-bottom p {
    color: var(--medium-gray);
    font-size: var(--text-xs);
}

/* --- ESTILOS ESPECÍFICOS PARA GALERÍA --- */

/* 1. Carrusel Full Width */
.galleryCarousel {
    width: 100%;
    height: 70vh; /* Altura impactante */
    position: relative;
}

.galleryCarousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la foto cubra todo sin deformarse */
    display: block;
}

/* Personalización de flechas y puntos de Swiper para que coincidan con tu tema */
.swiper-button-next, .swiper-button-prev {
    color: white !important;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.swiper-pagination-bullet-active {
    background-color: var(--beige) !important;
}

/* 2. Grilla de Galería 3x5 */
.gallery-grid {
    display: grid;
    /* Crea 3 columnas de igual tamaño */
    grid-template-columns: repeat(3, 1fr); 
    gap: 1rem; /* Espacio entre fotos */
    padding: 5rem 10%; /* Márgenes laterales para elegancia */
    background-color: white;
}

.gallery-item {
    width: 100%;
    height: 400px; /* Altura fija para que todas se vean uniformes */
    overflow: hidden; /* Para el efecto zoom */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease; /* Transición suave */
    cursor: pointer;
}

/* Efecto Hover: Zoom elegante */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- RESPONSIVE PARA GALERÍA --- */
/* Añade esto dentro o cerca de tus media queries existentes */

@media (max-width: 1080px) {
    header { height: 80px; }
    .container { height: 80px; }
    header nav ul { display: none; }

    .hero p, .hero-btn {
        display: none;
    }

    #menu-toggle { 
        display: flex !important; 
        cursor: pointer; 
        fill: white; 
    }
    
    #menu {
        background-color: rgba(10, 10, 10, 0.95);
        position: fixed;
        z-index: 1000;
        top: 78.5px; right: 0;
        width: 100%;
        padding: 2rem;
        border-bottom: 1px solid white;
    }

    .inputs-container {
        grid-template-columns: 1fr; /* Una columna en móvil */
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
        padding: 3rem 5%;
    }
    .galleryCarousel {
        height: 50vh;
    }
    .gallery-item {
        height: 300px;
    }
}

@media (max-width: 620px) {
    .section-title { font-size: 2.5rem; }

    .footer-nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-card, .form-container {
        padding: 2rem 5%;
    }

    .gallery-grid {
        grid-template-columns: 1fr; /* 1 columna en móvil */
        gap: 1.5rem;
    }
    .galleryCarousel {
        height: 40vh;
    }
}

@media (max-width: 620px) {
    .grid-section {
        padding: 5vw 5%; 
    }
}

/* Personalización de SweetAlert para que coincida con el sitio */
div:where(.swal2-container) h2:where(.swal2-title) {
    font-family: "Cormorant Garamond", serif !important;
    font-size: 2rem !important;
    color: var(--dark-gray) !important;
}

div:where(.swal2-container) div:where(.swal2-html-container) {
    font-family: "Merriweather Sans", sans-serif !important;
    font-size: 1rem !important;
}