/* ================================================= */
/* DOCUMENTACIÓN DE ESTILOS (EduardDiorams Micrositio) */
/* Estilo Premium Tech - Adaptado para Google Ads */
/* ================================================= */

/* VARIABLES DE COLOR Y FUENTES */
:root {
  /* Paleta Principal - Estilo Slate/Tech */
  --primary: #007bff; /* Azul Tech Vibrante (Botones, Enlaces) */
  --accent: #ffd700; /* Dorado (Detalles, Bordes sutiles) */

  /* Fondos - Escala de Grises Azulados (Slate) para elegancia */
  --dark: #0f172a; /* Fondo Principal (Deep Slate) - Reemplaza al negro puro */
  --dark-alt: #1e293b; /* Fondo Secundario (Tarjetas, Secciones alternas) */
  --dark-glass: rgba(15, 23, 42, 0.85); /* Efecto vidrio para Navbar */

  /* Textos */
  --light: #f8fafc; /* Blanco Humo (Texto principal, menos cansad a la vista) */
  --gray: #94a3b8; /* Gris Azulado (Texto secundario, descripciones) */

  /* Tipografía */
  --font-main: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Compatibilidad con nombres anteriores (para no romper HTML viejo aun) */
  --bg-black: var(--dark);
  --bg-dark-grey: var(--dark-alt);
  --text-gray: var(--gray);
}

body {
  font-family: var(--font-main);
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden; /* Previene scroll horizontal indeseado */
}

/* ================================================= */
/* BARRA DE NAVEGACIÓN (Glassmorphism) */
/* ================================================= */
.navbar {
  background-color: var(--dark-glass) !important;
  backdrop-filter: blur(12px); /* Efecto borroso tipo Apple */
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--light) !important;
}

.logo-nav {
  height: 40px;
  width: auto;
  vertical-align: middle;
}

.nav-link {
  color: var(--gray) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

/* ================================================= */
/* UTILIDADES & COMPONENTES */
/* ================================================= */
.text-accent {
  color: var(--accent) !important;
}
.text-primary {
  color: var(--primary) !important;
}
.bg-dark {
  background-color: var(--dark) !important;
}
.bg-dark-alt {
  background-color: var(--dark-alt) !important;
}

/* BOTONES PREMIUM */
.btn-accent {
  background: linear-gradient(135deg, var(--primary) 0%, #0062cc 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px; /* Redondeado moderno */
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
  color: white;
}

.btn-outline-accent {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-outline-accent:hover {
  background-color: var(--accent);
  color: var(--dark); /* Contraste alto */
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* ================================================= */
/* HERO SECTION (3D TILT) */
/* ================================================= */
.hero-section {
    min-height: 90vh; /* Ocupa casi toda la pantalla */
    position: relative;
    padding-top: 80px; /* Para el navbar fixed */
    background: radial-gradient(circle at top right, #1e293b 0%, #0f172a 100%); /* Fondo Slate degradado */
}

/* Acento de fondo (Luz ambiental) */
.hero-bg-accent {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(60px);
    z-index: 1;
    pointer-events: none;
}

/* Contenedor de Perspectiva 3D */
.perspective-container {
    perspective: 1000px; /* Profundidad */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tarjeta que Gira */
.hero-visual-card {
    position: relative;
    width: 100%;
    max-width: 650px; /* Tamaño máximo 16:9 aprox */
    transform-style: preserve-3d; /* Permite elementos hijos en 3D */
    transition: transform 0.1s ease-out; /* Movimiento suave al seguir el mouse */
    cursor: default;
}

/* Sombra 3D realista - MODIFICADO: Transparente para PNGs sin marco */
.shadow-3d {
    box-shadow: none; /* Quitamos la caja de sombra */
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4)); /* Sombra real al contorno del PNG */
    transition: filter 0.3s ease;
}

/* Fondo con Zoom Infinito */
.hero-zoom-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* Muy sutil */
    z-index: 0;
    animation: zoomEffect 20s infinite alternate; /* Zoom lento va y viene */
    /* Imagen por defecto, se puede sobrescribir inline en HTML */
    background-image: url('../images/servicio-coleccionismo.png'); 
}

@keyframes zoomEffect {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

/* Elementos Flotantes (Badges) */
.floating-badge {
    position: absolute;
    padding: 0.8rem 1.5rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    
    /* Efecto de "flotar" más cerca de la cámara */
    transform: translateZ(40px); 
}

.badge-1 {
    top: 10%;
    right: -20px;
    animation: float 4s ease-in-out infinite;
}

.badge-2 {
    bottom: 10%;
    left: -20px;
    animation: float 4s ease-in-out infinite ;
    animation-delay: 2s; /* Desfase */
}

.main-image {
    width: 100%;
    border-radius: 20px;
    transform: translateZ(0); /* Base */
}

@keyframes float {
    0%, 100% { transform: translateZ(40px) translateY(0); }
    50% { transform: translateZ(40px) translateY(-10px); }
}

/* Título con gradiente */
.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* ================================================= */
/* TARJETAS DE SERVICIO (CARRUSEL INFINITO) */
/* ================================================= */

/* Contenedor principal del slider */
.slider-container {
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2rem 0;
}

/* Pista que se mueve */
.slider-track {
    display: inline-flex;
    gap: 2rem; /* Espacio entre tarjetas */
    animation: scroll 30s linear infinite;
    width: max-content; /* Asegura que quepan todos los hijos */
}

/* Pausa al pasar el mouse para poder dar clic */
.slider-track:hover {
    animation-play-state: paused;
}

/* Animación Keyframes (Derecha a Izquierda) */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Se mueve la mitad (el set original) */
}

/* Ajuste de tarjetas para el carrusel */
.service-card {
    background-color: var(--dark-alt);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    width: 300px; /* Ancho fijo para cuadrar bien en el carrusel */
    display: inline-block; /* Comportamiento en línea */
    white-space: normal; /* Texto interno normal */
    vertical-align: top;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 215, 0, 0.5); /* Dorado más visible */
    z-index: 10;
}

.service-card .card-body {
    padding: 1.5rem;
}

.service-card .card-title {
    color: var(--light);
    font-weight: 700;
    margin-top: 10px;
}

.service-card .card-img-top {
    width: 100%; 
    height: 200px; /* Un poco más compacta */
    object-fit: cover; 
    transition: filter 0.3s ease;
}

.service-card:hover .card-img-top {
    filter: brightness(1.1);
}

/* ================================================= */
/* GALERÍA */
/* ================================================= */
.gallery-item {
  height: 250px; /* Ajuste para consistencia */
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
}

/* Modales */
.modal-content {
  background-color: var(--dark-alt);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light);
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-close {
  filter: invert(1) grayscale(100%) brightness(200%); /* Hacer la X blanca */
}

.modal-gallery-img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  margin: 0 auto;
  display: block;
}

/* ================================================= */
/* FAQ - ACORDEÓN MEJORADO */
/* ================================================= */
.accordion-item {
  background-color: transparent !important;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
}

.accordion-button {
  background-color: var(--dark-alt) !important;
  color: var(--light) !important;
  border-radius: 8px !important;
  font-weight: 600;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--dark-glass) !important;
  color: var(--primary) !important;
}

.accordion-button::after {
  filter: invert(1); /* Flecha blanca */
}

.accordion-body {
  background-color: transparent;
  color: var(--gray);
  font-size: 0.95rem;
}

/* ================================================= */
/* RESPONSIVIDAD Y EXTRAS */
/* ================================================= */
@media (max-width: 768px) {
  .slider-track {
    gap: 1rem;
    animation-duration: 20s; /* Más rápido en móvil a veces se ve mejor */
  }

  .service-card {
    width: 260px; /* Un poco más chicas en móvil */
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-section {
    text-align: center;
    /* En móvil quizás queremos menos altura o diferente alineación */
    align-items: center;
    padding-top: 60px; /* Espacio para navbar fixed */
  }

  .btn-accent,
  .btn-outline-accent {
    width: 100%;
    margin-bottom: 10px;
  }
}
