/* ==========================================================================
   Vallenato Miami — Hoja de estilos v2
   Fiel al diseño original: hero oscuro, contenido blanco, tipografía liviana
   Mobile-first · SEO · Accesibilidad
   ========================================================================== */

:root {
  --c-bg: #ffffff;
  --c-bg-alt: #f7f7f7;
  --c-text: #2a2a2a;
  --c-text-soft: #6b6b6b;
  --c-text-mute: #9a9a9a;
  --c-line: #e8e8e8;
  --c-dark: #0c0c0c;
  --c-accent: #d63384;          /* magenta del topbar original */
  --c-accent-hover: #b02770;
  --c-orange: #f29200;          /* naranja del logo/acordeón */
  --c-yellow: #ffc20e;
  --c-red: #d62828;
  --c-whatsapp: #25d366;
  --container: 1200px;
  --transition: 280ms cubic-bezier(.2,.7,.2,1);
  --font-light: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Open Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-light);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-accent); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--c-text);
}

.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--c-accent); color: #fff;
  padding: 12px 16px; z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  padding: 0 20px;
  margin: 0 auto;
}

/* ============= Barra magenta superior (decorativa, como el original) ============= */
.accent-bar {
  background: var(--c-accent);
  height: 4px;
  width: 100%;
}

/* ============= TOPBAR CONTACTO ============= */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  font-size: 13px;
  color: var(--c-text-soft);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; gap: 12px; flex-wrap: wrap;
}
.topbar__contact { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.topbar__link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--c-text-soft);
}
.topbar__link svg { color: var(--c-text-mute); flex-shrink: 0; }
.topbar__link:hover { color: var(--c-accent); }
.topbar__link:hover svg { color: var(--c-accent); }
.topbar__social { display: flex; gap: 14px; align-items: center; }
.topbar__social a {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-text-mute);
  border-radius: 50%;
  transition: all .25s ease;
}
.topbar__social a svg { width: 20px; height: 20px; }
.topbar__social a:hover {
  color: #fff;
  background: var(--c-accent);
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .topbar__link--hide-mobile { display: none; }
  .topbar__inner { padding: 10px 16px; }
  .topbar__contact { gap: 16px; }
}

/* ============= HEADER ============= */
.header {
  background: #fff;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--c-line);
}
.header { transition: box-shadow .3s ease, padding .3s ease; }
.header.is-scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 12px;
}
.header__logo {
  display: flex; align-items: center;
  height: 50px;
  flex: 0 0 auto;
}
.header__logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.header__toggle {
  width: 44px; height: 44px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
  border-radius: 4px;
  flex: 0 0 auto;
  margin-left: auto; /* empuja la hamburguesa al borde derecho */
  position: relative;
  z-index: 102; /* siempre sobre el menú */
}
.header__toggle[aria-expanded="true"] {
  position: fixed;
  top: 18px; right: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  z-index: 9999;
}
.header__toggle span {
  width: 24px; height: 2px;
  background: var(--c-text);
  transition: var(--transition);
}
.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav cuando vive en <body> = drawer móvil (escapa del stacking context del header) */
body > .header__nav {
  position: fixed; top: 0; right: -100%;
  width: 85%; max-width: 320px; height: 100vh;
  background: #fff;
  padding: 80px 20px 20px;
  transition: right var(--transition);
  box-shadow: -10px 0 30px rgba(0,0,0,.15);
  z-index: 9000; /* sobre overlay (8000) */
  overflow-y: auto;
}
body > .header__nav.is-open { right: 0; }

/* Nav cuando vive en .header__inner = inline desktop */
.header__inner > .header__nav {
  position: static;
  background: transparent;
  padding: 0;
  width: auto; max-width: none; height: auto;
  box-shadow: none;
  overflow: visible;
  margin-left: auto;
  z-index: auto;
}

/* Reglas comunes a la lista interna */
.header__nav ul { display: flex; flex-direction: column; gap: 0; }
.header__nav a {
  display: block;
  padding: 14px 8px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-line);
  pointer-events: auto;
}
.header__nav a:hover, .header__nav a.is-active { color: var(--c-accent); }

/* Layout horizontal solo cuando vive en header__inner (desktop) */
.header__inner > .header__nav ul {
  flex-direction: row;
  align-items: center;
}
.header__inner > .header__nav a {
  padding: 12px 18px;
  border-bottom: 0;
  font-size: 12.5px;
  letter-spacing: .15em;
}

/* Overlay oscuro detrás del menú móvil */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 8000; /* debajo del nav (9000) */
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  cursor: pointer;
}
.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Ocultar toggle en desktop */
@media (min-width: 992px) {
  .header__inner { padding: 18px 20px; }
  .header__toggle { display: none; }
}

/* ============= BOTONES ============= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  border-radius: 999px;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  min-height: 48px;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}
.btn--primary:hover {
  background: transparent;
  color: var(--c-accent);
}
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn--ghost:hover { background: #fff; color: var(--c-dark); border-color: #fff; }
.btn--dark {
  background: var(--c-dark); color: #fff; border-color: var(--c-dark);
}
.btn--dark:hover { background: transparent; color: var(--c-dark); }

/* Botón submit estilo WhatsApp del formulario */
.btn--wa-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-radius: 999px;
  background: var(--c-whatsapp);
  color: #fff;
  border: 2px solid var(--c-whatsapp);
  cursor: pointer;
  transition: var(--transition);
  min-height: 52px;
  box-shadow: 0 4px 14px rgba(37,211,102,.35);
}
.btn--wa-submit:hover {
  background: #128c7e;
  border-color: #128c7e;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37,211,102,.45);
}
.btn--wa-submit:disabled { opacity: .6; cursor: wait; }
.btn--wa-submit svg { flex-shrink: 0; }

/* ============= HERO Slider tipo Revolution ============= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: #000;
  isolation: isolate; /* propio stacking context, evita glitches con sticky header */
}
.hero__slider {
  position: absolute; inset: 0;
  z-index: 1;
}
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide picture, .hero__slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55) 60%, rgba(0,0,0,.7));
  z-index: 1;
}

.hero__content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 80px 20px;
  max-width: 1000px;
  margin: 0 auto;
  color: #fff;
}
.hero__instagram {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  letter-spacing: .15em;
  margin-bottom: 32px;
  text-transform: uppercase;
  font-weight: 300;
}
.hero__instagram svg { width: 18px; height: 18px; }
.hero__instagram:hover { color: var(--c-accent); }

.hero__eyebrow {
  display: block;
  color: rgba(255,255,255,.85);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .25em;
  margin-bottom: 12px;
  font-weight: 300;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 9vw, 92px);
  letter-spacing: .01em;
  color: #fff;
  margin-bottom: 24px;
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
  animation: fadeInUp 1s ease both;
}

.hero__subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,.95);
  margin: 0 auto 36px;
  max-width: 760px;
  font-weight: 300;
  line-height: 1.7;
  animation: fadeInUp 1s ease .25s both;
}

.hero__phone {
  display: inline-flex; align-items: center; flex-direction: column; gap: 14px;
  animation: fadeInUp 1s ease .45s both;
}
.hero__phone__icon {
  width: 84px; height: 84px;
  background: var(--c-whatsapp);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 8px 32px rgba(37,211,102,.45);
  transition: var(--transition);
}
.hero__phone__icon:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 40px rgba(37,211,102,.6);
}
.hero__phone__cta {
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  letter-spacing: .02em;
}
.hero__phone__numbers {
  font-size: 14px;
  color: rgba(255,255,255,.85);
  letter-spacing: .1em;
}

.hero__dots {
  position: absolute;
  bottom: 28px; left: 0; right: 0;
  z-index: 3;
  display: flex; justify-content: center; gap: 10px;
}
.hero__dot {
  width: 10px; height: 10px;
  background: rgba(255,255,255,.4);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}
.hero__dot.is-active { background: #fff; transform: scale(1.3); }

.hero__arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 48px; height: 48px;
  background: rgba(0,0,0,.3);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.hero__arrow:hover { background: rgba(0,0,0,.6); }
.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }
@media (max-width: 768px) {
  .hero__arrow { display: none; }
}

/* Layer del acordeón (decorativo, dentro del hero — sin animación constante) */
.hero__accordion {
  position: absolute;
  bottom: -8%;
  left: -6%;
  width: 380px;
  max-width: 50vw;
  z-index: 2;
  pointer-events: none;
  opacity: .85;
  transform: rotate(-7deg);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.4));
  will-change: auto;
}
@media (max-width: 768px) {
  .hero__accordion { width: 220px; bottom: -3%; left: -8%; opacity: .7; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__accordion {
    animation: floatY 8s ease-in-out infinite;
  }
  @keyframes floatY {
    0%, 100% { transform: translateY(0) rotate(-7deg); }
    50% { transform: translateY(-14px) rotate(-5deg); }
  }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============= SECCIONES ============= */
.section {
  padding: 80px 0;
  background: #fff;
}
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head {
  text-align: center;
  margin-bottom: 56px;
}
.section__eyebrow {
  display: inline-block;
  color: var(--c-accent);
  font-size: 12px; font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 300;
  margin-bottom: 16px;
  letter-spacing: .01em;
}
.section__title--accent { color: var(--c-accent); }
.section__divider {
  width: 60px; height: 2px;
  background: var(--c-accent);
  margin: 16px auto 24px;
}
.section__subtitle {
  color: var(--c-text-soft);
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
}

@media (min-width: 992px) {
  .section { padding: 110px 0; }
}

/* ============= PAGE HERO (interior) ============= */
.page-hero {
  background: #fff;
  padding: 80px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--c-line);
}
.page-hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 300;
  margin-bottom: 24px;
  letter-spacing: .01em;
}
.breadcrumb {
  display: flex; gap: 10px; justify-content: center;
  font-size: 14px; color: var(--c-text-mute);
  font-weight: 400;
}
.breadcrumb a { color: var(--c-text); font-weight: 600; }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb svg { color: var(--c-text-mute); }

/* ============= TARJETAS DE SERVICIO ============= */
.services-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  text-align: center;
  padding: 32px 24px;
  border: 1px solid var(--c-line);
  background: #fff;
  transition: var(--transition);
  border-radius: 4px;
}
.service-card:hover {
  border-color: var(--c-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.06);
}
.service-card__icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(214,51,132,.08);
  color: var(--c-accent);
  transition: var(--transition);
}
.service-card:hover .service-card__icon {
  background: var(--c-accent);
  color: #fff;
}
.service-card h3 {
  font-size: 18px; font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.service-card p { color: var(--c-text-soft); font-size: 15px; }

/* ============= TWO-COL ============= */
.two-col {
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 992px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 80px; }
  .two-col--reverse > :first-child { order: 2; }
}
.two-col__media {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
  background: var(--c-bg-alt);
}
.two-col__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.two-col__media:hover img { transform: scale(1.05); }
.two-col__text h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 300;
  margin-bottom: 20px;
}
.two-col__text p { color: var(--c-text-soft); margin-bottom: 16px; }
.two-col__text .btn { margin-top: 12px; }

/* ============= GALERÍA ============= */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 992px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 14px; } }

.gallery__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--c-bg-alt);
  cursor: pointer;
  border-radius: 2px;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery__item::after {
  content: "+";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(214,51,132,.85);
  color: #fff; font-size: 48px; font-weight: 200;
  opacity: 0; transition: opacity .3s ease;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item:hover img { transform: scale(1.08); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 95%; max-height: 90vh; object-fit: contain; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  background: rgba(255,255,255,.1);
  color: #fff;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; cursor: pointer;
  transition: var(--transition);
}
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover {
  background: var(--c-accent);
}

/* ============= VIDEOS ============= */
.video-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }

.video-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
}
.video-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.08); transform: translateY(-3px); }
.video-card__embed {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  cursor: pointer;
}
.video-card__embed img {
  width: 100%; height: 100%; object-fit: cover;
}
.video-card__embed iframe {
  width: 100%; height: 100%;
  border: 0;
  position: absolute; inset: 0;
}
.video-card__embed .play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.25);
  transition: var(--transition);
}
.video-card__embed .play-btn::before {
  content: "";
  width: 70px; height: 70px;
  background: var(--c-red);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.video-card__embed .play-btn::after {
  content: "";
  position: absolute;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #fff;
  margin-left: 6px;
}
.video-card__embed:hover .play-btn { background: rgba(0,0,0,.05); }
.video-card__body { padding: 18px 20px; }
.video-card__body h3 {
  font-weight: 600; font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.video-card__body p { font-size: 14px; color: var(--c-text-soft); }

/* ============= TESTIMONIOS ============= */
.testimonials {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }

.testimonial {
  background: #fff;
  padding: 32px 28px;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  position: relative;
  text-align: center;
}
.testimonial__rating {
  color: var(--c-yellow);
  font-size: 18px;
  letter-spacing: 4px;
  margin-bottom: 18px;
}
.testimonial__text {
  font-style: italic;
  color: var(--c-text-soft);
  margin-bottom: 22px;
  font-size: 15px;
}
.testimonial__author {
  border-top: 1px solid var(--c-line);
  padding-top: 18px;
}
.testimonial__name { font-weight: 600; color: var(--c-text); margin-bottom: 2px; }
.testimonial__event { font-size: 13px; color: var(--c-text-mute); }

/* ============= STATS ============= */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 200;
  color: var(--c-accent);
  letter-spacing: .02em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--c-text-soft);
}

/* ============= CTA BANNER ============= */
.cta-banner {
  background: var(--c-accent);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; font-size: clamp(26px, 3.5vw, 38px); margin-bottom: 14px; }
.cta-banner p { font-size: 17px; max-width: 620px; margin: 0 auto 28px; opacity: .95; }
.cta-banner .btn { background: #fff; color: var(--c-accent); border-color: #fff; }
.cta-banner .btn:hover { background: transparent; color: #fff; }

/* ============= FORMULARIO CONTACTO ============= */
.contact-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 992px) { .contact-grid { grid-template-columns: 5fr 4fr; gap: 56px; } }

.contact-form {
  background: #fff;
  padding: 36px 28px;
  border: 1px solid var(--c-line);
  border-radius: 4px;
}
@media (min-width: 768px) { .contact-form { padding: 44px 36px; } }
.form-row { display: grid; gap: 20px; grid-template-columns: 1fr; margin-bottom: 20px; }
@media (min-width: 600px) { .form-row.form-row--2 { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 12px; font-weight: 600;
  color: var(--c-text-soft);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 3px;
  color: var(--c-text);
  font-size: 16px;
  font-weight: 300;
  transition: border-color var(--transition);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(214,51,132,.12);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-msg {
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14px;
  display: none;
}
.form-msg.is-visible { display: block; }
.form-msg--ok { background: rgba(37,211,102,.1); color: #157a3d; border: 1px solid rgba(37,211,102,.3); }
.form-msg--err { background: rgba(214,40,40,.08); color: #a82020; border: 1px solid rgba(214,40,40,.2); }

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  transition: var(--transition);
}
.info-card:hover { border-color: var(--c-accent); }
.info-card__icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(214,51,132,.08);
  border-radius: 50%;
  color: var(--c-accent);
}
.info-card h4 {
  font-size: 13px; font-weight: 600;
  letter-spacing: .12em;
  margin-bottom: 4px;
  text-transform: uppercase;
  color: var(--c-text);
}
.info-card p, .info-card a { color: var(--c-text-soft); font-size: 15px; }
.info-card a:hover { color: var(--c-accent); }

/* ============= FOOTER ============= */
.footer {
  background: var(--c-dark);
  color: rgba(255,255,255,.7);
  padding: 64px 0 24px;
  font-weight: 300;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
@media (min-width: 600px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer__logo { margin-bottom: 18px; display: inline-block; }
.footer__logo img { max-width: 240px; height: auto; display: block; }
.footer__col p { font-size: 14px; line-height: 1.8; }
.footer__subtitle {
  font-size: 13px; font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 18px;
}
.footer__links li { padding: 5px 0; font-size: 14px; }
.footer__links a:hover { color: var(--c-accent); }
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: var(--transition);
}
.footer__social a:hover { background: var(--c-accent); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
}
.footer__seo { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 6px; }

/* ============= BOTONES FLOTANTES ============= */
.floating-actions {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 90;
  display: flex; flex-direction: column;
  gap: 12px; align-items: center;
}
.floating-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
  transition: var(--transition);
  position: relative;
}
.floating-btn--call { background: var(--c-accent); }
.floating-btn--wa { background: var(--c-whatsapp); width: 64px; height: 64px; }
.floating-btn:hover { transform: scale(1.1); color: #fff; }
.floating-btn__pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--c-whatsapp);
  animation: pulse 2s infinite;
  z-index: -1;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* WhatsApp tooltip estilo original */
.wa-tooltip {
  position: fixed;
  bottom: 30px; right: 100px;
  z-index: 89;
  background: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  font-size: 14px;
  color: var(--c-text);
  max-width: 200px;
  display: none;
}
.wa-tooltip.is-visible { display: block; animation: fadeInUp .4s ease; }
.wa-tooltip strong { display: block; font-weight: 600; }
.wa-tooltip::after {
  content: "";
  position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
  border-left: 8px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
@media (max-width: 768px) { .wa-tooltip { display: none !important; } }

/* ============= UTILS ============= */
.text-center { text-align: center; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 48px; }
.hidden { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============= ANIMACIONES SCROLL-REVEAL ============= */
/* Fallback: si JS no aplica .reveal en 1s (IntersectionObserver bloqueado o
   navegador antiguo), forzar visibilidad. Esto evita que el contenido quede
   invisible en móviles con conexiones lentas. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
  animation: revealFallback 0s linear 2s forwards;
}
.reveal.is-revealed,
.reveal.no-reveal {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}
@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}
/* Variante: zoom suave para imágenes */
.two-col__media.reveal { transform: translateY(20px) scale(.96); }
.two-col__media.reveal.is-revealed { transform: translateY(0) scale(1); }

/* ============= ICONO DE VIDEO PLAY (SVG real) ============= */
/* Se aplica tanto a gallery--video como a two-col__media--video */
.gallery__item--video::after { display: none !important; } /* anular el "+" del item normal */
.two-col__media--video {
  cursor: pointer;
  position: relative;
}
/* Cuando se hace click → reemplaza imagen por iframe inline en el mismo lugar */
.two-col__media--video.is-playing {
  cursor: default;
  aspect-ratio: 16/9;
  background: #000;
}
.two-col__media--video.is-playing .play-overlay { display: none; }
.inline-video-wrap {
  position: absolute;
  inset: 0;
  background: #000;
}
.inline-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.gallery__item--video .play-overlay,
.two-col__media--video .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.25);
  transition: background .3s ease;
  z-index: 3;
  pointer-events: none;
}
.gallery__item--video:hover .play-overlay,
.two-col__media--video:hover .play-overlay { background: rgba(0,0,0,.45); }
.gallery__item--video .play-overlay svg,
.two-col__media--video .play-overlay svg {
  width: 72px; height: 72px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.55));
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.gallery__item--video:hover .play-overlay svg,
.two-col__media--video:hover .play-overlay svg { transform: scale(1.12); }
/* Variante grande para two-col */
.two-col__media--video .play-overlay svg { width: 96px; height: 96px; }
/* Píldora con duración opcional */
.gallery__item--video .play-overlay__label,
.two-col__media--video .play-overlay__label {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(0,0,0,.7);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Lightbox content wrapper para video */
.lightbox__content {
  width: 100%; max-width: 1100px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__content img { max-width: 100%; max-height: 88vh; object-fit: contain; }
.lightbox__content iframe {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 88vh;
  border: 0;
  border-radius: 4px;
}

/* ============= ANIMACIÓN ZOOM SUAVE EN HERO ============= */
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.hero__slide.is-active img {
  animation: heroKenBurns 14s ease-out forwards;
}

/* ============= BLOG ============= */
.blog-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
  width: 100%;
}
@media (min-width: 700px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: var(--transition);
  width: 100%;
  min-width: 0; /* permite que el grid no desborde */
}
.blog-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.07); transform: translateY(-4px); border-color: var(--c-accent); }
.blog-card__image {
  display: block;            /* el <a> es inline por default — esto es crítico para aspect-ratio */
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--c-bg-alt);
  /* Fallback para navegadores sin soporte de aspect-ratio (iOS <15) */
  min-height: 200px;
}
@supports (aspect-ratio: 16/10) {
  .blog-card__image { min-height: 0; }
}
.blog-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
  position: absolute; inset: 0;
}
.blog-card:hover .blog-card__image img { transform: scale(1.06); }
.blog-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card__meta {
  display: flex; gap: 12px; align-items: center;
  font-size: 12px; color: var(--c-text-mute);
  margin-bottom: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.blog-card__meta time { color: var(--c-accent); font-weight: 600; }
.blog-card__title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--c-text);
}
.blog-card__excerpt { color: var(--c-text-soft); font-size: 14px; flex: 1; }
.blog-card__more {
  margin-top: 18px;
  color: var(--c-accent); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: .12em;
  display: inline-flex; align-items: center; gap: 6px;
}
.blog-card__more::after { content: "→"; transition: transform .3s ease; }
.blog-card:hover .blog-card__more::after { transform: translateX(4px); }

/* Single blog post */
.blog-post { max-width: 760px; margin: 0 auto; }
.blog-post__header { text-align: center; margin-bottom: 40px; }
.blog-post__meta {
  font-size: 13px; color: var(--c-text-mute);
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 16px;
}
.blog-post__title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 16px;
}
.blog-post__hero {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 32px;
}
.blog-post__content {
  font-size: 17px;
  line-height: 1.85;
  color: var(--c-text);
}
.blog-post__content h2 {
  font-size: 28px; font-weight: 400;
  margin: 40px 0 16px;
  color: var(--c-text);
}
.blog-post__content h3 {
  font-size: 22px; font-weight: 600;
  margin: 32px 0 12px;
}
.blog-post__content p { margin-bottom: 18px; }
.blog-post__content ul, .blog-post__content ol {
  margin-bottom: 20px; padding-left: 24px;
}
.blog-post__content ul { list-style: disc; }
.blog-post__content ol { list-style: decimal; }
.blog-post__content li { margin-bottom: 8px; }
.blog-post__content a { color: var(--c-accent); border-bottom: 1px solid currentColor; }
.blog-post__content blockquote {
  border-left: 3px solid var(--c-accent);
  padding: 8px 0 8px 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--c-text-soft);
}
.blog-post__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 32px 0;
}
.blog-post__tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--c-bg-alt);
  border-radius: 999px;
  font-size: 12px;
  color: var(--c-text-soft);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Rating GMB badge */
.rating-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--c-text-soft);
}
.rating-badge .stars { color: #ffc20e; letter-spacing: 1px; }
.rating-badge strong { color: var(--c-text); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__slide.is-active { animation: none; transform: scale(1); }
}
