/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

:root {
  --gold: #d4af37;
  --gold-light: #f6e27a;
  --dark: #000;
  --dark-soft: #0b0b0b;
  --grey: #1a1a1a;
}

/* Scrollbar Personalizada (Chrome/Safari/Edge) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark);
}
::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--dark);
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ================= PRELOADER ================= */
#preloader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.pulsing-logo {
    width: 80px;
    animation: pulse 2s infinite;
}
.loading-bar {
    width: 100px;
    height: 2px;
    background: #222;
    position: relative;
    overflow: hidden;
}
.loading-bar::after {
    content: '';
    position: absolute;
    left: -50%;
    width: 50%;
    height: 100%;
    background: var(--gold);
    animation: loading 1.5s infinite;
}
@keyframes pulse { 0% { opacity: 0.4; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.05); } 100% { opacity: 0.4; transform: scale(0.95); } }
@keyframes loading { 0% { left: -50%; } 100% { left: 100%; } }

/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
}

.logo-text {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  color: var(--gold);
  letter-spacing: 2px;
  font-weight: 700;
}

.logo-text span {
  color: #fff;
}

/* Navegación Desktop */
.nav {
    display: flex;
    align-items: center;
}

.nav a {
  color: #fff;
  margin: 0 15px;
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
  position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s;
}

.nav a:hover { color: var(--gold); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--gold); }

/* Botones Móviles */
.menu-toggle, .close-menu {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 26px;
    cursor: pointer;
}

/* Lang Switch */
.lang-switch button {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 5px 12px;
  margin-left: 5px;
  cursor: pointer;
  font-size: 11px;
  transition: 0.3s;
  text-transform: uppercase;
}
.lang-switch button:hover { background: var(--gold); color: #000; }
.lang-switch-mobile { display: none; }

/* ================= HERO ================= */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.8), #000);
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  padding: 20px;
  margin-top: 60px;
}

.hero-content h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(40px, 8vw, 70px);
  color: var(--gold);
  margin-bottom: 20px;
  text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: clamp(16px, 4vw, 20px);
  color: #eee;
  margin-bottom: 30px;
}

.hero-btn {
    display: inline-block;
    min-width: 200px;
    text-decoration: none;
}

/* ================= DIVIDER ================= */
.gold-divider {
  height: 1px;
  width: 60%;
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

/* ================= SECTIONS ================= */
.section {
  padding: 100px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 40px;
  color: var(--gold);
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 2px;
    background: var(--gold);
    margin: 10px auto 0;
}

/* ================= ARTIST ================= */
.artist-layout {
  display: flex;
  gap: 50px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.image-container img {
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--gold);
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.artist-info {
  max-width: 500px;
  text-align: left;
}

.artist-info p {
  color: #ccc;
  margin-bottom: 25px;
  font-size: 16px;
}

.services {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.services li {
  padding: 12px;
  border: 1px solid #333;
  text-align: center;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
}
.services li:hover { border-color: var(--gold); color: var(--gold); }

/* ================= GALERÍA SISTEMA BENTO (5 COLUMNAS) ================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Móvil: 2 columnas */
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 10px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr); /* PC: 5 columnas */
        grid-auto-rows: 240px;
        gap: 15px;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
    border: 1px solid #1a1a1a;
    cursor: pointer;
    /* Transición suave para el hover */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

/* El truco de las piezas altas para el cierre recto */
.gallery-item.tall { 
    grid-row: span 2; 
}

.gallery-item img, 
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Evita que el video se vea grisáceo antes de cargar */
    background-color: #000;
}

.gallery-item:hover {
    border-color: #d4af37;
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* ================= LIGHTBOX (PANTALLA COMPLETA) ================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* Soporte para Safari */
}

.lightbox.active { 
    display: flex; 
}

.lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-content img, 
.lightbox-content video {
    max-width: 95%;
    max-height: 85vh;
    object-fit: contain;
    border: 1px solid #d4af37;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    
    /* MEJORA DE RENDIMIENTO GPU */
    transform: translateZ(0);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Botón de cierre (X) mejorado */
.close-lightbox {
    position: absolute;
    top: 25px;
    right: 30px;
    color: #fff;
    font-size: 45px;
    font-family: Arial, sans-serif;
    line-height: 1;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease, transform 0.2s ease;
}

.close-lightbox:hover {
    color: #d4af37;
    transform: scale(1.1);
}

/* Animación de entrada para el contenido expandido */
.fade-in {
    animation: zoomIn 0.3s ease-out forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateZ(0);
    }
    to {
        opacity: 1;
        transform: scale(1) translateZ(0);
    }
}

/* Animación de entrada suave para que no parezca que "salta" */
.fade-in {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 50px;
    line-height: 1;
    cursor: pointer;
    text-shadow: 0 0 10px #000;
    z-index: 10001;
}

/* Estilo de la barra de desplazamiento solo para la galería (Chrome/Safari) */
.images-grid::-webkit-scrollbar {
  height: 6px;               /* Barra horizontal fina */
}
.images-grid::-webkit-scrollbar-track {
  background: #111;
  border-radius: 10px;
}
.images-grid::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}

/* --- SECCIÓN DE VIDEOS (3 Abajo en cuadrícula exacta) --- */
.videos-grid {
  display: grid;
  /* repeat(3, 1fr) fuerza exactamente 3 columnas del mismo tamaño */
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px;
  width: 100%;
}

.videos-grid video {
  width: 100%;
  height: 100%;            /* O define una altura fija ej: 250px */
  min-height: 250px;       /* Altura mínima para que no se vean aplastados */
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #333;
  transition: 0.4s;
}

.videos-grid video:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* --- RESPONSIVE PARA MÓVILES --- */
@media (max-width: 768px) {
  /* En móvil, los videos pasan a ser 1 por fila para que se vean bien */
  .videos-grid {
    grid-template-columns: 1fr; 
  }
  
  /* Las imágenes siguen en fila horizontal (carrusel), 
     ajustamos un poco la altura */
  .images-grid img {
    height: 350px;
    min-width: 260px;
  }
}

/* ================= TESTIMONIALS (NEW) ================= */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: #0e0e0e;
    padding: 30px;
    border: 1px solid #222;
    border-radius: 8px;
    transition: 0.3s;
}
.testimonial-card:hover { border-color: var(--gold); transform: translateY(-5px); }
.testimonial-card i { color: var(--gold); font-size: 20px; margin-bottom: 15px; display: block;}
.testimonial-card p { font-style: italic; color: #ddd; font-size: 15px; margin-bottom: 15px; }
.testimonial-card span { font-family: 'Cinzel', serif; color: var(--gold); font-size: 14px; }

/* ================= CONTACT ================= */
.quote-form {
  max-width: 550px;
  margin: 0 auto 50px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.quote-form input,
.quote-form textarea {
  background: var(--dark-soft);
  border: 1px solid #333;
  padding: 18px;
  color: #fff;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  transition: 0.3s;
}

.quote-form input:focus, .quote-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: #111;
}

.file-label {
  border: 1px dashed #444;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  color: #888;
  font-size: 14px;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.file-label:hover { border-color: var(--gold); color: var(--gold); background: rgba(212, 175, 55, 0.05); }
.file-label input { display: none; }
.form-note { font-size: 12px; color: #666; text-align: left; margin-top: -10px; margin-bottom: 10px; }

.gold-btn {
  background: linear-gradient(135deg, #a47e1b, var(--gold));
  color: #000;
  font-weight: 700;
  padding: 18px;
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: 0.4s;
  border-radius: 2px;
}

.gold-btn:hover {
  filter: brightness(1.2);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
}

.contact-info-container { margin-top: 40px; }
.info-line { height: 1px; width: 100px; background: var(--gold); margin: 20px auto; opacity: 0.5; }
.info-details p { margin: 15px 0; font-size: 18px; color: #ddd; }
.info-details i { color: var(--gold); margin-right: 12px; }
.info-details a { color: inherit; text-decoration: none; transition: 0.3s; }
.info-details a:hover { color: var(--gold); }

/* ================= MAP ================= */
.map iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  filter: grayscale(100%) invert(92%) contrast(85%);
}

/* ================= FOOTER ================= */
.footer {
  padding: 40px 20px;
  background: #050505;
  border-top: 1px solid #111;
  text-align: center;
}
.footer p { font-family: 'Cinzel', serif; font-size: 13px; color: #666; letter-spacing: 1px; }

/* ================= WHATSAPP LUXURY VERSION ================= */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #000;         /* Fondo Negro Puro */
  color: var(--gold);             /* Logo Dorado */
  border: 1px solid var(--gold);  /* Borde Fino Dorado */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  text-decoration: none;
  z-index: 2000;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}

/* Efecto de resplandor dorado sutil al rededor */
.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0.5;
  animation: gold-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: var(--gold); /* Invierte colores al pasar el mouse */
  color: #000;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* Animación de pulso elegante */
@keyframes gold-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Tooltip (Opcional: etiqueta que dice "Chat with us" al pasar el mouse) */
.whatsapp-float:hover::after {
  content: 'Book Now';
  position: absolute;
  right: 75px;
  background: #111;
  color: var(--gold);
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Cinzel', serif;
  border: 1px solid var(--gold);
  white-space: nowrap;
}
/* ================= ANIMATIONS ================= */
.reveal { opacity: 0; transform: translateY(60px); transition: 1s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-item { opacity: 0; transform: translateY(40px); transition: 0.8s ease; }
.reveal-item.active { opacity: 1; transform: translateY(0); }

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .header { padding: 15px 20px; }
  .menu-toggle { display: block; }
  .desktop-only { display: none; }
  
  /* Mobile Menu Styles */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #000;
    border-left: 1px solid var(--gold);
    flex-direction: column;
    justify-content: center;
    transition: 0.4s ease-in-out;
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    z-index: 1001;
  }
  .nav.active { right: 0; }
  .close-menu { display: block; position: absolute; top: 25px; right: 25px; }
  .nav a { margin: 20px 0; font-size: 18px; }
  .lang-switch-mobile { display: block; margin-top: 30px; }
  
  .artist-layout { flex-direction: column; text-align: center; }
  .artist-info { text-align: center; }
  .services { max-width: 300px; margin: 0 auto; }
}
/* Estilo para que el enlace del logo se comporte como el contenedor original */
.logo-link {
    display: flex !important;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    gap: 10px; /* <--- Aumenta este número para dar más espacio */
}

.logo-link:hover {
    opacity: 0.9; /* Un pequeño efecto visual al tocarlo */
}

/* Asegura que el logo no tenga bordes extraños */
.logo-img {
    display: block;
}