/* ============================================================
   EFECTOS MODERNOS ADICIONALES
   Partículas, glitch, gradientes animados, etc.
   ============================================================ */

/* ── PLACEHOLDERS DE FOTO CONTEXTUALES ──────────────────────── */
/* Sobre fondo azul (about, contact) */
.about .photo-placeholder {
  background: linear-gradient(135deg, #c8dff0 0%, #a8c8e4 100%);
  color: #2a5878;
}
/* Sobre fondo blanco (servicio escrita) */
.service-detail__item:not(.service-detail__item--alt):not(.service-detail__item--petal) .photo-placeholder {
  background: linear-gradient(135deg, #dde8f4 0%, #c4d8ec 100%);
  color: #3a6080;
}
/* Sobre fondo azul (servicio audio) */
.service-detail__item--alt .photo-placeholder {
  background: linear-gradient(135deg, #b8d4ea 0%, #96bcd8 100%);
  color: #1e4e6e;
}
/* Sobre fondo rosa (servicio video) */
.service-detail__item--petal .photo-placeholder {
  background: linear-gradient(135deg, #f0c8dc 0%, #e4a8c4 100%);
  color: #7a2e50;
}

/* ── PARALLAX TEXTO HERO ────────────────────────────────────── */
.hero__content { will-change: transform; }

/* ── EFECTO MAGNÉTICO EN BOTONES ────────────────────────────── */
.btn { will-change: transform; }

/* ── SKELETON LOADING (si se usa) ──────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position:  1000px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
  border-radius: var(--radius-sm);
}

/* ── EFECTO SPLIT-TEXT (aplicado por JS) ────────────────────── */
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotate(8deg);
  transition: opacity .5s ease, transform .5s cubic-bezier(.34,1.56,.64,1);
}
.char.visible {
  opacity: 1;
  transform: none;
}

/* ── LÍNEA DECORATIVA ANIMADA ───────────────────────────────── */
.animated-line {
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  transition: width 1s ease;
  margin: 1rem 0;
}
.animated-line.visible { width: 80px; }

/* ── HOVER TILT EN TARJETAS ─────────────────────────────────── */
.tilt-card { transform-style: preserve-3d; }
.tilt-card__inner { transform: translateZ(20px); }

/* ── PARTÍCULA DECORATIVA (CSS puro) ────────────────────────── */
.particles-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(201,169,110,.3);
  animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(20px) scale(0.5); opacity: 0; }
}

/* ── TEXTO CON GRADIENTE ────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── EFECTO GLASSMORPHISM ───────────────────────────────────── */
.glass {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.18);
}

/* ── TYPEWRITER (para hero badge) ──────────────────────────── */
.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--color-gold);
  animation: typing 2.5s steps(30,end) both, blink .75s step-end infinite;
}
@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes blink  { 50% { border-color: transparent; } }

/* ── NÚMERO CONTADOR ANIMADO ────────────────────────────────── */
@keyframes countUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.counter-number.animating { animation: countUp .5s ease both; }

/* ── HOVER UNDERLINE REVEAL ─────────────────────────────────── */
.underline-reveal {
  position: relative;
  display: inline-block;
}
.underline-reveal::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s ease;
}
.underline-reveal:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ── IMAGEN CON OVERLAY AL HOVER ────────────────────────────── */
.photo-hover-overlay {
  position: relative;
  overflow: hidden;
}
.photo-hover-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(139,111,71,.3);
  opacity: 0;
  transition: opacity var(--transition-mid);
}
.photo-hover-overlay:hover::after { opacity: 1; }
.photo-hover-overlay img {
  transition: transform var(--transition-slow);
}
.photo-hover-overlay:hover img { transform: scale(1.05); }

/* ── WAVE DIVIDER ENTRE SECCIONES ───────────────────────────── */
.wave-divider {
  line-height: 0;
  overflow: hidden;
}
.wave-divider svg { display: block; }

/* ── STICKY SECTION LABEL ───────────────────────────────────── */
@media (min-width: 900px) {
  .service-detail__item {
    position: relative;
    z-index: 1;
  }
}

/* ── FOCUS VISIBLE ACCESIBLE ────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── SELECCIÓN DE TEXTO ─────────────────────────────────────── */
::selection {
  background: rgba(58,127,168,.2);
  color: var(--color-dark);
}

/* ── SCROLLBAR PERSONALIZADA ────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-cream); }
::-webkit-scrollbar-thumb { background: var(--color-ice-accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2a6a92; }

/* ── ANIMACIÓN DE ENTRADA DE PÁGINA ────────────────────────── */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.page-enter { animation: pageFadeIn .8s ease both; }
