/* ===========================================================
   Impresión 3D Pro — estilos personalizados
   (Tailwind se carga por CDN; aquí solo van los estilos propios)
   =========================================================== */

body {
    background-color: #050505;
    color: #e5e5e5;
    overflow-x: hidden;
}

/* Texto con acabado oro metálico */
.text-gold-metallic {
    background: linear-gradient(to bottom, #cfc09f 22%, #634f2c 24%, #cfc09f 26%, #cfc09f 27%, #ffecb3 40%, #3a2c0f 78%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #d4af37;
}

/* Paneles de cristal */
.glass-panel {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Animación de aparición al hacer scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: .1s; }
.delay-200 { transition-delay: .2s; }
.delay-300 { transition-delay: .3s; }
.delay-500 { transition-delay: .5s; }

/* Zoom de imágenes al pasar el ratón */
.img-zoom { transition: transform 0.6s ease; }
.group:hover .img-zoom { transform: scale(1.08); }

/* Separador dorado */
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .6), transparent);
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    animation: pulse 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #128C7E; }

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
    70%  { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Acordeón FAQ */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .3s ease; }

/* Cinta de texto en movimiento */
.marquee-track { animation: marquee 22s linear infinite; }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Accesibilidad: respetar preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .whatsapp-float, .marquee-track { animation: none; }
}

/* ===========================================================
   Tema claro (opcional, activado por el botón de la cabecera)
   =========================================================== */
body,
[class*="bg-"],
[class*="text-"],
[class*="border-"] {
    transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}

html[data-theme="light"] body {
    background-color: #f8f4ec;
    color: #33291a;
}

html[data-theme="light"] .bg-black,
html[data-theme="light"] .bg-cofrade-dark,
html[data-theme="light"] .bg-\[\#0a0a0a\] {
    background-color: #ffffff;
}

html[data-theme="light"] .bg-cofrade-purple\/10 { background-color: rgba(212, 175, 55, .06); }
html[data-theme="light"] .bg-cofrade-purple\/20 { background-color: rgba(212, 175, 55, .09); }
html[data-theme="light"] .bg-cofrade-purple\/30 { background-color: rgba(212, 175, 55, .12); }

html[data-theme="light"] .bg-gray-900 { background-color: #ece4d3; }

html[data-theme="light"] .text-white { color: #241d10; }
html[data-theme="light"] .text-gray-200 { color: #3a2f1d; }
html[data-theme="light"] .text-gray-300 { color: #4a3d26; }
html[data-theme="light"] .text-gray-400 { color: #5c4d34; }
html[data-theme="light"] .text-gray-500 { color: #786646; }
html[data-theme="light"] .text-gray-600 { color: #8f7c5c; }

html[data-theme="light"] .border-white\/10,
html[data-theme="light"] .border-white\/5 { border-color: rgba(51, 41, 26, .12); }
html[data-theme="light"] .border-gray-900,
html[data-theme="light"] .border-gray-800 { border-color: rgba(51, 41, 26, .1); }

html[data-theme="light"] .glass-panel {
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(212, 175, 55, .35);
}

/* Botones sobre color de marca (verde WhatsApp): el texto debe seguir blanco */
html[data-theme="light"] [class~="bg-cofrade-whatsapp"].text-white,
html[data-theme="light"] [class~="bg-[#25D366]"].text-white {
    color: #ffffff !important;
}

html[data-theme="light"] .bg-white.text-black {
    border: 1px solid rgba(51, 41, 26, .15);
}

html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
    background-color: rgba(255, 255, 255, .8) !important;
}

/* Zonas que deben permanecer siempre oscuras (foto de cabecera y aviso superior),
   con independencia del tema, para mantener el contraste del texto claro */
.dark-banner .text-white { color: #ffffff !important; }
.dark-banner .text-gray-300 { color: #d1d5db !important; }
.dark-banner .text-gray-400 { color: #9ca3af !important; }

/* Textos sobre miniaturas con foto: siempre claros para legibilidad */
.photo-caption .text-white { color: #ffffff !important; }
.photo-caption .text-gray-300 { color: #d1d5db !important; }
.photo-caption .text-cofrade-gold { color: #d4af37 !important; }

/* Botón de cambio de tema */
[data-theme-toggle] .fa-sun { display: none; }
[data-theme-toggle] .fa-moon { display: inline-block; }
html[data-theme="light"] [data-theme-toggle] .fa-sun { display: inline-block; }
html[data-theme="light"] [data-theme-toggle] .fa-moon { display: none; }
