/* =========================================
   VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
    --bg-color: #050505;      /* Negro ultra profundo */
    --text-color: #ffffff;    /* Blanco puro */
    --primary-color: #e60000; /* Rojo sangre / agresivo */
    --primary-glow: rgba(230, 0, 0, 0.6); /* Sombra neón roja */
    --verde-SAG: #4eda08;
    --secondary-bg: #111111;  /* Gris muy oscuro para contrastar */
    --card-bg: #1a1a1a;       /* Fondo de las tarjetas */
    --border-color: #2a2a2a;  /* Bordes sutiles */
}

/* Scrollbar personalizado (solo Chrome/Edge/Safari) */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif; 
    line-height: 1.6;
    overflow-x: hidden; 
    overflow-x: hidden; 
    width: 100%;
    max-width: 100vw;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif; 
    text-transform: uppercase;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.dark-bg {
    background-color: var(--secondary-bg);
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(230,0,0,0.3); /* Brillo sutil al texto rojo */
}

.text-center {
    text-align: center;
}

h2 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    color: #aaaaaa;
    margin-top: -35px;
    margin-bottom: 50px;
    font-weight: 300;
}

/* =========================================
   BOTONES
   ========================================= */
.btn-primary {
    display: inline-block;
    background-color: transparent;
    color: var(--text-color);
    padding: 16px 45px;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 2px;
    border: 2px solid var(--primary-color);
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0%; height: 100%;
    background-color: var(--primary-color);
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-3px);
}

.w-100 {
    width: 100%;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    background: url('../img/portada.png') no-repeat center top/cover;
    position: relative;
    border-bottom: 5px solid var(--primary-color);
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 6rem;
    margin-bottom: 10px;
    text-shadow: 4px 4px 0px var(--primary-color);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: #e0e0e0;
    font-weight: 300;
}

/* =========================================
   ÁLBUM DE HISTORIA (TIMELINE)
   ========================================= */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

/* La línea central */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-color);
    top: 0; bottom: 0; left: 50%;
    margin-left: -2px;
    z-index: 1;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.timeline-item.reverse {
    flex-direction: row-reverse;
}

/* El punto rojo en el centro de la línea */
.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    background-color: var(--primary-color);
    border: 4px solid var(--bg-color);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-img {
    width: 45%;
    padding: 5px;
    transform: rotate(-2deg);
    transition: all 0.4s ease;
}

.timeline-item.reverse .timeline-img {
    transform: rotate(2deg);
}

.timeline-img:hover {
    transform: rotate(0) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 25px var(--primary-glow);
}

.timeline-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: filter 0.4s ease;
}

.timeline-img:hover img {
    filter: grayscale(0);
}

.timeline-content {
    width: 45%;
    background: var(--card-bg);
    padding: 40px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-item.reverse .timeline-content {
    border-left: none;
    border-right: 4px solid var(--primary-color);
    text-align: right;
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

/* =========================================
   GRIDS Y TARJETAS (FAMILIA)
   ========================================= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    align-items: stretch;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    text-align: center;
    padding-bottom: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 4px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover::after {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.8);
    border-color: #444;
}

.card-img-wrapper {
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.card:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.card h3 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin: 20px 0 10px;
    transition: color 0.3s;
}

.card:hover h3 {
    color: var(--primary-color);
}

.card p {
    color: #bbb;
    padding: 0 20px;
}

/* =========================================
   PROMOCIONES
   ========================================= */
.price-card {
    background-color: var(--card-bg);
    padding: 60px 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.4s ease;
}

.price-card:hover {
    border-color: #555;
    transform: translateY(-10px);
}

.price-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(180deg, var(--card-bg) 0%, #1a0000 100%);
}

.price-card.featured:hover {
    box-shadow: 0 0 40px rgba(230, 0, 0, 0.2);
}

.badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 25px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 2px;
    box-shadow: 0 5px 15px var(--primary-glow);
}

.price-card .price {
    font-size: 4rem;
    font-family: 'Oswald', sans-serif;
    color: var(--text-color);
    margin: 25px 0;
    text-shadow: 3px 3px 0px var(--primary-color);
}

/* =========================================
   CONTACTO (FORMA Y MAPA)
   ========================================= */
.form-container {
    background-color: var(--card-bg);
    padding: 50px;
    border: 1px solid var(--border-color);
    border-top: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.input-group {
    margin-bottom: 30px;
    position: relative;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 18px 20px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
    background-color: #0a0a0a;
}

.map-container {
    border: 2px solid var(--border-color);
    padding: 8px;
    background: var(--card-bg);
    transition: border-color 0.3s;
}

.map-container:hover {
    border-color: var(--primary-color);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: var(--bg-color);
    padding: 80px 0 40px;
    text-align: center;
    border-top: 2px solid #111;
}

.footer-logo h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.social-links {
    margin: 30px 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px; height: 50px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.copyright {
    color: #666;
    font-size: 1rem;
    margin-top: 40px;
}

/* =========================================
   CLASES DE ANIMACIÓN SCROLL (JS)
   ========================================= */
.scroll-anim {
    opacity: 0;
    transition: all 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scroll-anim.fade-up {
    transform: translateY(60px);
}

.scroll-anim.slide-left {
    transform: translateX(-80px);
}

.scroll-anim.slide-right {
    transform: translateX(80px);
}

/* Estado activo cuando entran a pantalla */
.scroll-anim.show {
    opacity: 1;
    transform: translate(0, 0);
}

/* =========================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 5rem; }
    h2 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 3.5rem; }
    .hero-content p { font-size: 1.1rem; }
    
    /* Ajustes del Timeline para móviles */
    .timeline::after { left: 31px; }
    .timeline-item::before { left: 31px; }
    
    .timeline-item, .timeline-item.reverse { 
        flex-direction: column; 
        text-align: left; 
        padding-left: 60px; /* Espacio para la línea */
    }
    
    .timeline-item.reverse .timeline-content { 
        text-align: left; 
        border-right: none; 
        border-left: 4px solid var(--primary-color); 
    }
    
    .timeline-img, .timeline-content { 
        width: 100%; 
    }
    
    .timeline-img { 
        margin-bottom: 20px; 
        transform: rotate(0) !important; /* Quitamos la rotación en móviles */
    }
    
    .price-card.featured { transform: scale(1); }
    .form-container { padding: 30px 20px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.8rem; }
    .btn-primary { padding: 12px 25px; font-size: 1.1rem; }
}

.form-container {
    background-color: var(--card-bg);
    padding: 50px;
    border: 1px solid var(--border-color);
    border-top: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}


.form-subtitle {
    text-align: center;
    margin-bottom: 35px; 
    font-size: 1.1rem;
    color: #cccccc;
}

.album-grid {
    display: grid;
    /* Esto hace que las fotos se acomoden solas en filas dependiendo del tamaño de la pantalla */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.album-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 6px;
    transition: all 0.1s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Efecto perro cuando pasas el mouse por las fotos sueltas */
.album-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.04) rotate(2deg); /* Se hace un poquito grande y se gira tantito */
    box-shadow: 0 0 20px var(--primary-glow);
    z-index: 5;
}

.album-item img {
    width: 100%;
    height: 250px;       /* Altura fija para que todas se vean parejas */
    object-fit: cover;   /* Hace que la foto se adapte sin deformarse */
    display: block;
}

/* Ajuste rápido para pantallas pequeñas */
@media (max-width: 480px) {
    .album-grid {
        grid-template-columns: 1fr; /* Una sola columna en celulares viejos o muy chicos */
        gap: 15px;
    }
}