/* =========================
RESET GENERAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
BODY / FONDO
========================= */
body {
  font-family: 'Georgia', serif;
  background: #000;
  color: white;
  overflow-x: hidden;
}

body.age-gate-active {
  overflow: hidden;
}

.site-shell {
  min-height: 100vh;
  position: relative;
  transition: filter 0.35s ease, transform 0.35s ease;
}

body.age-gate-active .site-shell {
  filter: blur(9px);
  transform: scale(1.01);
  pointer-events: none;
  user-select: none;
}

/* =========================
AVISO MAYORÍA DE EDAD
========================= */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.68);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.age-gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.age-gate-card {
  width: min(620px, 82vw);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: clamp(20px, 3.5vw, 36px);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.age-gate-logo {
  display: block;
  width: min(260px, 70%);
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.2));
}

.age-gate-title {
  margin-bottom: 24px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(29px, 4.3vw, 56px);
  line-height: 1.16;
  font-weight: 800;
  color: #fff;
}

.age-gate-message {
  margin: 0 auto;
  max-width: 560px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(18px, 2.35vw, 36px);
  line-height: 1.38;
  color: #c8c8c8;
}

.age-gate-law {
  margin: 18px 0 24px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.age-gate-button {
  display: block;
  width: 100%;
  margin: 14px 0;
  padding: clamp(14px, 2.2vw, 20px);
  border-radius: 10px;
  border: 2px solid #fff;
  background: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(19px, 2.7vw, 45px);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.age-gate-button:hover {
  background: #101010;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  transform: translateY(-1px);
}

.age-gate-button:active {
  transform: translateY(0);
}

.age-gate-bbb-text {
  margin-top: 30px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(16px, 2.05vw, 29px);
  line-height: 1.45;
  color: #c9c9c9;
}

.bbb-highlight {
  color: #fff;
  font-weight: 700;
}

.age-gate-bbb-logo {
  display: block;
  width: min(300px, 78%);
  margin: 16px auto 4px;
}

.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}

.video-bg-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(var(--video-bg-cols, 1), 1fr);
  grid-template-rows: repeat(var(--video-bg-rows, 1), 1fr);
}

.video-bg-tile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  filter: saturate(0.95) contrast(1.08);
}

.video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}

.page-content {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  width: calc(100% - 20px);
  padding: 40px 10px 70px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  border-radius: 30px;
  backdrop-filter: none;
}

.testimonios,
.aviso-guadalupe {
  position: relative;
  z-index: 1;
}

/* =========================
HEADER / LOGO
========================= */
.hero {
  text-align: center;
  padding: 25px 20px 0px;
}

.logo {
  width: 500px;
  margin-bottom: 0;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.6));
}

/* =========================
SECCIÓN SERVICIOS
========================= */
.servicios {
  padding: 5px 20px 60px;
  text-align: center;
}

/* =========================
TÍTULO SERVICIOS
========================= */
.titulo-servicios {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -5px;
  margin-bottom: 10px;
}

.titulo-servicios .script {
  font-family: 'Brush Script MT', cursive;
  font-size: 28px;
  text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.titulo-servicios .serif {
  font-family: 'Cinzel', serif;
  font-size: 36px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

/* =========================
BOTÓN SUPERIOR
========================= */
.btn-top {
  display: inline-block;
  margin-top: 5px;
  margin-bottom: 30px;
  padding: 12px 30px;
  background: #25D366;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-top:hover {
  background: #1ebe5d;
  transform: scale(1.05);
}

/* =========================
GRID SERVICIOS
========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  padding: 0 40px;
}

/* =========================
TARJETAS
========================= */
.card-img {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  padding: 8px;
  min-height: 320px;

  opacity: 0;
  transform: translateY(40px) scale(0.95);
}

/* ANIMACIÓN */
@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-img.show {
  animation: aparecer 0.8s ease forwards;
}

/* IMÁGENES */
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  transition: 0.5s;
  display: block;
}

/* ZOOM */
.card-img.active img {
  transform: scale(1.07);
}

/* OSCURECER */
.card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: 0.3s;
  pointer-events: none;
}

.card-img.active::after {
  opacity: 1;
}

/* =========================
BOTÓN SOBRE IMAGEN
========================= */
.btn-overlay {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #25D366;
  color: white;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  opacity: 0;
  transition: 0.3s;
  z-index: 2;
  pointer-events: none;
}

/* 🔥 CONTROL JS (solo uno activo) */
.card-img.active .btn-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Hover solo para dispositivos con puntero fino (desktop) */
@media (hover: hover) and (pointer: fine) {
  .card-img:hover img {
    transform: scale(1.07);
  }

  .card-img:hover::after {
    opacity: 1;
  }

  .card-img:hover .btn-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

/* =========================
BOTÓN FLOTANTE
========================= */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;

  background: transparent; /* ❌ quitamos el fondo verde */
  padding: 0;              /* ❌ quitamos el espacio interno */
  border-radius: 0;        /* ❌ quitamos el círculo */

  text-decoration: none;
  box-shadow: none;        /* opcional: quita la sombra */
  transition: 0.3s;
  z-index: 999;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #1ebe5d;
}

/* 🔥 TAMAÑO DEL ICONO DE WHATSAPP */
.whatsapp-float img {
  width: 80px;
  height: 80px;
}

/* =========================
SECCIÓN TESTIMONIOS
========================= */
.testimonios {
  padding: 80px 20px 60px;
  text-align: center;
}

/* =========================
TÍTULO TESTIMONIOS
========================= */
.titulo-testimonios {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 50px;
}

.titulo-testimonios .script {
  font-family: 'Brush Script MT', cursive;
  font-size: 28px;
  text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.titulo-testimonios .serif {
  font-family: 'Cinzel', serif;
  font-size: 36px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

/* =========================
CONTENEDOR TESTIMONIOS
========================= */
.testimonios-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 0 40px;
}

/* =========================
TARJETA TESTIMONIO
========================= */
.testimonio-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 20px;
  align-items: stretch;
  max-width: 1200px;
  width: min(1200px, 100%);
  background: rgba(100, 100, 100, 0.25);
  border: 1px solid rgba(200, 200, 200, 0.3);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-wrapper {
  width: 100%;
  min-height: 300px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
}

.testimonio-video {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background-position: center;
  background-size: cover;
  background-color: #101010;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonio-video:hover .video-overlay {
  background: rgba(0, 0, 0, 0.28);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  transition: background 0.3s ease;
}

.video-play-button {
  color: white;
  font-size: 3rem;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.video-text {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.testimonio-texto {
  padding: 25px;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: none;
}

.testimonio-texto h3 {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  letter-spacing: 1px;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.testimonio-texto p {
  font-family: 'Georgia', serif;
  font-size: 14px;
  line-height: 1.6;
  color: #b8b8b8;
}

/* =========================
SECCIÓN AVISO GUADALUPE
========================= */
.aviso-guadalupe {
  width: 100%;
  margin-top: 30px;
  padding-bottom: clamp(22px, 3vw, 42px);
  background: transparent;
}

.aviso-guadalupe-top {
  width: min(1700px, 94vw);
  margin: 0 auto;
  padding: 0 16px clamp(14px, 2vw, 30px);
  background: transparent;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(18px, 2.15vw, 52px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  line-height: 1.25;
  color: #fff;
}

.aviso-guadalupe-fondo {
  position: relative;
  width: min(1700px, 88vw);
  margin: 0 auto;
  padding: clamp(10px, 1vw, 16px);
  border-radius: clamp(18px, 2vw, 36px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.aviso-guadalupe-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(14px, 1.5vw, 28px);
}

.aviso-guadalupe-overlay {
  position: absolute;
  inset: clamp(12px, 1.2vw, 20px);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  pointer-events: none;
}

.aviso-pill {
  margin: 0 auto;
  width: min(82%, 1320px);
  padding: clamp(16px, 2vw, 34px) 25px;
  border-radius: clamp(24px, 3vw, 48px);
  background: rgba(255, 255, 255, 0.30);
  color: #ffffff;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(20px, 2.15vw, 56px);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* =========================
SECCIÓN CÓMO TRABAJAMOS
========================= */
.page-content-como {
  margin-top: 30px;
  padding: 30px 24px 34px;
}

.como-trabajamos {
  text-align: center;
}

.titulo-como-trabajamos {
  margin: 0 0 20px;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 36px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.como-video-wrap {
  width: min(1200px, 100%);
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.como-video-wrap:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.como-video-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  background-position: center;
  background-size: cover;
  background-color: #101010;
  display: flex;
  align-items: center;
  justify-content: center;
}

.como-video-wrap:hover .video-overlay {
  background: rgba(0, 0, 0, 0.28);
}

/* =========================
BBB FINAL
========================= */
.bbb-final {
  position: relative;
  z-index: 1;
  width: min(980px, 92vw);
  margin: 34px auto 80px;
  padding: 0 12px;
  text-align: center;
}

.bbb-final-text {
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(16px, 2vw, 28px);
  line-height: 1.45;
  color: #c9c9c9;
}

.bbb-final-logo {
  display: block;
  width: min(180px, 44vw);
  margin: 14px auto 0;
}

@media (max-width: 900px) {
  .aviso-guadalupe-fondo {
    width: calc(100% - 26px);
    padding: 8px;
    border-radius: 16px;
  }

  .aviso-guadalupe-overlay {
    inset: 8px;
  }

  .aviso-guadalupe-top {
    font-size: clamp(13px, 2.7vw, 24px);
    line-height: 1.3;
    width: calc(100% - 16px);
    padding: 14px 8px;
  }

  .aviso-pill {
    width: min(92%, 860px);
    font-size: clamp(14px, 4.1vw, 26px);
    padding: 12px 12px;
    border-radius: 18px;
  }

  .titulo-como-trabajamos {
    font-size: 32px;
    letter-spacing: 2px;
  }
}

/* =========================
TABLET
========================= */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
MÓVIL
========================= */
@media (max-width: 600px) {

  .age-gate {
    padding: 10px;
  }

  .age-gate-card {
    width: min(540px, 78vw);
    max-height: calc(100vh - 20px);
    padding: 20px 16px;
  }

  .age-gate-logo {
    width: min(215px, 74%);
    margin-bottom: 14px;
  }

  .age-gate-title {
    margin-bottom: 16px;
  }

  .age-gate-message {
    font-size: clamp(16px, 4.7vw, 22px);
  }

  .age-gate-law {
    margin: 14px 0 16px;
    font-size: clamp(19px, 4.9vw, 23px);
    line-height: 1.2;
    white-space: nowrap;
  }

  .age-gate-button {
    padding: 13px 10px;
    font-size: clamp(20px, 5.2vw, 27px);
  }

  .age-gate-bbb-text {
    margin-top: 18px;
    font-size: clamp(15px, 4.2vw, 19px);
  }

  .age-gate-bbb-logo {
    width: min(235px, 82%);
  }

  .page-content {
    width: calc(100% - 56px);
  }

  .page-content-como {
    padding: 24px 12px 28px;
  }

  .hero {
    padding: 30px 15px 0;
  }

  .logo {
    width: clamp(220px, 62vw, 300px);
  }

  .titulo-servicios {
    margin-top: -3px;
  }

  .titulo-servicios .script {
    font-size: 22px;
  }

  .titulo-servicios .serif {
    font-size: 24px;
  }

  .titulo-como-trabajamos {
    font-size: 24px;
    letter-spacing: 1.2px;
  }

  .btn-top {
    padding: 10px 20px;
    font-size: 14px;
  }

  .grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .card-img {
    padding: 0;
    min-height: auto;
  }

  /* 🔥 IMPORTANTE: NO forzar visible */
  .btn-overlay {
    font-size: 14px;
    padding: 8px 18px;
    opacity: 0;
  }

  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    padding: 12px;
  }

  .bbb-final {
    margin: 28px auto 70px;
  }

  .bbb-final-logo {
    width: min(150px, 52vw);
  }
}

/* =========================
MÓVIL TESTIMONIOS
========================= */
@media (max-width: 600px) {
  .testimonio-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 0;
  }

  .testimonio-video {
    min-height: 250px;
  }
}

/* =========================
MODAL PARA VIDEO
========================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.modal-content iframe {
  width: 100%;
  height: 450px;
  border: none;
}

.video-fallback-link {
  display: inline-block;
  margin: 10px 14px 14px;
  color: #ffffff;
  text-decoration: underline;
  font-size: 14px;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.close:hover {
  color: #ccc;
}
