/* Our own styles on top of the base stylesheet (assets/css/site.css).
   Loaded after it on every page, so these rules win. */

:root {
  --slider-btn-size: 44px;          /* invisible tap target around the chevron */
  --slider-btn-fg: #333333;         /* same dark grey as the page text */
  --slider-btn-inset: 12px;         /* distance from the slider edge */
}

/* ---- Visible prev/next buttons on every slider (.w-slider) ---- */
.w-slider .w-slider-arrow-left,
.w-slider .w-slider-arrow-right {
  display: block;                   /* home's .testimonial-slider-arrow hides them */
  top: 50%;
  bottom: auto;
  width: var(--slider-btn-size);
  height: var(--slider-btn-size);
  margin: 0;
  transform: translateY(-50%);
  background: none;
  color: var(--slider-btn-fg);
  opacity: 0.7;
  transition: opacity 0.15s ease;
}
.w-slider .w-slider-arrow-left  { left: var(--slider-btn-inset); }
.w-slider .w-slider-arrow-right { right: var(--slider-btn-inset); }

.w-slider .w-slider-arrow-left:hover,
.w-slider .w-slider-arrow-right:hover {
  opacity: 1;
}
.w-slider .w-slider-arrow-left:focus-visible,
.w-slider .w-slider-arrow-right:focus-visible {
  outline: 2px solid var(--slider-btn-fg);
  outline-offset: 2px;
}

/* Replace the icon-font glyph with one consistent chevron */
.w-slider .w-slider-arrow-left [class*="w-icon-slider"],
.w-slider .w-slider-arrow-right [class*="w-icon-slider"] {
  display: none;
}
.w-slider .w-slider-arrow-left::after,
.w-slider .w-slider-arrow-right::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: var(--chevron) center / 28px 28px no-repeat;
          mask: var(--chevron) center / 28px 28px no-repeat;
}
.w-slider .w-slider-arrow-left {
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");
}
.w-slider .w-slider-arrow-right {
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
}

/* Home testimonials: the card fills the slider, so centred side buttons would
   cover its text. Put them in the dots row instead:  ‹ ● ● ● ● ● ● ›  */
.testimonial-slider-two .w-slider-arrow-left,
.testimonial-slider-two .w-slider-arrow-right {
  top: auto;
  bottom: 3px;                      /* vertically centred on the dots */
  transform: none;
}
.testimonial-slider-two .w-slider-arrow-left  { left: calc(50% - 150px); }
.testimonial-slider-two .w-slider-arrow-right { right: calc(50% - 150px); left: auto; }

@media (max-width: 479px) {
  :root { --slider-btn-size: 40px; --slider-btn-inset: 6px; }
}

/* ---- Drag/swipe support (see /js/slider-swipe.js) ---- */
.w-slider .w-slider-mask {
  cursor: grab;
  touch-action: pan-y;              /* vertical page scroll still works on phones */
  user-select: none;
  -webkit-user-select: none;
}
.w-slider .w-slider-mask.is-dragging { cursor: grabbing; }
.w-slider .w-slider-mask img { -webkit-user-drag: none; }

/* ---- "Empresas que confían": client logo grid (home + /shows/empresas) ----
   Flexbox so an incomplete last row is centred. Each logo gets a fixed box
   (--logo-w), and the row is capped at exactly --cols boxes wide:
   6 per row on desktop, 4 on tablets, 3 on phones. */
.clientes {
  --cols: 6;
  --logo-w: 140px;
  --logo-h: 48px;
  --gap-x: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px var(--gap-x);
  box-sizing: content-box;
  max-width: calc(var(--cols) * var(--logo-w) + (var(--cols) - 1) * var(--gap-x));
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.clientes img {
  flex: 0 0 var(--logo-w);
  width: var(--logo-w);
  height: var(--logo-h);
  object-fit: contain;
}
/* Nearly square logos look smaller in the same box, so give them more height */
.clientes img.alto { height: calc(var(--logo-h) + 12px); }

@media (max-width: 900px) {
  .clientes { --cols: 4; --logo-w: 120px; --logo-h: 44px; }
}
@media (max-width: 560px) {
  .clientes { --cols: 3; --logo-w: 100px; --logo-h: 40px; --gap-x: 20px; row-gap: 28px; }
}


/* ---- Floating WhatsApp button (every page, markup just before </body>) ----
   Sits under the contact overlay (z-index 9999) on purpose. */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 999;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;              /* WhatsApp green */
  color: #fff;                      /* icon colour */
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.wa-float svg { width: 34px; height: 34px; }
.wa-float:hover { transform: scale(1.08); background: #1ebe5a; }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (max-width: 600px) {
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .wa-float svg { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: none; }
  .wa-float:hover { transform: none; }
}

/* ---- /shows/empresas: two client quote cards side by side ----
   Reuses the template's .logos-quote-block / .clients-card styles. */
.testimonios-empresas {
  gap: 24px;
  align-items: stretch;
}
.testimonios-empresas .clients-card {
  flex: 1 1 0;
  width: auto;
  margin-bottom: 0;
  justify-content: space-between;
}
/* Company logo instead of a square avatar photo: don't crop it */
.testimonios-empresas .clients-info-image {
  width: 72px;
  height: 32px;
  object-fit: contain;
}

/* ---- "Agenda tu evento" overlay: direct contact details under the form ---- */
.contacto-directo {
  margin-top: 28px;
  padding-bottom: 32px;
  color: #fff;
  text-align: center;
}
.contacto-directo .small-divider { margin-bottom: 20px; }
.contacto-directo-titulo {
  opacity: 0.7;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 300;
  line-height: 22px;
}
.contacto-directo-datos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 48px;
}
.contacto-directo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-size: 18px;
  line-height: 24px;
  text-decoration: none;
}
.contacto-directo-link:hover { text-decoration: underline; }
.contacto-directo-label {
  opacity: 0.6;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---- Shared contact overlay (/partials/contacto.html + /js/contacto.js) ---- */
.contact-section {
  overflow-y: auto;                 /* the form is taller than a phone screen */
  -webkit-overflow-scrolling: touch;
}
html.contacto-abierto,
html.contacto-abierto body { overflow: hidden; }   /* page behind doesn't scroll */
.contacto-trampa {                   /* spam trap, invisible to people */
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.contacto-estado {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 17px;
  line-height: 24px;
  text-align: center;
}
.contacto-estado p { margin: 0 0 8px; }
.contacto-estado p:last-child { margin-bottom: 0; }
.contacto-estado a { color: #0ff; }

/* About "Mis shows": the template pinned each card to a different grid cell at every
   breakpoint, so the visual order changed with screen size. Place them in HTML order. */
.our-services-grid > [id^="w-node-"] {
  grid-area: auto !important;
}
@media screen and (min-width: 992px) {
  .our-services-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* About "Mis shows": a small coloured square before each title, like a bullet.
   Square on purpose (no circles on this site). Logo red, yellow, then teal, blue,
   purple and pink (owner's choice). */
.our-services-grid .cuadrito {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 12px;
  vertical-align: 0.05em;
  background: #c4163c;
}
.our-services-grid > div:nth-child(2) .cuadrito { background: #f2b705; }
.our-services-grid > div:nth-child(3) .cuadrito { background: #1fa38a; }
.our-services-grid > div:nth-child(4) .cuadrito { background: #2f6fde; }
.our-services-grid > div:nth-child(5) .cuadrito { background: #7b4bd6; }
.our-services-grid > div:nth-child(6) .cuadrito { background: #e0457b; }
.our-services-grid .paragraph-bigger {
  margin-bottom: 10px;
}

/* Logo en la barra de arriba (reemplaza el texto "ELMAGOEFRAIN"): "MAGO EFRAÍN" en una
   linea, dorado + rojo, PNG transparente sacado del icono. alt="Mago Efraín". */
.logo-text {
  line-height: 0;
  margin-bottom: 0;
}
.logo-img {
  display: block;
  height: 44px;
  width: auto;
  margin-top: 6px; /* centrado con ACERCA / CONTACTO */
}
@media (max-width: 767px) {
  .logo-img {
    height: 30px;
  }
}

/* ===== Cabeceras de marca (hero) =====
   Fondo azul noche del logo con un brillo suave en el centro (como el icono), etiqueta
   dorada chica, titulo blanco y boton rojo solido. Sin foto: las fotos de accion ya
   estan debajo. Home = mas alta, paginas internas = bajas y todas iguales. */
:root {
  --noche: #040711;
  --noche-brillo: #0c222a;
  --dorado-marca: #b78b2b;
  --rojo-marca: #c4163c;
  --rojo-marca-hover: #a51031;
}
html,
body {
  overflow-x: clip; /* las cabeceras salen a todo el ancho con 100vw */
}
.hero-section.home-page-hero,
.project-overview-header,
.intro-header.cc-subpage {
  background-color: var(--noche);
  background-image: radial-gradient(
    ellipse 70% 90% at 50% 45%,
    var(--noche-brillo) 0%,
    var(--noche) 100%
  );
  color: #fff;
}

/* Paginas internas: a todo el ancho (estaban dentro de 2 margenes de 30px) y mas bajas */
.project-overview-header,
.intro-header.cc-subpage {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: auto;
  padding: 120px 20px 56px;
  margin-bottom: 48px;
}
.project-overview-header .intro-content,
.intro-header.cc-subpage .intro-content {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}
.project-overview-header .heading-jumbo,
.intro-header.cc-subpage .heading-jumbo {
  text-transform: none;
  font-size: 48px;
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 24px;
}
.project-overview-header h5 {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  margin: -8px 0 24px;
}
.intro-header.cc-subpage .heading-jumbo {
  margin-bottom: 0;
}

/* Etiqueta dorada chica sobre el titulo */
.cabecera-etiqueta {
  color: var(--dorado-marca);
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

/* Home: titulo dentro del hero; el boton y las tarjetas siguen superpuestos abajo */
.hero-section.home-page-hero {
  padding-top: 112px;
  padding-bottom: 150px;
}
.hero-marca {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero-marca-titulo {
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 600;
  margin: 0;
}

/* Boton "Agenda tu evento": rojo de marca solido, del ancho de su texto */
.agenda-tu-evento,
.agenda-tu-evento.w-button {
  font-family: Inter, sans-serif;
  display: inline-flex;
  width: auto;
  background-color: var(--rojo-marca);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 14px 36px;
  border-radius: 10px;
  transition: background-color 0.2s;
}
.agenda-tu-evento:hover {
  background-color: var(--rojo-marca-hover);
}

@media (max-width: 767px) {
  .project-overview-header,
  .intro-header.cc-subpage {
    padding: 96px 16px 40px;
    margin-bottom: 32px;
  }
  .project-overview-header .heading-jumbo,
  .intro-header.cc-subpage .heading-jumbo {
    font-size: 32px;
  }
  .hero-section.home-page-hero {
    padding-top: 96px;
  }
  .hero-marca-titulo {
    font-size: 28px;
  }
}

/* Etiqueta dorada como link de vuelta: "‹ Todos los shows" (-> /#shows, las tarjetas del
   home) en los shows y "‹ Inicio" en /about. El logo tambien lleva al inicio. */
.cabecera-volver {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  padding: 6px 4px; /* area de toque mas comoda */
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.cabecera-volver:hover,
.cabecera-volver:focus-visible {
  color: #d4a63e;
  border-bottom-color: currentColor;
}
#shows {
  scroll-margin-top: 24px;
}

/* ===== Una sola tipografia: Inter =====
   La plantilla mezclaba 3: Lato en todo el home (clase .body), Montserrat de base en las
   demas paginas e Inter en la mayoria de los titulos y textos. Ahora todo es Inter.
   (El logo es una imagen, no lo afecta.) */
body,
.body,
.bold-text-2,
.margin-bottom-24px,
.heading-4 {
  font-family: Inter, sans-serif;
}

/* Zonas donde trabaja, debajo del titulo del home (tambien ayuda en Google) */
.hero-marca-zona {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.5;
  margin: 14px 0 0;
}
@media (max-width: 767px) {
  .hero-marca-zona {
    font-size: 14px;
  }
}

/* Testimonios en /shows/infantiles y /shows/familia: mismo carrusel que el home, con los
   comentarios de ese tipo de evento y en otro orden (para no repetir el del home). */
.testimonios-show {
  background-color: #f5f7fa;
  border-top: 1px solid #e4ebf3;
  border-bottom: 1px solid #e4ebf3;
  padding: 56px 30px 32px;
  margin-top: 40px;
}
.testimonios-show .heading-2 {
  margin: 0 0 32px;
}
@media (max-width: 767px) {
  .testimonios-show {
    padding: 40px 12px 24px;
  }
}
/* Con 3-4 puntos (en vez de los 6 del home) las flechas van mas cerca */
.testimonios-show .testimonial-slider-two .w-slider-arrow-left {
  left: calc(50% - 125px);
}
.testimonios-show .testimonial-slider-two .w-slider-arrow-right {
  right: calc(50% - 125px);
}
@media (max-width: 767px) {
  .testimonios-show .heading-2,
  .testimonios-show .heading-2 .bold-text {
    font-size: 24px;
    line-height: 1.3;
  }
}

/* Las fotos tienen width/height en el HTML (evita saltos al cargar); que se achiquen
   sin deformarse. Los testimonios quedan cuadrados (200x200, object-fit: cover). */
img[srcset]:not(.testimonial-image-two) {
  height: auto;
}

/* ===== /preguntas: acordeon con <details> (abre y cierra sin JavaScript) ===== */
.faq {
  max-width: 760px;
  margin: 0 auto 72px;
  padding: 0 20px;
  font-family: Inter, sans-serif;
}
.faq-seccion {
  color: var(--dorado-marca);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 48px 0 8px;
}
.faq-seccion:first-child {
  margin-top: 0;
}
.faq-item {
  border-bottom: 1px solid #e4ebf3;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  color: #1a1b1f;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--rojo-marca);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:hover {
  color: var(--rojo-marca);
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--rojo-marca);
  outline-offset: 4px;
}
.faq-respuesta {
  padding: 0 0 20px;
}
.faq-respuesta p {
  color: #4a4a4a;
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 12px;
}
.faq-respuesta p:last-child {
  margin-bottom: 0;
}
.faq-final {
  text-align: center;
  margin-top: 56px;
}
.faq-final p {
  color: #1a1b1f;
  font-size: 18px;
  margin: 0 0 16px;
}
@media (max-width: 767px) {
  .faq-item summary {
    font-size: 17px;
    padding: 18px 0;
  }
  .faq-respuesta p {
    font-size: 15px;
  }
}

/* Acerca: retrato (foto del cubo) al lado del saludo; uno arriba del otro en celular */
.sobre-mi {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
  max-width: 940px;
  margin: 0 auto 72px;
}
.sobre-mi-foto {
  width: 100%;
  border-radius: 12px;
}
.sobre-mi .motto-wrap {
  width: auto;
  margin: 0;
  text-align: left;
}
@media (max-width: 767px) {
  .sobre-mi {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 48px;
  }
  .sobre-mi-foto {
    max-width: 280px;
    margin: 0 auto;
  }
  .sobre-mi .motto-wrap {
    text-align: center;
  }
}

/* /preguntas: foto del montaje dentro de la respuesta sobre el equipo */
.faq-foto {
  width: 100%;
  border-radius: 10px;
  margin-top: 16px;
}

/* ===== Formulario de contacto: tarjeta azul noche centrada (antes: panel negro a todo
   el ancho con los campos pegados al borde y boton celeste #0ff) ===== */
.contact-section {
  background-color: rgba(4, 7, 17, 0.88);
  padding: 40px 16px;
}
.contact-section .form-wrapper {
  flex: 0 1 680px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 40px 8px;
  background-color: var(--noche);
  background-image: radial-gradient(ellipse 80% 60% at 50% 0%, var(--noche-brillo) 0%, var(--noche) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  font-family: Inter, sans-serif;
}
.contact-section .close-link {
  font-size: 20px;
  opacity: 0.6;
  margin-bottom: 4px;
}
.contact-section .close-link:hover {
  opacity: 1;
}
.contact-section .contact-heading-5 {
  font-weight: 600;
  margin-bottom: 12px;
}
.contact-section .small-divider {
  background-color: var(--dorado-marca);
  opacity: 1;
  width: 48px;
  margin-bottom: 28px;
}
.contact-section .text-field-5 {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  padding: 12px 14px;
}
.contact-section .text-field-5::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.contact-section .text-field-5:focus {
  border-color: var(--dorado-marca);
  background-color: rgba(255, 255, 255, 0.09);
}
.contact-section .contact-text {
  font-size: 15px;
  line-height: 1.5;
  margin: 16px 0 20px;
}
.contact-section .submit-button {
  background-color: var(--rojo-marca);
  border-radius: 10px;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 15px 20px;
  transition: background-color 0.2s;
}
.contact-section .submit-button:hover {
  background-color: var(--rojo-marca-hover);
}
.contacto-privacidad {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  margin: 10px 0 0;
}
.contacto-estado {
  border-radius: 10px;
}
.contacto-estado a {
  color: var(--dorado-marca);
}
@media (max-width: 767px) {
  .contact-section {
    padding: 12px 10px;
  }
  .contact-section .form-wrapper {
    padding: 16px 18px 4px;
  }
  .contact-section .contact-heading-5 {
    font-size: 24px;
  }
}
@media (max-width: 560px) {
  .contact-section .input-container {
    flex-direction: column;
  }
  .contact-section .text-field-5.half-text-field {
    width: 100%;
  }
}

/* ===== Pagina 404 (public/404.html; Hostinger la usa por .htaccess) ===== */
.pagina-404 {
  display: grid;
  grid-template-columns: 320px minmax(0, 480px);
  justify-content: center;
  align-items: center;
  gap: 56px;
  min-height: 100vh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 120px 24px 72px;
  background-color: var(--noche);
  background-image: radial-gradient(ellipse 70% 90% at 50% 45%, var(--noche-brillo) 0%, var(--noche) 100%);
  color: #fff;
  font-family: Inter, sans-serif;
}
.pagina-404-foto {
  width: 100%;
  border-radius: 12px;
}
.pagina-404-titulo {
  color: #fff;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 16px;
}
.pagina-404-bajada {
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 32px;
}
.pagina-404-botones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.pagina-404-link {
  color: var(--dorado-marca);
  font-weight: 600;
  text-decoration: none;
}
.pagina-404-link:hover {
  text-decoration: underline;
}
@media (max-width: 767px) {
  .pagina-404 {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 96px 20px 48px;
    text-align: center;
  }
  .pagina-404-foto {
    max-width: 220px;
    margin: 0 auto;
  }
  .pagina-404-titulo {
    font-size: 32px;
  }
  .pagina-404-botones {
    justify-content: center;
  }
}

/* Formulario: boton verde de WhatsApp cuando se usa ese respaldo */
.contacto-wa-boton {
  display: inline-block;
  margin-top: 6px;
  padding: 13px 26px;
  border-radius: 10px;
  background-color: #25d366;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
}
.contacto-wa-boton:hover {
  background-color: #1ebe5b;
}
.contacto-estado-alt {
  font-size: 14px;
  opacity: 0.75;
}
