/* ==========================================================================
   VARIABLES & REGLAS GENERALES
   ========================================================================== */
:root {
    --bg-oscuro: #0f0f11;
    --bg-tarjeta: #1a1a1e;
    --texto-principal: #f4f4f5;
    --texto-secundario: #a1a1aa;
    --dorado: #c9a96e;
    --fuente-titulo: 'Cormorant Garamond', serif;
    --fuente-cuerpo: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* --- ELIMINAR RESALTADO AZUL GENÉRICO (TAP HIGHLIGHT) --- */
    -webkit-tap-highlight-color: transparent; /* Para Chrome, Safari, Opera */
    tap-highlight-color: transparent;         /* Estándar */
}

body {
    background-color: var(--bg-oscuro);
    color: var(--texto-principal);
    font-family: var(--fuente-cuerpo);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   PORTADA PRINCIPAL (HERO)
   ========================================================================== */
.hero-principal {
    position: relative;
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('fotos/XV/portada/portada.jpg') center/cover no-repeat;
}

.hero-principal .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(15, 15, 17, 0.5) 0%, rgba(15, 15, 17, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.subtitulo {
    font-size: 0.85rem;
    letter-spacing: 5px;
    color: var(--dorado);
    text-transform: uppercase;
    font-weight: 600;
}

.hero-content h1 {
    font-family: var(--fuente-titulo);
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: 12px;
    margin: 10px 0;
    text-transform: uppercase;
}

.tagline {
    font-size: 1rem;
    font-weight: 200;
    color: var(--texto-secundario);
    letter-spacing: 2px;
    margin-bottom: 30px;
}

/* Botones Redes Sociales (ESTÁTICOS) */
.redes-sociales {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-social {
    padding: 12px 28px;
    text-decoration: none;
    color: var(--texto-principal);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    /* --- ELIMINAR TRANSICIONES --- */
    transition: none; 
}

/* --- ELIMINAR EFECTOS HOVER/ACTIVE EN BOTONES SOCIALES --- */
.btn-social:hover,
.btn-social:active {
    transform: none;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--texto-principal);
    background: rgba(255, 255, 255, 0.05);
}

.btn-wa {
    border-color: var(--dorado);
    color: var(--dorado);
}
/* --- ELIMINAR EFECTOS HOVER/ACTIVE EN BOTÓN WA --- */
.btn-wa:hover,
.btn-wa:active {
    border-color: var(--dorado);
    color: var(--dorado);
    background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   SECCIÓN CATEGORÍAS (PÁGINA INICIO)
   ========================================================================== */
.seccion-categorias {
    padding: 80px 8%;
}

.encabezado-seccion {
    text-align: center;
    margin-bottom: 50px;
}

.encabezado-seccion h2 {
    font-family: var(--fuente-titulo);
    font-size: 2.5rem;
    letter-spacing: 6px;
    font-weight: 300;
}

.linea-decorativa {
    width: 50px;
    height: 1px;
    background-color: var(--dorado);
    margin: 15px auto 0;
}

.grid-categorias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.tarjeta-cat {
    position: relative;
    height: 420px;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    background-size: cover;
    background-position: center;
    /* --- ELIMINAR TRANSICIONES --- */
    transition: none;
}

/* --- ELIMINAR MOVIMIENTO EN TARJETAS --- */
.tarjeta-cat:hover,
.tarjeta-cat:active {
    transform: none;
}

/* Enlaces a las portadas de carpetas */
.cat-xv { background-image: url('fotos/XV/portada/portada.jpg'); }
.cat-bodas { background-image: url('fotos/bodas/portada/portada.jpg'); }
.cat-cumpleanos { background-image: url('fotos/cumpleanos/portada/portada.jpg'); }
.cat-ninos { background-image: url('fotos/ninos/portada/portada.jpg'); }

.capa-oscura {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
    /* --- ELIMINAR TRANSICIONES --- */
    transition: none;
}

/* --- ELIMINAR CAMBIO DE OPACIDAD EN HOVER DE TARJETAS --- */
.tarjeta-cat:hover .capa-oscura,
.tarjeta-cat:active .capa-oscura {
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
}

.cat-info {
    position: relative;
    z-index: 2;
}

.cat-info span {
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--dorado);
}

.cat-info h3 {
    font-family: var(--fuente-titulo);
    font-size: 2.2rem;
    color: var(--texto-principal);
    font-weight: 300;
}

/* ==========================================================================
   SUBPÁGINAS DE GALERÍA
   ========================================================================== */
.nav-fija {
    position: fixed;
    top: 0; width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(15, 15, 17, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo-nav {
    font-family: var(--fuente-titulo);
    font-size: 1.6rem;
    letter-spacing: 4px;
    color: var(--texto-principal);
    text-decoration: none;
}

.btn-volver {
    color: var(--texto-secundario);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    /* --- ELIMINAR TRANSICIONES --- */
    transition: none;
}

/* --- ELIMINAR CAMBIO DE COLOR EN BOTÓN VOLVER --- */
.btn-volver:hover,
.btn-volver:active { 
    color: var(--texto-secundario); 
}

.hero-apartado {
    position: relative;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    margin-top: 60px;
}

.hero-xv { background-image: url('fotos/XV/portada/portada.jpg'); }
.hero-bodas { background-image: url('fotos/bodas/portada/portada.jpg'); }
.hero-cumpleanos { background-image: url('fotos/cumpleanos/portada/portada.jpg'); }
.hero-ninos { background-image: url('fotos/ninos/portada/portada.jpg'); }

.hero-apartado-contenido {
    position: relative;
    z-index: 2;
}

.hero-apartado-contenido span {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--dorado);
}

.hero-apartado-contenido h1 {
    font-family: var(--fuente-titulo);
    font-size: 3.8rem;
    font-weight: 300;
    letter-spacing: 8px;
}

/* Galería Mosaico (Columnas Masonry) (ESTÁTICA) */
.contenedor-mosaico {
    padding: 60px 8%;
}

.mosaico-fotos {
    column-count: 3;
    column-gap: 20px;
}

.mosaico-item {
    margin-bottom: 20px;
    break-inside: avoid;
    overflow: hidden;
    border-radius: 4px;
    background-color: var(--bg-tarjeta);
}

.mosaico-item img {
    width: 100%;
    height: auto;
    display: block;
    /* --- ELIMINAR TRANSICIONES --- */
    transition: none;
    filter: brightness(0.9);
}

/* --- ELIMINAR EFECTOS DE MOVIMIENTO/BRILLO EN FOTOS DE GALERÍA --- */
.mosaico-item:hover img,
.mosaico-item:active img {
    transform: none;
    filter: brightness(0.9);
}

footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--texto-secundario);
    font-size: 0.8rem;
}

/* Adaptación para Pantallas Celulares */
@media (max-width: 900px) {
    .mosaico-fotos { column-count: 2; }
    .hero-content h1 { font-size: 3.2rem; }
}

@media (max-width: 600px) {
    .mosaico-fotos { column-count: 1; }
    .hero-content h1 { font-size: 2.5rem; }
}

/* ==========================================================================
   AJUSTE DE PORTADAS PARA PANTALLAS ANCHAS
   ========================================================================== */

/* 1. Portada principal (Hero de Inicio) */
.hero-principal {
    position: relative;
    /* En pantallas normales usará 80% del alto, pero no crecerá más de 650px ni menos de 400px */
    height: 75vh;
    min-height: 420px;
    max-height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    /* 'center 30%' ayuda a que los rostros/personas no queden decapitados al recortar */
    background-position: center 30%; 
    background-repeat: no-repeat;
}

/* 2. Portadas de los apartados (XV, Bodas, etc.) */
.hero-apartado {
    position: relative;
    height: 45vh;
    min-height: 320px;
    max-height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center 35%; /* Mantiene el encuadre enfocado en el sujeto */
    background-repeat: no-repeat;
    margin-top: 60px;
}

/* 3. Ajuste especial exclusivo para Monitores y Pantallas Muy Anchas (laptops grandes, PC de escritorio) */
@media (min-width: 1400px) {
    .hero-principal {
        max-height: 550px; /* Evita que la foto se estire demasiado hacia los lados */
    }
    
    .hero-apartado {
        max-height: 400px;
    }

    .tarjeta-cat {
        height: 380px; /* Tarjetas de la portada principal más proporcionadas */
    }
}