/* =========================================
   VARIABLES DE COLORES
   ========================================= */
:root {
    --bg-color: #121212;
    --bg-darker: #0a0a0a;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --accent-color: #d4af37; 
}
/* =========================================
   IMPORTAR FUENTE LOCAL (DISTILLERY STRONG)
   ========================================= */
@font-face {
    font-family: 'DistilleryStrong';
    src: url('../fonts/distillery-strong.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
/* =========================================
   RESETEO BÁSICO
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* =========================================
   LOGO Y TÍTULO (BRANDING)
   ========================================= */
.brand-container {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio de separación entre el logo y las letras */
    text-decoration: none;
}

.logo-header {
    width: 60px; /* Puedes subir o bajar este número para cambiar el tamaño del logo */
    height: auto;
    border-radius: 50%; /* Opcional: Esto hace el logo redondo si la imagen es cuadrada */
}

/* Ajuste rápido para el h1 dentro del header para que no tenga márgenes extra */
.brand-container h1 {
    margin: 0;
    line-height: 1;
}

html {
    background-color: #0a0a0a; 
}

/* El body es transparente para que el video del index se vea detrás */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: transparent; 
    color: var(--text-main);
    line-height: 1.6;
}

/* =========================================
   TIPOGRAFÍA DE TÍTULOS (ESTILO GÓTICO)
   ========================================= */
/* =========================================
   TIPOGRAFÍA DE TÍTULOS
   ========================================= */
h1, h2, h3, h4 {
    font-family: 'Rye', cursive;
    font-weight: normal;
    letter-spacing: 2px;
    text-transform: none; 
    color: var(--accent-color);
}

p, a, li, label, input, textarea {
    font-weight: 300;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--text-main);
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section {
    padding: 60px 0;
    background-color: rgba(18, 18, 18, 0.7); 
    backdrop-filter: blur(3px); 
}

.bg-darker {
    background-color: rgba(10, 10, 10, 0.85);
}

.text-center {
    text-align: center;
}

/* =========================================
   HEADER Y NAVEGACIÓN
   ========================================= */
header {
    background-color: rgba(10, 10, 10, 0.85); 
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a:hover {
    color: var(--accent-color);
}

.btn-nav, .btn-primary {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 5px;
    transition: 0.3s;
    display: inline-block;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
}

.btn-nav:hover, .btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--bg-darker);
}

/* =========================================
   HERO / INICIO
   ========================================= */
.hero {
    text-align: center;
    padding: 100px 0;
    border-bottom: 1px solid #333;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* =========================================
   VIDEO DE FONDO (INDEX)
   ========================================= */
.video-background {
    position: fixed; 
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%); 
    z-index: -1; 
    object-fit: cover; 
    filter: brightness(0.3); 
}

.video-mobile {
    display: none;
}

/* =========================================
   SOBRE MÍ
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    align-items: center;
}

.about-text p {
    margin-bottom: 15px;
}

.about-image img {
    border-radius: 8px;
    border: 1px solid #333;
}

/* =========================================
   GALERÍA
   ========================================= */
.categoria-titulo {
    text-align: center;
    color: var(--accent-color);
    margin: 60px 0 25px;
    font-size: 2.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: 5px;
    overflow: hidden; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); 
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1; 
    object-fit: cover; 
    display: block;
    transition: transform 0.4s ease; 
}

.gallery-item img:hover {
    transform: scale(1.15); 
    cursor: pointer;
}

/* =========================================
   INFORMACIÓN Y SERVICIOS
   ========================================= */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-box h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.info-box ul {
    list-style-position: inside;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    padding: 20px 0;
    background-color: rgba(18, 18, 18, 0.7); 
    backdrop-filter: blur(3px); 
    border-top: 1px solid #333;
    color: var(--text-muted);
}

footer a:hover {
    color: #e6c555 !important;
    text-decoration: none;
}

/* =========================================
   RESPONSIVE (CELULARES)
   ========================================= */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }

    .video-desktop {
        display: none; 
    }
    
    .video-mobile {
        display: block; 
    }
}

/* =========================================
   POPUP DE FOTOS (LIGHTBOX)
   ========================================= */
.modal {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.8);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

#caption {
    margin-top: 15px;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent-color);
}