/* ==========================================================================
   Francisco Nasich — Componentes compartidos
   Video container · Botones · Sec-label · Social proof bar
   ========================================================================== */

/* --- Contenedor de video compartido (16:9) --- */
.video-container {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  height: auto;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(
      from var(--btn-border-angle),
      rgba(255, 110, 47, 0.25) 0deg,
      rgba(254, 66, 106, 0.25) 100deg,
      rgba(255, 230, 180, 0.95) 180deg,
      rgba(254, 66, 106, 0.25) 260deg,
      rgba(255, 110, 47, 0.25) 360deg
    ) border-box;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(255, 110, 47, 0.14), 0 2px 6px rgba(254, 66, 106, 0.10);
  animation: btn-border-spin 3s linear infinite;
}

.hero-video,
.testimonial-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

/* --- Mi video — aspect-ratio fijo para que los badges no lo afecten --- */
.hero-video-section {
  width: 100%;
  flex: none;        /* no se estira con la altura del grid */
  position: relative;
  z-index: 1;
  display: none;
  -webkit-animation: heroRiseUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
          animation: heroRiseUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
  will-change: transform, opacity;
}

/* Video hero — ratio 16:9 fijo, nunca cambia con los badges */
.hero-right .video-container {
  max-width: none;
  aspect-ratio: 16 / 9;
  height: auto;
}

.hero-video-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--surface);
  pointer-events: none;
}

.hero-video-placeholder p {
  font-family: var(--ft);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-video-container.has-video .hero-video-placeholder {
  display: none;
}

.hero-video-container.has-video .hero-video {
  z-index: 1;
}

/* Overlay de sonido — cubre todo el video */
.sound-toggle-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 24px;
  background: rgba(10, 10, 10, 0.42);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--ft);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background var(--transition-base), opacity var(--transition-base), visibility var(--transition-base);
}

.sound-toggle-overlay:hover {
  background: rgba(10, 10, 10, 0.52);
}

.sound-toggle-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* --- Video testimonio Delfina --- */
.testimonial-video-wrap {
  width: 100%;
  margin: clamp(8px, 2vw, 16px) 0 clamp(8px, 2vw, 8px);
}

.testimonial-video-container {
  max-width: 100%;
}

.testimonial-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.04), rgba(10, 10, 10, 0.18));
  color: #fff;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition: opacity var(--transition-base), visibility var(--transition-base), background var(--transition-base);
}

.testimonial-play-overlay:hover {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.08), rgba(10, 10, 10, 0.24));
}

.testimonial-play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* --- Botones CTA --- */
.btn-gold {
  background:
    linear-gradient(135deg, #ff6e2f 0%, #fe426a 100%) padding-box,
    conic-gradient(
      from var(--btn-border-angle),
      rgba(255, 110, 47, 0.25) 0deg,
      rgba(254, 66, 106, 0.25) 100deg,
      rgba(255, 230, 180, 0.95) 180deg,
      rgba(254, 66, 106, 0.25) 260deg,
      rgba(255, 110, 47, 0.25) 360deg
    ) border-box;
  color: #fff;
  font-family: var(--ft);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-transform: none;
  padding: 16px 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1;
  text-align: center;
  border-radius: var(--r-full);
  border: 2px solid transparent;
  box-shadow: var(--shadow-glow);
  animation: btn-border-spin 3s linear infinite;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast);
}

.btn-gold::after {
  content: '→';
  line-height: 1;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-lg);
  filter: brightness(1.05);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-gold--lg {
  font-size: 16px;
  padding: 18px 36px;
}

.sec-label {
  font-family: var(--ft);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sec-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 110, 47, 0.4), transparent);
  max-width: 56px;
}

.sec-label--center {
  justify-content: center;
}

.sec-label--center::after {
  display: none;
}

/* Botón play decorativo dentro del .hero-video-placeholder */
.play-c {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.play-c svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
  fill: #fff;
}

/* ==========================================================================
   ADD-ONS: sound toggle como botón claro (no overlay con emoji)
   ========================================================================== */

/* Suaviza el backdrop del overlay y muestra un botón pill centrado adentro.
   El overlay sigue siendo clickeable en toda su superficie, pero visualmente
   ahora se lee como un botón "Ver con sonido" claro. */
.sound-toggle-overlay {
  background: linear-gradient(180deg, rgba(10,10,10,0.0) 0%, rgba(10,10,10,0.18) 60%, rgba(10,10,10,0.32) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  gap: 0;
}

.sound-toggle-overlay:hover {
  background: linear-gradient(180deg, rgba(10,10,10,0.05) 0%, rgba(10,10,10,0.25) 60%, rgba(10,10,10,0.40) 100%);
}

.sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  border-radius: var(--r-full);
  font-family: var(--ft);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  line-height: 1;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.6);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.sound-toggle-overlay:hover .sound-toggle-btn {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.7);
}

.sound-toggle-svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
}

.sound-toggle-label {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .sound-toggle-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  .sound-toggle-svg { width: 16px; height: 16px; }
}
