/*
Theme Name: Desmadre Theme
Theme URI: https://desmadre.cl
Author: Tu Nombre
Description: Tema oscuro, disruptivo y con galería para la productora Desmadre.
Version: 1.2
*/

/* --- RESET & BASICS --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Arial', sans-serif;
    background-color: #050505;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- VARIABLES --- */
:root {
    --neon-color: #ccff00; /* Verde Ácido */
    --secondary-color: #ff0055; /* Fucsia */
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 { text-transform: uppercase; font-weight: 900; letter-spacing: 2px; }
a { text-decoration: none; color: white; transition: 0.3s; }

/* --- HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: absolute;
    width: 100%;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}
.logo { font-size: 2rem; color: var(--neon-color); text-shadow: 0 0 10px var(--neon-color); font-weight: 900; }
nav ul { display: flex; list-style: none; gap: 30px; }
nav a:hover { color: var(--neon-color); text-shadow: 0 0 5px var(--neon-color); }

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1533174072545-7a4b6ad7a6c3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    text-align: center;
}
.hero h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0px var(--secondary-color), -3px -3px 0px var(--neon-color);
}
.btn-main {
    padding: 15px 40px;
    background-color: var(--neon-color);
    color: #000;
    font-weight: bold;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.4);
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    display: inline-block;
}
.btn-main:hover {
    background-color: #fff;
    transform: scale(1.05) skewX(-10deg);
}

/* --- GENERAL SECTIONS --- */
section { padding: 80px 50px; }
.section-title { font-size: 3rem; margin-bottom: 50px; border-left: 5px solid var(--neon-color); padding-left: 20px; display: inline-block; }
.bg-dark { background-color: #0a0a0a; }
.bg-darker { background-color: #050505; }

/* --- PRICING / PLANES SECTION (NUEVO) --- */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.pricing-card {
    background: #111;
    border: 1px solid #333;
    padding: 40px 30px;
    text-align: center;
    width: 300px;
    position: relative;
    transition: 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-color);
}

.pricing-card h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 10px;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--neon-color);
    margin: 20px 0;
    text-shadow: 0 0 10px rgba(204, 255, 0, 0.3);
}

.pricing-card .desc {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 30px;
    font-style: italic;
}

.pricing-card .features {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
    padding: 0 10px;
}

.pricing-card .features li {
    margin-bottom: 15px;
    color: #ddd;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
}

.pricing-card .features li span {
    color: var(--neon-color);
    margin-right: 10px;
    font-weight: bold;
}

.pricing-card .features li.disabled {
    color: #444;
    text-decoration: line-through;
}
.pricing-card .features li.disabled span { color: #444; }

/* Botones de planes */
.btn-plan {
    display: block;
    padding: 12px;
    border: 2px solid white;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-plan:hover {
    background: white;
    color: black;
}

/* Tarjeta Destacada */
.pricing-card.featured {
    border: 2px solid var(--secondary-color);
    background: #151515;
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.2);
}

.pricing-card.featured:hover {
    transform: scale(1.08);
}

.pricing-card.featured .badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--secondary-color);
    padding: 5px 15px;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1px;
    box-shadow: 0 0 10px var(--secondary-color);
}

.pricing-card.featured .price { color: var(--secondary-color); text-shadow: 0 0 10px rgba(255, 0, 85, 0.4); }
.pricing-card.featured .features li span { color: var(--secondary-color); }

.btn-glow {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px var(--secondary-color);
}
.btn-glow:hover {
    background: transparent;
    color: var(--secondary-color);
}

/* --- GALLERY SECTION --- */
.gallery-grid {
    display: grid;
    /* Esto crea columnas automáticas que siempre llenan el ancho */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 15px; /* Espacio exacto entre fotos (donde dibujaste la línea roja) */
}
.gallery-item {
    position: relative;
    overflow: hidden;
    height: 250px; /* Altura FIJA para todos */
    width: 100%;
    background-color: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Llenar el cuadro sin deformar */
    object-position: center center; /* Centrar la imagen */
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
¿Qué hará esto?
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }

/* LIGHTBOX */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90%; max-height: 90%; box-shadow: 0 0 30px rgba(255,255,255,0.1); border: 2px solid #333; }
.close-lightbox { position: absolute; top: 20px; right: 30px; font-size: 3rem; color: white; cursor: pointer; font-family: sans-serif; }

/* --- FOOTER --- */
footer { padding: 80px 50px; text-align: center; border-top: 1px solid #222; background: #020202;}
.footer-logo { font-size: 3rem; color: #222; font-weight: 900; margin-bottom: 20px; display: inline-block; }
.socials { margin: 30px 0; font-size: 1.2rem; font-weight: bold; }
.socials a { margin: 0 15px; color: var(--neon-color); }
.socials a:hover { color: white; text-shadow: 0 0 10px white;}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    header { padding: 20px; flex-direction: column; background: rgba(0,0,0,0.9); position: relative;}
    nav ul { margin-top: 20px; gap: 15px; flex-wrap: wrap; justify-content: center;}
    section { padding: 50px 20px; }
    .gallery-item.wide, .gallery-item.tall { grid-column: span 1; grid-row: span 1; }
    
    /* Ajuste Planes en celular */
    .pricing-card { width: 100%; margin-bottom: 20px; }
    .pricing-card.featured { transform: scale(1); margin: 20px 0; }
}

/* --- ESTILOS DE LA INFORMACIÓN DE EQUIPOS (NUEVO) --- */

/* Contenedor del texto (oculto por defecto) */
.gallery-item .eq-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    padding: 20px;
    transform: translateY(100%); /* Lo empujamos hacia abajo para ocultarlo */
    transition: transform 0.3s ease-in-out;
    z-index: 2;
}

/* Al pasar el mouse, sube el texto */
.gallery-item:hover .eq-info {
    transform: translateY(0);
}

/* Estilo del título del equipo */
.gallery-item .eq-info h3 {
    font-size: 1.2rem;
    color: var(--neon-color);
    margin: 0;
    text-shadow: 0 0 5px black;
}

/* Estilo de la descripción */
.gallery-item .eq-info p {
    font-size: 0.9rem;
    color: #ddd;
    margin-top: 5px;
}