/* ==========================================================================
   1. ESTILOS GENERALES Y FONDO
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    background-color: #f5f0eb; /* Fondo crema cálido */
    color: #2b2b2b;
}

main {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 15px;
}

/* ==========================================================================
   2. ENCABEZADO EXTRA FINO Y COMPACTO
   ========================================================================== */
header {
    background: linear-gradient(135deg, #5c0d0d 0%, #8b0000 100%);
    color: #ffffff;
    text-align: center;
    padding: 6px 10px 0; /* Padding mínimo */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-family: 'Georgia', serif;
    font-size: 1.3rem; /* Título pequeño pero destacado */
    letter-spacing: 1.5px;
    color: #f4c430;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
}

.tagline {
    font-style: italic;
    font-size: 0.75rem;
    color: #e0e0e0;
    margin-bottom: 4px;
}

/* ==========================================================================
   3. MENÚ DE NAVEGACIÓN FINO Y COMPACTO
   ========================================================================== */
nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 4px 5px;
    flex-wrap: wrap;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

nav a:hover {
    background-color: #f4c430;
    color: #5c0d0d;
}

/* ==========================================================================
   4. SECCIÓN NOSOTROS
   ========================================================================== */
#nosotros {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 20px 0;
    border-left: 5px solid #8b0000;
}

#nosotros h2 {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    color: #8b0000;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
}

#nosotros h3 {
    font-size: 1.2rem;
    color: #333333;
    margin: 20px 0 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

#nosotros p {
    font-size: 1.05rem;
    color: #444444;
    margin-bottom: 15px;
    text-align: justify;
}

#nosotros ul {
    margin: 10px 0 15px 20px;
}

#nosotros li {
    font-size: 1rem;
    margin-bottom: 8px;
}

/* ==========================================================================
   5. CARRUSEL DE FOTOS
   ========================================================================== */
.carrusel-container {
    width: 100%;
    overflow: hidden;
    background: transparent;
    margin: 20px 0;
}

.carrusel-track {
    display: flex;
    width: max-content;
    animation: scrollCarrusel 22s linear infinite;
}

.carrusel-track:hover {
    animation-play-state: paused;
}

.slide {
    width: 260px;
    height: 170px;
    flex-shrink: 0;
    padding: 0 5px;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

@keyframes scrollCarrusel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   6. GALERÍA EN CUADRÍCULA
   ========================================================================== */
#galeria h2 {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    color: #8b0000;
    text-align: center;
    margin: 30px 0 15px;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

figure {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

figure img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

figcaption {
    padding: 10px;
    font-weight: bold;
    text-align: center;
    color: #5c0d0d;
    font-size: 0.9rem;
}

/* ==========================================================================
   7. SECCIÓN CARTA Y BOTÓN PDF
   ========================================================================== */
#carta {
    text-align: center;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#carta h2 {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    color: #8b0000;
    margin-bottom: 10px;
}

.portada-carta {
    max-width: 220px;
    width: 100%;
    height: auto;
    margin: 15px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.portada-carta:hover {
    transform: scale(1.03);
}

.btn-pdf {
    display: inline-block;
    background-color: #8b0000;
    color: #ffffff;
    padding: 10px 22px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    border-radius: 6px;
    margin-top: 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-pdf:hover {
    background-color: #a00000;
    transform: translateY(-2px);
}

/* ==========================================================================
   8. SECCIÓN CONTACTO, BOTONES, MAPA Y TABLA
   ========================================================================== */
#contacto {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#contacto h2 {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    color: #8b0000;
    text-align: center;
    margin-bottom: 25px;
}

.contacto-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.contacto-info, .contacto-horario {
    flex: 1;
    min-width: 280px;
}

/* Botones de contacto */
.btn-contacto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    margin-bottom: 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #ffffff !important;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.btn-contacto:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-mapa { background-color: #34a853; }
.btn-telefono { background-color: #007bff; }
.btn-whatsapp { background-color: #25d366; }
.btn-instagram { background-color: #e1306c; }

/* Contenedor e Iframe del Mapa */
.mapa-embed {
    margin-top: 15px;
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.mapa-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Tabla de Horarios */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

th {
    background-color: #f8f8f8;
    color: #333;
    text-align: left;
}

td.cerrado {
    color: #c92a2a;
    font-weight: bold;
}

/* ==========================================================================
   9. PIE DE PÁGINA (FOOTER) Y BOTÓN FLOTANTE
   ========================================================================== */
footer {
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
    font-size: 0.85rem;
}

.btn-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
}

.btn-flotante:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   10. EFECTO FADE-IN (ANIMACIÓN)
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   11. ADAPTACIÓN PARA MÓVILES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 850px) {
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .galeria-grid {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 1.1rem;
    }

    nav a {
        font-size: 0.75rem;
        padding: 2px 6px;
    }

    .contacto-container {
        flex-direction: column;
    }
}
/* Estilos para el pie de página y enlace a LinkedIn */
footer {
    text-align: center;
    padding: 20px 10px;
    background-color: #1a1a1a; /* O el color de fondo de tu web */
    color: #ffffff;
    font-size: 0.95rem;
}

footer a {
    color: #0077b5; /* Azul característico de LinkedIn */
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #00a0dc;
    text-decoration: underline;
}