/* Importa las fuentes desde Google Fonts. Pon esto siempre al principio. */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Playfair+Display:wght@700&display=swap');

/* ===============================================
   VARS - Variables de CSS para Varenna Catering
   =============================================== */
:root {
    /* Paleta de Colores - ¡MODIFICADA! */
    --color-primary: #2C3E50;      /* Gris Carbón Sofisticado */
    --color-secondary: #B98D4A;     /* Dorado-Ocre Premium */
    --color-title: #2C3E50;          /* Mismo que el primario para consistencia */
    --color-text: #4A5568;          /* Gris Pizarra (Se mantiene por legibilidad) */
    --color-background: #FDFDFD;    /* Blanco Roto Cálido */
    --color-white: #FFFFFF;
    --color-border: #E2E8F0;        /* Se mantiene para separadores sutiles */

    /* Tipografía - ¡MODIFICADA! */
    --font-headings: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    /* Otros */
    --border-radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ===============================================
   RESET Y ESTILOS GLOBALES
   =============================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.7;
    margin: 0;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===============================================
   TIPOGRAFÍA
   =============================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--color-title);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.8rem; margin-bottom: 1rem; }
h2 { font-size: 2.2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}


/* ===============================================
   BOTONES
   =============================================== */
.button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-family: var(--font-headings);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Botón Principal (Dorado) */
.button-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.button-primary:hover {
    background-color: #A07936; /* Un dorado un poco más oscuro */
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Botón Secundario (Bordeado) */
.button-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.button-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Modificador de tamaño */
.button-large {
    font-size: 1.1rem;
    padding: 15px 35px;
}

/* ===============================================
   SECCIONES Y CLASES DE AYUDA (Helpers)
   =============================================== */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--color-background);
}

.text-center {
    text-align: center;
}

.section-title {
    margin-bottom: 40px;
}

/* ===============================================
   ESTILOS PARA EL HEADER
   =============================================== */
.site-header {
    background-color: var(--color-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: inline-block;
}

.logo img {
    max-height: 50px; 
    display: block;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav ul li {
    display: inline-block;
    margin: 0 15px;
}

.main-nav a {
    color: var(--color-text);
    font-weight: bold;
    text-decoration: none;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-secondary); /* Hover dorado */
    border-bottom-color: var(--color-secondary); /* Subrayado dorado */
}

/* ===============================================
   ESTILOS PARA EL LOGO DE TEXTO
   =============================================== */
.logo {
    text-decoration: none;
    font-family: var(--font-headings);
    font-size: 1.8rem; /* Un poco más grande para la nueva fuente */
    font-weight: 700;
    color: var(--color-title);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.logo span {
    color: var(--color-secondary); /* El color de acento dorado */
    margin-left: 8px; /* Un pequeño espacio */
}

/* ===============================================
   ESTILOS PARA EL HEADER MÓVIL
   =============================================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1000;
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    z-index: 999;
}

.mobile-nav.is-open {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-nav li {
    margin: 20px 0;
}

.mobile-nav a {
    color: var(--color-white);
    font-family: var(--font-headings);
    font-size: 1.8rem;
    text-decoration: none;
}

@media (max-width: 900px) {
    .main-nav, .header-cta {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
}

body.no-scroll {
    overflow: hidden;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.4s ease-in-out;
}

.mobile-menu-toggle.is-active .hamburger-bar {
    background-color: var(--color-white);
}

.mobile-nav.is-open {
    left: 0;
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===============================================
   ESTILOS PARA EL FORMULARIO DE CONTACTO
   =============================================== */
.contact-form {
    max-width: 800px;
    margin: 50px auto 0 auto;
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--color-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(185, 141, 74, 0.25); /* "Glow" dorado */
}

textarea {
    resize: vertical;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 20px;
    }
}

/* ===============================================
   ESTILOS PARA EL FOOTER
   =============================================== */
.site-footer {
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-about,
.footer-links {
    flex-basis: 100%; 
}

.footer-title {
    font-family: var(--font-headings);
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.footer-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--color-text);
}

.footer-links a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.9rem;
    color: #718096;
}

@media (min-width: 768px) {
    .footer-content {
        flex-wrap: nowrap;
    }
    /* Hacemos que la columna "about" sea un poco más ancha que las de enlaces */
    .footer-about {
        flex: 1.5; 
    }
    /* Y las dos columnas de enlaces tengan el mismo tamaño */
    .footer-links {
        flex: 1;
    }
}

/* ===============================================
   ESTILOS PARA LA SECCIÓN DE GALERÍA
   =============================================== */

.gallery-grid {
    display: grid;
    /* 3 columnas en escritorio */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* Espacio entre las imágenes */
}

.gallery-item {
    position: relative; /* Clave para el efecto hover */
    overflow: hidden; /* Para que la imagen no se salga si la escalamos */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* Asegura que la imagen llene el espacio sin deformarse */
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Efecto de zoom suave al pasar el ratón */
}

/* El recubrimiento que aparece al pasar el ratón */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.7); /* Fondo oscuro semitransparente */
    color: var(--color-white);
    
    /* Para centrar el texto */
    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0; /* Oculto por defecto */
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1; /* Se muestra al pasar el ratón */
}

.gallery-overlay h3 {
    color: var(--color-white);
    font-family: var(--font-headings);
    font-size: 1.5rem;
    text-align: center;
    padding: 10px;
    transform: translateY(10px); /* Empieza un poco abajo */
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay h3 {
    transform: translateY(0); /* Sube a su posición final */
}


/* ===============================================
   RESPONSIVE PARA LA GALERÍA
   =============================================== */
/* Para tablets */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    }
}

/* Para móviles */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* 1 columna */
    }
}