/* Custom styles for ATV Osorno website */
/* Variables de colores para el sitio. Inspirado en la chaqueta del club (negro/gris con acentos amarillo neón) */
:root {
    --primary-color: #e1ff00; /* amarillo neón suave */
    --secondary-color: #0d0d0d; /* casi negro */
    --text-light: #f4f4f4;
    --nav-height: 72px; /* altura aproximada de la barra de navegación */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-light);
    margin: 0;
    padding-top: 0; /* eliminamos relleno superior; la barra de navegación se gestiona con transformaciones */
}

/* Hero section estilo oscuro con imagen de fondo abstracta y logo animado */
.hero {
    position: relative;
    height: 80vh;
    background-color: var(--secondary-color);
    background-image: url('../images/volcan.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}
.hero .logo-container {
    position: relative;
    z-index: 1;
}
.hero .logo-img {
    width: 200px;           /* base */
    max-width: 60vw;        /* responsivo sin romper diseño */
    height: auto;
    animation: pulse 2.5s infinite;
}
.hero .tagline {
    margin-top: 1rem;
    font-size: 1.3rem;
    color: var(--primary-color);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px var(--primary-color));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px var(--primary-color));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px var(--primary-color));
    }
}

.section {
    padding: 80px 0;
}

/* NAVBAR ANIMADO */
/* La barra está inicialmente oculta trasladándose hacia arriba. Cuando se aplica .nav-visible aparece, y cuando se aplica .nav-hidden se vuelve a ocultar. */
.navbar {
    transition: transform 0.4s ease-in-out;
    will-change: transform;
    transform: translateY(-100%);
}

.nav-visible {
    transform: translateY(0);
}

.nav-hidden {
    transform: translateY(-100%);
    pointer-events: auto; /* asegurar que sigue clickeable */
}

/* Estilo de los elementos del navbar con la fuente Bebas Neue */
.nav-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.6rem;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.nav-item-link {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.2rem;
    margin-left: 1rem;
    text-transform: uppercase;
    transition: color 0.3s ease-in-out;
}
.nav-item-link:hover,
.nav-item-link:focus {
    color: var(--primary-color);
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Galería: asegura que las imágenes se ajusten dentro de un contenedor y se escalen apropiadamente */
.gallery-item img {
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* ======= Galería de álbumes ======= */
.album-card {
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.album-card:hover {
    transform: scale(1.03);
}

.album-card img {
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
}

.album-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.9);
    box-shadow: 0 12px 24px rgba(225, 255, 0, 0.4); /* sombra amarillo neón suave */
}

.album-card img,
.album-card .placeholder-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

/* Placeholder para álbum sin portada */
.placeholder-image {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* Overlay que muestra el nombre del álbum. Se hace visible al pasar el cursor sobre la tarjeta. */
.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
    color: var(--text-light);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.album-card:hover .album-overlay {
    opacity: 1;
}

/* Estilos para imágenes dentro de un álbum individual (album.php) */
.album-image img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.album-image img:hover {
    transform: scale(1.05);
}

/* Timeline styles */
.timeline {
    position: relative;
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--primary-color);
}
.timeline li {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}
.timeline li:last-child {
    margin-bottom: 0;
}
.timeline li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
}
.timeline .timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}
.timeline .timeline-content h4 {
    color: var(--primary-color);
    margin-top: 0;
}
.timeline .timeline-content p {
    margin-bottom: 0;
}

footer {
    font-size: 0.9rem;
}

/* Estilo épico para el título 'Sobre nosotros' */
.about-epic {
    font-family: 'Bangers', cursive; /* Asegúrate de importar Bangers en el <head> */
    font-size: 2.5rem;
    letter-spacing: 1px;
    color: var(--primary-color);
}

/* Contact page styles */
.contact-section {
    background: rgba(0,0,0,0.6);
}
.contact-section .form-control,
.contact-section .form-select {
    background-color: #1a1a1a;
    border-color: #444;
    color: var(--text-light);
}
.contact-section .form-control:focus,
.contact-section .form-select:focus {
    background-color: #222;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(225, 255, 0, 0.25);
    color: var(--text-light);
}
.btn-atv {
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: box-shadow 0.3s, background-color 0.3s;
}
.btn-atv i {
    margin-right: 8px;
}
.btn-atv:hover {
    box-shadow: 0 0 15px #ffff00, 0 0 25px #ffff00;
    background-color: rgba(255, 255, 0, 0.1);
}
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* =================== */
/*  Mejoras rendimiento */
/* =================== */

/* Pinta las secciones solo cuando se acercan al viewport */
.section { content-visibility: auto; contain-intrinsic-size: 800px; }

/* Respeta usuarios con “reducir movimiento” */
@media (prefers-reduced-motion: reduce) {
  * { 
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero .logo-img { animation: none !important; }
}
