/* DarioVilchez Fotografía — estilos custom mínimos
   Tailwind cubre el 95% del layout. Acá solo va lo que Tailwind no expresa bien:
   placeholders cinematográficos para fotos faltantes, micro-utilidades
   y el "soft DNA" de bordes redondeados aplicado globalmente. */

/* =====================================================================
   SOFT / ROUNDED DNA — aplica border-radius unificado en todo el sitio
   (front + admin). Estética suave estilo yapedido.
   ===================================================================== */

/* Botones, inputs, textareas, selects → 10px */
button,
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
textarea,
select {
  border-radius: 10px;
}

/* Anchors usados como botones (tienen bg dorado, borde dorado o borde blanco) */
a[class*="bg-gold"],
a[class*="border-gold"],
a[class*="border-white"] {
  border-radius: 10px;
}

/* Cards / contenedores principales */
.bg-base-3,
.bg-gold-warm,
.dv-card-soft {
  border-radius: 14px;
}

/* Placeholders de imágenes y celdas de galería */
.dv-placeholder {
  border-radius: 10px;
}

/* Preservar círculos perfectos (avatares, FAB de WhatsApp, etc.) */
.rounded-full {
  border-radius: 9999px !important;
}

/* Las tablas no se redondean (rompen visualmente), pero su contenedor sí */
table {
  border-radius: 0;
}


:root {
  --gold: #C9A84C;
  --gold-soft: #D4AF6A;
}

/* ---------- Placeholders de imágenes (mientras no hay fotos reales) ---------- */
.dv-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(201,168,76,0.05) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(135deg, #1a1a1a 0%, #0e0e0e 100%);
  overflow: hidden;
  display: block;
}

.dv-placeholder::before {
  /* Grano sutil */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,    rgba(255,255,255,0.012) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg,   rgba(255,255,255,0.012) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.dv-placeholder::after {
  /* Etiqueta del slot */
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(201,168,76,0.35);
  text-align: center;
  padding: 12px;
}

/* Variante: marco más alto sugiriendo foto vertical */
.dv-ph-vert {
  min-height: 100%;
}

/* ---------- Balance de texto en titulares ---------- */
.text-balance { text-wrap: balance; }

/* ---------- Mobile menu animación ---------- */
#dv-mobile-menu {
  transition: max-height .35s ease, opacity .25s ease;
  overflow: hidden;
}
#dv-mobile-menu.hidden {
  display: block !important;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}
#dv-mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* ---------- Nav scroll state (se intensifica al scrollear) ---------- */
#dv-nav.is-scrolled {
  background: rgba(10,10,10,0.92);
  border-bottom-color: rgba(255,255,255,0.08);
}

/* =====================================================================
   ANIMACIONES DE CTA — pulse, heartbeat, shine
   Aplicar como clase suelta en el botón: dv-anim-pulse / heartbeat / shine
   ===================================================================== */

/* PULSE — anillo expansivo dorado, ideal para acción principal (WhatsApp) */
@keyframes dv-pulse {
  0%   { box-shadow: 0 0 0 0    rgba(201, 168, 76, 0.55); }
  70%  { box-shadow: 0 0 0 16px rgba(201, 168, 76, 0); }
  100% { box-shadow: 0 0 0 0    rgba(201, 168, 76, 0); }
}
.dv-anim-pulse {
  animation: dv-pulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* HEARTBEAT — pulso doble tipo latido, para CTA primario */
@keyframes dv-heartbeat {
  0%, 70%, 100% { transform: scale(1); }
  14%           { transform: scale(1.05); }
  28%           { transform: scale(1); }
  42%           { transform: scale(1.05); }
}
.dv-anim-heartbeat {
  animation: dv-heartbeat 1.6s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}

/* HERO LOGO — entrada con fade + flotación continua sutil */
@keyframes dv-hero-in {
  0%   { opacity: 0; transform: translateY(24px) scale(.94); }
  100% { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes dv-hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.dv-hero-logo {
  height: 280px;
  width: auto;
  max-width: 100%;
  display: block;
  animation:
    dv-hero-in    1.2s cubic-bezier(.2,.8,.2,1) both,
    dv-hero-float 5s   ease-in-out 1.2s infinite;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.55));
}
@media (max-width: 640px) {
  .dv-hero-logo { height: 160px; }
}

/* SHINE — destello horizontal periódico, para CTA secundario outlined */
.dv-anim-shine {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.dv-anim-shine::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    transparent 35%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 65%);
  transform: translateX(-100%);
  animation: dv-shine 3.5s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes dv-shine {
  0%, 30%  { transform: translateX(-100%); }
  60%      { transform: translateX(100%); }
  100%     { transform: translateX(100%); }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
