/* ── wrapper-v4.css — Publisitios Design System v4
   Reemplaza liquid-glass.css en todas las páginas de estado/ciudad/medio
   ─────────────────────────────────────────────────────────────────────── */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--fb, 'DM Sans', system-ui, sans-serif);
  color: var(--dk, #060810);
  background: var(--cr, #F4F1EC);
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fd, 'Barlow Condensed', Impact, sans-serif);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1.1;
  color: var(--dk, #060810);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Language toggle — oculto (solo español) ── */
.language-toggle, .top-bar .language-toggle { display: none !important; }
body.en .lang-es, body.es .lang-en { display: none; }
body.en .lang-en, body.es .lang-es { display: block; }
/* Mostrar siempre versión ES */
.lang-es { display: block !important; }
.lang-en { display: none !important; }

/* ── Top bar del wrapper (distinto al prenav global) ── */
.top-bar { display: none !important; }

/* ── Wrapper principal con espacio para navbar fija ── */
body > .hero-banner:first-of-type,
.hero-banner { margin-top: 110px; }

/* ── Hero banner ── */
.hero-banner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 480px;
  margin: 110px auto 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(6,8,16,.15);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 48px;
  background: linear-gradient(to top, rgba(6,8,16,.85) 0%, rgba(6,8,16,.3) 60%, transparent 100%);
}

.hero-content h1, .hero-content h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  margin-bottom: 12px;
}

.hero-content p {
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  max-width: 600px;
  margin-bottom: 20px;
}

.hero-content .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yel, #F5C200);
  color: #0A0A0A;
  font-family: var(--fd, 'Barlow Condensed', Impact, sans-serif);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 12px 24px;
  border-radius: 100px;
  transition: background .2s, transform .2s;
  align-self: flex-start;
}
.hero-content .btn:hover { background: var(--yel-l, #FFD60A); transform: translateY(-2px); }

/* ── Intro section ── */
.intro-section {
  background: #fff;
  border: 1px solid rgba(6,8,16,.07);
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(6,8,16,.06);
  padding: 56px 48px;
  margin: 150px auto 32px;
  max-width: 1200px;
  transition: box-shadow .2s;
}
.intro-section:hover { box-shadow: 0 12px 40px rgba(245,194,0,.12); }

.intro-section .container { max-width: 860px; margin: 0 auto; text-align: center; }

.intro-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 32px;
  position: relative;
  padding-bottom: 20px;
}
.intro-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--yel, #F5C200);
  border-radius: 2px;
}

.intro-section h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  margin: 40px 0 16px;
  color: var(--dk, #060810);
}

.intro-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(6,8,16,.65);
  margin-bottom: 20px;
}

/* Collage grid inside intro */
.collage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.collage-item {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.collage-item img { width: 100%; height: 100%; object-fit: cover; }

/* ── Pricing section ── */
.pricing-section {
  padding: 56px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  padding-bottom: 20px;
}
.pricing-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--yel, #F5C200);
  border-radius: 2px;
}

.pricing-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
}

.left-column {
  flex: 1 1 600px;
  max-width: 820px;
}

.pricing-section table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(6,8,16,.08);
  margin-bottom: 40px;
  background: #fff;
  border: 1px solid rgba(6,8,16,.08);
}

.pricing-section th {
  padding: 16px 20px;
  background: var(--dk, #060810);
  color: #fff;
  font-family: var(--fd, 'Barlow Condensed', Impact, sans-serif);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .85rem;
  text-align: left;
}

.pricing-section td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(6,8,16,.06);
  color: rgba(6,8,16,.75);
  font-size: .9rem;
  background: #fff;
  transition: background .15s;
}

.pricing-section tbody tr:hover td { background: rgba(245,194,0,.06); }
.pricing-section tbody tr:last-child td { border-bottom: none; }

/* CTA inline pricing */
.cta-inline-pricing {
  text-align: center;
  margin: 24px 0;
}
.cta-inline-pricing a {
  display: inline-block;
  background: var(--yel, #F5C200);
  color: #0A0A0A;
  font-family: var(--fd, 'Barlow Condensed', Impact, sans-serif);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 1.05rem;
  transition: background .2s, transform .2s;
}
.cta-inline-pricing a:hover { background: var(--yel-l, #FFD60A); transform: translateY(-2px); }

/* ── FAQ items ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: #fff;
  border: 1px solid rgba(6,8,16,.08);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s;
  box-shadow: 0 2px 8px rgba(6,8,16,.05);
}
.faq-item:hover { box-shadow: 0 6px 20px rgba(245,194,0,.12); }

.faq-question {
  font-family: var(--fd, 'Barlow Condensed', Impact, sans-serif);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 1rem;
  color: var(--dk, #060810);
  padding: 18px 20px;
  background: rgba(6,8,16,.03);
  border-bottom: 1px solid rgba(6,8,16,.07);
  margin: 0;
}

.faq-item p:not(.faq-question) {
  margin: 0;
  padding: 16px 20px;
  color: rgba(6,8,16,.6);
  line-height: 1.7;
  font-size: .9rem;
}

/* ── Form container ── */
.form-container-pricing {
  flex: 0 1 380px;
  background: #fff;
  border: 1px solid rgba(6,8,16,.08);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 6px 24px rgba(6,8,16,.08);
  transition: box-shadow .2s;
}
.form-container-pricing:hover { box-shadow: 0 12px 36px rgba(245,194,0,.12); }

/* ── Services section ── */
.services-section {
  padding: 56px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.services-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  padding-bottom: 20px;
}
.services-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--yel, #F5C200);
  border-radius: 2px;
}

.services-section .row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.services-section .col {
  flex: 0 1 calc(33.333% - 16px);
  min-width: 220px;
}

.service-card {
  background: #fff;
  border: 1px solid rgba(6,8,16,.08);
  border-radius: 16px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  color: var(--dk, #060810);
  box-shadow: 0 4px 16px rgba(6,8,16,.06);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  height: 100%;
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(245,194,0,.2);
  border-color: rgba(245,194,0,.4);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--yel, #F5C200);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #0A0A0A;
  transition: transform .2s;
  -webkit-text-fill-color: #0A0A0A;
  background-clip: unset;
  -webkit-background-clip: unset;
}
.service-card:hover .service-icon { transform: scale(1.08); }

.service-card h5 {
  font-size: .9rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--dk, #060810);
  font-family: var(--fb, 'DM Sans', system-ui, sans-serif);
}

/* ── Sticky CTA button — amarillo v4 ── */
.sticky-cta-btn {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 6000;
  background: var(--yel, #F5C200);
  color: #0A0A0A !important;
  font-family: var(--fd, 'Barlow Condensed', Impact, sans-serif);
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 14px 24px;
  border-radius: 100px;
  box-shadow: 0 4px 18px rgba(245,194,0,.4);
  transition: background .2s, transform .2s, opacity .3s;
  opacity: 0;
  pointer-events: none;
}
.sticky-cta-btn.visible { opacity: 1; pointer-events: auto; }
.sticky-cta-btn:hover { background: var(--yel-l, #FFD60A); transform: translateY(-2px); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-banner { height: 360px; margin-top: 100px; border-radius: 14px; }
  .hero-content { padding: 28px 28px; }
  .intro-section { padding: 40px 28px; }
  .pricing-row { flex-direction: column; align-items: center; }
  .form-container-pricing { width: 100%; max-width: 100%; }
}

@media (max-width: 640px) {
  .hero-banner { height: 280px; border-radius: 10px; }
  .hero-content { padding: 20px; }
  .hero-content h1, .hero-content h2 { font-size: 1.6rem; }
  .intro-section { padding: 28px 20px; border-radius: 14px; }
  .pricing-section, .services-section { padding: 40px 16px; }
  .services-section .col { flex: 0 1 calc(50% - 10px); min-width: 140px; }
  .sticky-cta-btn { bottom: 16px; right: 12px; left: 12px; text-align: center; border-radius: 12px; }
}

/* ── Ocultar nav/footer viejos si quedaran ── */
.navbar, nav.navbar, footer.footer, .footer-old { display: none !important; }

/* ── Layout estado/ciudad (2 columnas) ── */
main.container.layout,
.container.layout {
  display: flex;
  gap: 32px;
  max-width: 1200px;
  margin: 150px auto 32px;
  padding: 0 24px;
  align-items: flex-start;
}

.main-content {
  flex: 1 1 0;
  min-width: 0;
}

.sidebar {
  flex: 0 0 340px;
  width: 340px;
}

.sidebar iframe {
  width: 100%;
  border: none;
  border-radius: 16px;
  min-height: 600px;
  box-shadow: 0 6px 24px rgba(6,8,16,.08);
}

/* ── Grid de servicios / ciudades ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.services-grid.large {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.service-item {
  background: #fff;
  border: 1px solid rgba(6,8,16,.08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  box-shadow: 0 4px 16px rgba(6,8,16,.06);
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(245,194,0,.2);
  border-color: rgba(245,194,0,.4);
}

.service-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px;
  text-align: center;
  color: var(--dk, #060810);
  cursor: pointer;
}

.service-item i {
  font-size: 2rem;
  color: var(--yel, #F5C200);
  -webkit-text-fill-color: var(--yel, #F5C200);
  background-clip: unset;
  -webkit-background-clip: unset;
}

.service-item span {
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ── Selector de ciudad ── */
.form-city {
  margin: 24px 0;
}

.form-city select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(6,8,16,.15);
  border-radius: 10px;
  background: #fff;
  color: var(--dk, #060810);
  font-size: .95rem;
  cursor: pointer;
}

.form-city select:focus {
  outline: none;
  border-color: var(--yel, #F5C200);
  box-shadow: 0 0 0 3px rgba(245,194,0,.2);
}

/* ── Directorio de ciudades ── */
.cities-directory {
  margin-top: 32px;
}

.cities-directory h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 20px;
  padding-bottom: 12px;
  position: relative;
}

.cities-directory h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--yel, #F5C200);
  border-radius: 2px;
}

/* ── Responsive layout estado/ciudad ── */
@media (max-width: 900px) {
  main.container.layout,
  .container.layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex: none;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }
  .services-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .service-item a { padding: 16px 10px; }
}
