/* --- VARIABLES Y RESET --- */
:root {
    --bg-black: #050505;
    --bg-dark-gray: #121212;
    --bg-card: #1a1a1a;
    --text-white: #fafafa;
    --text-gray: #e0e0e0; 
    --text-dim: #b0b0b0;
    --accent-red: #990000; 
    --accent-red-bright: #b30000;
    --font-title: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; }

/* --- TIPOGRAFÍA --- */
h1, h2, h3, h4 {
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-white);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-red);
    margin: 15px auto 0;
}

.subtitle {
    text-align: center;
    color: var(--accent-red);
    font-size: 0.95rem;
    letter-spacing: 4px;
    margin-bottom: 10px;
    display: block;
    font-weight: bold;
}

.section-desc { text-align: center; color: var(--text-dim); margin-bottom: 3rem; }

/* --- HEADER & NAV --- */
header {
    position: fixed; width: 100%; top: 0;
    background-color: rgba(5, 5, 5, 0.98); border-bottom: 1px solid #222;
    z-index: 1000; padding: 1rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    transition: all 0.3s ease;
}

/* LOGO IMAGEN */
.logo-img { height: 50px; width: auto; display: block; }

.desktop-nav ul { display: flex; gap: 2.5rem; }
.desktop-nav a { font-size: 0.9rem; letter-spacing: 1px; color: var(--text-gray); }
.desktop-nav a:hover { color: var(--accent-red); }

/* HAMBURGUESA */
.hamburger {
    display: none; cursor: pointer; flex-direction: column; gap: 6px;
}
.bar {
    width: 30px; height: 2px; background-color: white; transition: 0.3s;
}

/* MENÚ MÓVIL */
.mobile-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--bg-black); z-index: 1500;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transform: translateY(-100%); transition: transform 0.4s ease-in-out;
}
.mobile-menu.active { transform: translateY(0); }
.mobile-menu li { margin: 2rem 0; }
.mobile-menu a { font-size: 2rem; font-family: var(--font-title); color: var(--text-white); }
.mobile-menu a:hover { color: var(--accent-red); }
.close-menu {
    position: absolute; top: 20px; right: 30px;
    font-size: 3rem; cursor: pointer; color: white;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 0 2rem;
    background-image: url('img/001.jpg');
    background-size: cover; background-position: center;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8));
}
.hero-content {
    position: relative; z-index: 2; max-width: 900px;
    animation: fadeInUp 1.5s ease-out;
}
.hero h1 {
    font-size: 4rem; line-height: 1.1; margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}
.hero p { font-size: 1.3rem; margin-bottom: 3rem; color: var(--text-gray); }

.btn-primary {
    background-color: var(--accent-red); color: white; padding: 18px 40px;
    text-transform: uppercase; letter-spacing: 2px; font-weight: bold;
    border: 1px solid var(--accent-red); cursor: pointer; display: inline-block;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: transparent; color: var(--accent-red);
    transform: translateY(-3px); box-shadow: 0 10px 20px rgba(153, 0, 0, 0.2);
}

/* ANIMACIONES */
.fade-in-section {
    opacity: 0; transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in-section.is-visible { opacity: 1; transform: none; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

section { padding: 6rem 10%; }

/* --- ABOUT & ESTUDIO --- */
.about-container {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-text p { margin-bottom: 1.5rem; color: var(--text-gray); font-size: 1.1rem; }

/* IMAGEN DE ESTUDIO CORREGIDA */
.about-image {
    width: 100%;
    height: 450px;
    background-image: url('img/002.jpg'); /* Tu foto local */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-left: 5px solid var(--accent-red);
    filter: grayscale(100%);
    transition: 0.6s ease;
}
.about-image:hover { filter: grayscale(0%); transform: scale(1.02); }

/* --- SERVICIOS --- */
.services { background-color: var(--bg-black); }
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px;
}
.service-card {
    position: relative; height: 380px; overflow: hidden;
    cursor: pointer; border: 1px solid #333;
}
.service-card:hover { border-color: var(--accent-red); }
.service-bg {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(100%) brightness(0.5); transition: 0.6s;
}
.service-card:hover .service-bg {
    filter: grayscale(0%) brightness(0.7); transform: scale(1.1);
}
.service-content {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
}
.service-content h3 {
    font-size: 1.4rem; color: var(--text-white); margin-bottom: 0.5rem;
    border-left: 4px solid var(--accent-red); padding-left: 10px;
}

/* --- EXPERIENCIA --- */
.experience-section { background: var(--bg-dark-gray); }
.experience-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: center; margin-bottom: 4rem;
}
.highlight-text {
    font-size: 1.2rem; color: var(--text-white); font-weight: bold;
    border-left: 3px solid var(--accent-red); padding-left: 1rem;
}
.studio-photo {
    width: 100%; height: 400px;
    background-image: url('https://images.unsplash.com/photo-1616004655123-818cad957d6d?q=80&w=1000');
    background-size: cover; background-position: center;
    border-right: 5px solid var(--accent-red);
}

/* BANNER DE TÓMBOLA */
.promo-banner {
    /* Asegúrate de tener tu imagen 'fondo-tombola.jpg' o '004.jpg' en la carpeta img */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('img/fondo-tombola.jpg');
    background-size: cover; background-position: center;
    padding: 4rem 2rem; text-align: center; border: 1px solid #333;
}
.promo-title { font-size: 2rem; margin-bottom: 1rem; color: white; }
.promo-code-box {
    border: 2px solid white; padding: 15px 30px; display: inline-block;
    margin-top: 1.5rem; font-family: var(--font-title); font-size: 1.5rem;
    letter-spacing: 3px; color: var(--accent-red); background: rgba(0,0,0,0.6);
}

/* --- TESTIMONIOS --- */
.testimonials { background-color: var(--bg-black); text-align: center; }
.testimonial-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; margin-top: 3rem;
}
.testimonial-card {
    background: var(--bg-card); padding: 2.5rem; border-top: 3px solid var(--accent-red);
    transition: transform 0.3s;
}
.testimonial-card:hover { transform: translateY(-5px); }
.stars { color: #d4af37; margin-top: 0.5rem; }

/* --- CONTACTO --- */
.contact-form { max-width: 600px; margin: 0 auto; text-align: left; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-gray); }
.form-control {
    width: 100%; padding: 15px; background-color: #222; border: 1px solid #333;
    color: white; font-family: var(--font-body); font-size: 1rem;
}
.form-control:focus { outline: none; border-color: var(--accent-red); }

/* --- FOOTER --- */
.main-footer {
    background-color: #000; padding-top: 4rem; border-top: 1px solid #222;
}
.footer-content {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
    padding: 0 10% 4rem 10%;
}
.brand-mantra { color: var(--text-gray); font-style: italic; margin-top: 1rem; }
.footer-links ul li { margin-bottom: 0.8rem; }
.footer-links a:hover { color: var(--accent-red); padding-left: 5px; }
.social-icons { display: flex; gap: 1rem; margin-top: 1rem; margin-bottom: 1rem; }
.social-icons a {
    width: 40px; height: 40px; background: #222; display: flex;
    justify-content: center; align-items: center; border-radius: 50%;
    color: white; font-weight: bold; font-size: 0.8rem;
}
.social-icons a:hover { background: var(--accent-red); }
.address { color: #666; font-size: 0.9rem; }
.footer-bottom {
    text-align: center; padding: 2rem; border-top: 1px solid #111; color: #555; font-size: 0.8rem;
}

/* --- MODAL CARRUSEL --- */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 2000; 
    display: none; flex-direction: column; justify-content: center; align-items: center;
}
.modal.active { display: flex; }

.modal-close {
    position: absolute; top: 20px; right: 30px; font-size: 3rem;
    color: white; cursor: pointer; z-index: 2001; transition: 0.3s;
}
.modal-close:hover { color: var(--accent-red); }

/* Contenedor del Slider */
.carousel-container {
    position: relative; width: 90%; max-width: 1000px; height: 70vh;
    display: flex; justify-content: center; align-items: center;
}
.carousel-track {
    width: 100%; height: 100%; display: flex; justify-content: center; align-items: center;
}
/* Imágenes del Slider */
.carousel-slide {
    display: none; max-width: 100%; max-height: 100%;
    object-fit: contain; /* Para que la foto se vea entera sin recorte */
    border: 2px solid #333; box-shadow: 0 0 20px rgba(0,0,0,0.8);
    animation: fadeEffect 0.4s;
}
.carousel-slide.active { display: block; }

/* Botones Navegación */
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); color: white; border: none;
    font-size: 2rem; padding: 1rem; cursor: pointer; transition: 0.3s;
    z-index: 100; border-radius: 50%;
}
.carousel-btn:hover { background: var(--accent-red); }
.prev { left: 0; }
.next { right: 0; }

.carousel-title {
    color: var(--text-white); margin-top: 1rem;
    font-family: var(--font-title); letter-spacing: 2px;
}

@keyframes fadeEffect {
    from {opacity: 0.4} to {opacity: 1}
}

/* MOBILE */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .desktop-nav { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .about-container, .experience-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
    .carousel-btn { font-size: 1.5rem; padding: 0.8rem; background: rgba(0,0,0,0.2); }
    .carousel-container { width: 100%; }
    .carousel-slide { border: none; }
    section { padding: 4rem 5%; }
}