/*=============================================================================
  RUWEN — Sitio multipágina (upgrade 2026)
  Va después de style.css. Acá vive todo lo nuevo: navegación con submenú,
  bento de servicios con micro-demos, páginas internas, contacto y la capa
  de interacciones de desktop. El hero no se toca desde este archivo.
=============================================================================*/

/* [hidden] tiene que ganarle a cualquier display de componente (.field es flex) */
[hidden] { display: none !important; }

/* ---- Revelado al scrollear ----
   Solo se oculta si el JS está vivo (html.js lo pone un script inline en el
   <head>): sin JS el contenido se ve igual. */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0s);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

/*=========================================
  NAV — submenú de Servicios
=========================================*/
.nav-links { align-items: center; }
.nav-item { position: relative; }
.nav-link-caret {
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.3s ease;
}
.nav-item.has-menu:hover .nav-link-caret,
.nav-item.has-menu:focus-within .nav-link-caret { transform: translateY(0) rotate(-135deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + 24px);
  left: 50%;
  width: 580px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: rgba(20, 34, 41, 0.97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
/* Puente invisible: sin él, el submenú se cierra al cruzar el hueco */
.nav-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -26px; height: 26px; }
.nav-item.has-menu:hover .nav-menu,
.nav-item.has-menu:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-menu a {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  transition: background 0.2s ease;
}
.nav-menu a:hover, .nav-menu a:focus-visible { background: rgba(255,255,255,0.06); outline: none; }
.nav-menu-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(219,48,41,0.14);
  color: var(--accent-color);
  display: grid;
  place-items: center;
}
.nav-menu-icon svg { width: 18px; height: 18px; }
.nav-menu strong {
  display: block;
  font-family: var(--font-title);
  font-size: 0.88rem;
  color: #fff;
  margin-bottom: 2px;
}
.nav-menu small { display: block; font-size: 0.76rem; line-height: 1.45; color: rgba(255,255,255,0.55); }

/* Drawer móvil: submenú siempre abierto e indentado */
.mobile-nav-drawer { overflow-y: auto; }
.mobile-nav-drawer .mobile-sub { padding-left: 14px; display: flex; flex-direction: column; }
.mobile-nav-drawer .mobile-sub a { font-size: 0.95rem !important; color: rgba(255,255,255,0.6) !important; }
.mobile-nav-drawer a.is-current { color: var(--accent-color) !important; }

/*=========================================
  SERVICIOS — BENTO CON MICRO-DEMOS
=========================================*/
.services-section {
  position: relative;
  background:
    radial-gradient(circle at 15% 0%, rgba(219,48,41,0.06), transparent 40%),
    var(--bg-light);
  overflow: hidden;
}
/* Retícula técnica muy tenue de fondo */
.services-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27,48,57,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,48,57,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.services-section .container { position: relative; }
.section-header.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
  text-align: left;
}
.section-header.split .section-subtitle { margin: 0; }
.section-title .accent-word { color: var(--accent-color); }

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.bento > .bento-card:not(.bento-cta) { min-height: 300px; }
.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(27,48,57,0.08);
  border-radius: 24px;
  overflow: hidden;
  color: inherit;
  box-shadow: 0 1px 0 rgba(27,48,57,0.04), 0 12px 40px rgba(27,48,57,0.06);
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bento-card:hover {
  border-color: rgba(219,48,41,0.25);
  box-shadow: 0 1px 0 rgba(27,48,57,0.04), 0 30px 70px rgba(27,48,57,0.12);
}
.bento-card:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 3px; }
.bento-card.dark {
  background: linear-gradient(160deg, #1f3a45 0%, var(--bg-dark) 55%, #13242b 100%);
  border-color: rgba(255,255,255,0.06);
}

.bento-web   { grid-column: span 4; flex-direction: row; }
.bento-ia    { grid-column: span 2; grid-row: span 2; }
.bento-ads   { grid-column: span 2; }
.bento-brand { grid-column: span 2; }

.bento-body {
  position: relative;
  z-index: 2;
  padding: 30px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bento-web .bento-body { flex: 0 0 42%; justify-content: center; }
.bento-num {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-color);
}
.bento-card h3 { font-size: 1.35rem; letter-spacing: -0.3px; }
.bento-card.dark h3 { color: #fff; }
.bento-card p { font-size: 0.95rem; color: var(--text-dark); line-height: 1.6; }
.bento-card.dark p { color: rgba(255,255,255,0.68); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--bg-dark);
  background: rgba(27,48,57,0.06);
  border: 1px solid rgba(27,48,57,0.08);
}
.dark .chip, .bg-dark .chip { color: rgba(255,255,255,0.78); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }
.bento-link {
  margin-top: auto;
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-color);
}
.bento-link .arrow { transition: transform 0.3s ease; }
.bento-card:hover .bento-link .arrow { transform: translateX(5px); }

.bento-demo {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, #f3f6f9, #eaf0f4);
}
.bento-web .bento-demo { padding: 28px 28px 28px 0; background: none; }
.bento-ia .bento-demo { background: none; align-items: flex-start; padding: 0 22px 22px; }
/* El chat ocupa todo el alto de la tarjeta: el hilo crece y el workflow queda al pie */
.bento-ia .bento-demo { align-items: stretch; }
.bento-ia .demo-chat { display: flex; flex-direction: column; }
.bento-ia .dc-thread { flex: 1; }
.bento-cta {
  grid-column: span 6;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 34px;
  background: var(--bg-dark);
  border-color: transparent;
}
.bento-cta h3 { color: #fff; font-size: 1.25rem; }
.bento-cta p { color: rgba(255,255,255,0.65); margin-top: 4px; }
.bento-cta .btn { flex-shrink: 0; position: relative; z-index: 4; }

/* Etiqueta de las piezas ilustrativas */
.demo-tag {
  position: absolute;
  top: 12px; right: 14px;
  z-index: 4;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(27,48,57,0.4);
}
.dark .demo-tag, .page-hero .demo-tag { color: rgba(255,255,255,0.35); }
.page-hero-demo.light .demo-tag { color: rgba(27,48,57,0.4); }

/* Estado de los pasos de una demo: data-step="n" se enciende cuando
   js/ui.js llega al paso n. Cada demo define cómo entra cada pieza. */
[data-step] { transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.4s ease, box-shadow 0.4s ease; }

/* ---- Demo 01: navegador que se arma solo ---- */
.demo-browser {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(27,48,57,0.1);
  box-shadow: 0 24px 50px rgba(27,48,57,0.14);
  overflow: hidden;
  position: relative;
}
.db-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #f1f4f7;
  border-bottom: 1px solid rgba(27,48,57,0.07);
}
.db-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d5dbe0; }
.db-bar i:first-child { background: #ff6159; }
.db-bar i:nth-child(2) { background: #ffbd2e; }
.db-bar i:nth-child(3) { background: #28c941; }
.db-url {
  margin-left: 10px;
  flex: 1;
  font-size: 0.66rem;
  color: rgba(27,48,57,0.55);
  background: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.db-page { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.db-nav { display: flex; align-items: center; justify-content: space-between; }
.db-logo {
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--bg-dark);
}
.db-links { display: flex; gap: 8px; }
.db-links i { width: 26px; height: 5px; border-radius: 3px; background: #dfe5ea; }
.db-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
  align-items: center;
}
.db-lines { display: flex; flex-direction: column; gap: 7px; }
.db-line { height: 9px; border-radius: 5px; background: var(--bg-dark); width: 0; }
.db-line.l3, .db-line.l4 { height: 6px; background: #d5dce2; }
.db-btn {
  margin-top: 6px;
  width: 74px; height: 22px;
  border-radius: 6px;
  background: var(--accent-color);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(219,48,41,0.35);
}
.db-img {
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #8fb4c9 0%, #cfe0ea 60%, #e9f0f4 100%);
  position: relative;
}
.db-img svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 70%; }
.db-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.db-cards i { height: 34px; border-radius: 8px; background: #f0f3f6; border: 1px solid rgba(27,48,57,0.06); }
.db-score {
  position: absolute;
  right: 12px; bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px 7px 8px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(27,48,57,0.18);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--bg-dark);
}
.db-ring {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: conic-gradient(#0cce6b calc(var(--p, 0) * 1%), #e3f7ec 0);
  display: grid;
  place-items: center;
}
.db-ring span {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 0.56rem;
  font-weight: 800;
  color: #0a9d52;
}

.demo-browser [data-step] { opacity: 0; transform: translateY(8px); }
.demo-browser [data-step].on { opacity: 1; transform: none; }
.demo-browser .db-line[data-step] { opacity: 1; transform: none; }
.demo-browser .db-line.on.l1 { width: 92%; }
.demo-browser .db-line.on.l2 { width: 64%; }
.demo-browser .db-line.on.l3 { width: 100%; }
.demo-browser .db-line.on.l4 { width: 78%; }
.demo-browser .db-score[data-step] { transform: translateY(10px) scale(0.9); }
.demo-browser .db-score.on { transform: none; }

/* ---- Demo 02: chat de WhatsApp atendido por IA + workflow ---- */
.demo-chat {
  width: 100%;
  border-radius: 18px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
}
.dc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dc-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-size: 0.56rem;
  font-weight: 800;
}
.dc-name { font-size: 0.78rem; font-weight: 600; color: #fff; line-height: 1.2; }
.dc-status { font-size: 0.64rem; color: #25d366; }
.dc-thread { padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 250px; }
.msg {
  max-width: 84%;
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 0.74rem;
  line-height: 1.45;
}
.msg.in  { align-self: flex-start; background: rgba(255,255,255,0.09); color: rgba(255,255,255,0.88); border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; background: #1f6f54; color: #eafff4; border-bottom-right-radius: 4px; }
.msg.typing { align-self: flex-end; gap: 4px; padding: 11px 12px; background: #1f6f54; }
.msg.typing i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.7); animation: typingDot 1s infinite ease-in-out; }
.msg.typing i:nth-child(2) { animation-delay: 0.15s; }
.msg.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.demo-chat .msg[data-step] { opacity: 0; transform: translateY(10px) scale(0.96); }
.demo-chat .msg[data-step].on { opacity: 1; transform: none; }
/* El "escribiendo…" ocupa lugar solo en su paso (data-until lo apaga) */
.demo-chat .msg.typing { display: none; }
.demo-chat .msg.typing.on { display: flex; }

.dc-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.025);
}
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.flow-node b {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.flow-node b svg { width: 15px; height: 15px; }
.flow-node.on { color: #fff; }
.flow-node.on b { background: var(--accent-color); border-color: var(--accent-color); color: #fff; box-shadow: 0 0 18px rgba(219,48,41,0.55); }
.flow-wire { flex: 1; height: 2px; margin: 0 6px 18px; background: rgba(255,255,255,0.08); position: relative; overflow: hidden; border-radius: 2px; }
.flow-wire::after { content: ''; position: absolute; inset: 0; background: var(--accent-color); transform: scaleX(0); transform-origin: left; transition: transform 0.6s ease; }
.flow-wire.on::after { transform: scaleX(1); }

/* ---- Demo 03: métricas de campaña ---- */
.demo-ads { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 12px; }
.da-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.da-kpi {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(27,48,57,0.07);
  box-shadow: 0 6px 16px rgba(27,48,57,0.06);
}
.da-kpi small { display: block; font-size: 0.6rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(27,48,57,0.5); }
.da-kpi strong { font-family: var(--font-title); font-size: 1.35rem; color: var(--bg-dark); letter-spacing: -0.5px; }
.da-kpi strong.up { color: #0a9d52; }
.da-chart {
  height: 92px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(27,48,57,0.07);
}
.da-chart i {
  flex: 1;
  height: 6%;
  border-radius: 4px 4px 2px 2px;
  background: rgba(27,48,57,0.14);
  transition: height 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.da-chart i:last-child, .da-chart i:nth-last-child(2) { background: var(--accent-color); }
.da-chart.on i { height: var(--h); }
.da-sources { display: flex; gap: 6px; }
.da-sources span {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(27,48,57,0.08);
  color: rgba(27,48,57,0.4);
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}
.da-sources span.on { color: #fff; background: var(--bg-dark); border-color: var(--bg-dark); }

/* ---- Demo 04: sistema de marca ---- */
.demo-brand { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 12px; }
.dbr-mark {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(27,48,57,0.07);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dbr-symbol {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-dark);
  display: grid;
  place-items: center;
  transition: border-radius 0.6s ease, background-color 0.6s ease, transform 0.6s ease;
}
.dbr-symbol svg { width: 22px; height: 22px; color: #fff; }
.dbr-symbol.on { border-radius: 50%; background: var(--accent-color); transform: rotate(-8deg); }
.dbr-word {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--bg-dark);
  white-space: nowrap;
  transition: letter-spacing 0.7s ease;
}
.dbr-word.on { letter-spacing: 3px; font-weight: 800; }
.dbr-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }
.dbr-palette { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dbr-palette i { aspect-ratio: 1; border-radius: 8px; }
.demo-brand .dbr-palette i[data-step] { opacity: 0; transform: scale(0.6); }
.demo-brand .dbr-palette i.on { opacity: 1; transform: none; }
.dbr-type {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(27,48,57,0.07);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dbr-type b { font-family: var(--font-title); font-size: 1.9rem; line-height: 1; color: var(--bg-dark); }
.dbr-type span { font-size: 0.6rem; color: rgba(27,48,57,0.5); letter-spacing: 1px; text-transform: uppercase; margin-top: 6px; }
.demo-brand .dbr-type[data-step] { opacity: 0; transform: translateX(10px); }
.demo-brand .dbr-type.on { opacity: 1; transform: none; }

/* Con movimiento reducido las demos muestran su estado final, quietas */
@media (prefers-reduced-motion: reduce) {
  [data-step] { transition: none !important; }
  .msg.typing i { animation: none; }
}

/*=========================================
  CÓMO TRABAJAMOS — proceso en 4 pasos
=========================================*/
.process-section { background: #fff; }
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.process::before, .process::after {
  content: '';
  position: absolute;
  top: 23px; left: 24px; right: 24px;
  height: 2px;
  background: rgba(27,48,57,0.1);
}
.process::after {
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s cubic-bezier(0.6, 0, 0.2, 1) 0.2s;
}
.process.is-in::after { transform: scaleX(1); }
.process-step { position: relative; z-index: 1; }
.process-dot {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(27,48,57,0.12);
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--bg-dark);
  margin-bottom: 22px;
  transition: border-color 0.4s ease, background-color 0.4s ease, color 0.4s ease;
  transition-delay: calc(var(--i, 0) * 0.35s + 0.3s);
}
.process.is-in .process-dot { border-color: var(--accent-color); background: var(--accent-color); color: #fff; }
.process-step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.process-step p { font-size: 0.92rem; color: var(--text-dark); }
.bg-dark .process-dot { background: var(--bg-dark); border-color: rgba(255,255,255,0.15); color: #fff; }
.bg-dark .process::before { background: rgba(255,255,255,0.1); }
.bg-dark .process-step h3 { color: #fff; }
.bg-dark .process-step p { color: rgba(255,255,255,0.65); }

/*=========================================
  FRANJAS — Turismo (home) y Portfolio
=========================================*/
.band-turismo {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
  background: var(--bg-dark);
}
.band-turismo-bg {
  position: absolute;
  inset: -60px 0;
  background: url('../hero/opt/d-03-last.webp') center / cover no-repeat;
  transform: translateY(var(--parallax, 0px));
  will-change: transform;
}
.band-turismo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,20,25,0.93) 0%, rgba(10,20,25,0.72) 50%, rgba(10,20,25,0.25) 100%);
}
.band-turismo .container { position: relative; z-index: 1; }
.band-turismo-inner { max-width: 640px; }
.band-turismo h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -1px; margin-bottom: 18px; }
.band-turismo p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 28px; }
.band-points { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.band-points span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.band-portfolio { padding: 100px 0; }
.portfolio-cta {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 52px 56px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--accent-color) 0%, #b8231d 100%);
  color: #fff;
  box-shadow: 0 30px 70px rgba(219,48,41,0.25);
}
.portfolio-cta::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 50px solid rgba(255,255,255,0.08);
}
.portfolio-cta > * { position: relative; }
.portfolio-cta .eyebrow-label { color: rgba(255,255,255,0.85); opacity: 1; }
.portfolio-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
.portfolio-cta p { color: rgba(255,255,255,0.88); }
.portfolio-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.portfolio-cta-actions small { color: rgba(255,255,255,0.78); font-size: 0.8rem; }
/* Botón claro sobre fondo rojo: misma tecla, en blanco */
.btn-light {
  color: var(--accent-color);
  background: linear-gradient(180deg, #ffffff 0%, #f6f1f0 100%);
  box-shadow: inset 0 1px 0 #fff, 0 4px 0 #a8211b, 0 12px 24px rgba(0,0,0,0.18);
}
.btn-light:hover { color: var(--accent-color); translate: 0 -2px; box-shadow: inset 0 1px 0 #fff, 0 6px 0 #a8211b, 0 18px 30px rgba(0,0,0,0.24); }
.btn-light::after { background: linear-gradient(100deg, transparent, rgba(219,48,41,0.12), transparent); }

/*=========================================
  PÁGINAS INTERNAS — hero de página
=========================================*/
.page-hero {
  position: relative;
  padding: 170px 0 100px;
  background: var(--bg-dark);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(219,48,41,0.18), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(80,140,165,0.18), transparent 45%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 26px;
}
.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: #fff; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.06;
  margin-bottom: 22px;
}
.page-hero .lead { font-size: 1.12rem; color: rgba(255,255,255,0.72); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Secundario sobre fondo oscuro: vidrio esmerilado */
.btn-outline-light {
  color: #fff;
  background: rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 0 0 1px rgba(255,255,255,0.16);
}
.btn-outline-light:hover {
  color: #fff;
  background: rgba(255,255,255,0.14);
  translate: 0 -2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 0 1px rgba(255,255,255,0.28), 0 12px 24px rgba(0,0,0,0.2);
}
.page-hero-demo {
  position: relative;
  border-radius: 26px;
  padding: 40px 34px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: center;
}
.page-hero-demo.light { background: linear-gradient(180deg, #f3f6f9, #e6edf2); border-color: transparent; }
.page-hero-demo .demo-ads,
.page-hero-demo .demo-brand { max-width: 380px; }
.page-hero-demo .demo-chat { max-width: 400px; }

/* Hero de Turismo: video de fondo, reutiliza el loop de "Experience" */
.page-hero.has-media { padding: 200px 0 130px; min-height: 88vh; display: flex; align-items: center; }
.page-hero.has-media .container { width: 90%; }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media video,
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-media::before {
  z-index: 1;
  background: linear-gradient(100deg, rgba(10,20,25,0.92) 0%, rgba(10,20,25,0.6) 55%, rgba(10,20,25,0.25) 100%);
}
.page-hero.has-media h1 { max-width: 760px; }
.page-hero.has-media .lead { max-width: 600px; }

/* Barra de propuestas de valor bajo un hero */
.value-strip { background: #fff; border-bottom: 1px solid rgba(27,48,57,0.06); }
.value-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.value-item { padding: 34px 28px; display: flex; gap: 16px; align-items: center; }
.value-item + .value-item { border-left: 1px solid rgba(27,48,57,0.07); }
.value-item strong {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-color);
  letter-spacing: -1px;
  line-height: 1;
  flex-shrink: 0;
}
.value-item span { font-size: 0.9rem; color: var(--text-dark); line-height: 1.45; }

/*=========================================
  PÁGINA DE SERVICIO — bloques
=========================================*/
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  position: relative;
  padding: 30px 28px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(27,48,57,0.07);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(27,48,57,0.1); border-color: rgba(219,48,41,0.25); }
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: rgba(219,48,41,0.08);
  color: var(--accent-color);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { font-size: 0.92rem; color: var(--text-dark); }
.bg-dark .feature { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.bg-dark .feature:hover { background: rgba(255,255,255,0.07); box-shadow: none; }
.bg-dark .feature h3 { color: #fff; }
.bg-dark .feature p { color: rgba(255,255,255,0.65); }
.bg-dark .feature-icon { background: rgba(219,48,41,0.15); }
.feature.highlight { background: rgba(219,48,41,0.1); border-color: rgba(219,48,41,0.35); }
.feature-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }

.split-block {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.split-block .section-title { margin-bottom: 16px; }
.split-block > div > p { color: var(--text-dark); }
.audience-list { display: flex; flex-direction: column; gap: 12px; }
.audience-list li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(27,48,57,0.07);
  font-weight: 500;
  color: var(--bg-dark);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.audience-list li:hover { transform: translateX(6px); border-color: rgba(219,48,41,0.3); }
.audience-list li::before {
  content: '';
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-color) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.measure-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.measure {
  padding: 20px;
  border-radius: 16px;
  background: var(--bg-dark);
  color: #fff;
}
.measure b { display: block; font-family: var(--font-title); font-size: 0.98rem; margin-bottom: 4px; }
.measure span { font-size: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.45; display: block; }

/* FAQ con <details> nativo */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid rgba(27,48,57,0.08);
  border-radius: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq details[open] { border-color: rgba(219,48,41,0.3); box-shadow: 0 14px 40px rgba(27,48,57,0.07); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 64px 22px 24px;
  position: relative;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--bg-dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(219,48,41,0.08);
  color: var(--accent-color);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--text-dark); font-size: 0.95rem; }

/* Otros servicios */
.more-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.more-service {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.more-service:hover { background: rgba(255,255,255,0.08); transform: translateY(-4px); border-color: rgba(219,48,41,0.4); }
.more-service small { font-size: 0.7rem; letter-spacing: 2px; color: var(--accent-color); font-weight: 700; }
.more-service strong { font-family: var(--font-title); color: #fff; font-size: 1.05rem; }
.more-service span { font-size: 0.86rem; color: rgba(255,255,255,0.6); }

/*=========================================
  TURISMO — widget de reservas directas
=========================================*/
.booking-demo {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  color: var(--bg-dark);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.bk-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.bk-head b { font-family: var(--font-title); font-size: 0.82rem; letter-spacing: 1px; }
.bk-head span { font-size: 0.66rem; font-weight: 700; color: #0a9d52; background: #e3f7ec; padding: 4px 9px; border-radius: 999px; }
.bk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.bk-field { border: 1px solid rgba(27,48,57,0.12); border-radius: 10px; padding: 8px 10px; }
.bk-field small { display: block; font-size: 0.56rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(27,48,57,0.5); }
.bk-field strong { font-size: 0.8rem; }
.bk-compare { display: grid; gap: 6px; margin: 12px 0; }
.bk-row { display: flex; justify-content: space-between; font-size: 0.74rem; padding: 7px 10px; border-radius: 8px; background: #f3f6f9; }
.bk-row.bad span:last-child { color: #c0392b; font-weight: 700; }
.bk-row.good { background: #e3f7ec; }
.bk-row.good span:last-child { color: #0a9d52; font-weight: 700; }
.bk-btn { width: 100%; text-align: center; padding: 10px; border-radius: 10px; background: var(--accent-color); color: #fff; font-weight: 700; font-size: 0.8rem; }

/* Anfitrión local */
.host-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 70px rgba(27,48,57,0.12);
}
.host-split-media { position: relative; min-height: 440px; background: var(--bg-dark); }
.host-split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.host-split-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,20,25,0.78), transparent 45%); }
.host-split-media span {
  position: absolute;
  left: 24px; bottom: 22px;
  z-index: 1;
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.4;
}
.host-split-media span b { display: block; font-family: var(--font-title); font-size: 1.15rem; }
.host-split-body { padding: 52px 48px; }
.host-split-body h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.host-split-body p { color: var(--text-dark); margin-bottom: 16px; }
.host-zones { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 28px; }

/*=========================================
  TURISMO — Meliquina Natural (rediseño)
=========================================*/
.mel-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f1ec 0%, #efe9e1 100%);
}
.mel-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.mel-copy h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -1px; margin-bottom: 20px; }
.mel-copy h2 em { font-style: normal; color: var(--accent-color); }
.mel-copy > p { color: var(--text-dark); margin-bottom: 16px; }
.mel-steps { display: flex; flex-direction: column; margin: 26px 0 34px; }
.mel-step {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(27,48,57,0.1);
}
.mel-step b {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-dark);
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-size: 0.8rem;
  color: var(--bg-dark);
}
.mel-step span { font-weight: 500; color: var(--bg-dark); }
.mel-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.mel-stage {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg-dark);
  box-shadow: 0 40px 90px rgba(27,48,57,0.3);
}
.mel-photo { position: relative; aspect-ratio: 5 / 4; background: #f1f1f1; }
.mel-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.mel-stage-badge {
  position: absolute;
  top: 20px; left: 20px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-color);
  padding: 6px 12px;
  border-radius: 999px;
}
.mel-photo-chip {
  position: absolute;
  right: 20px; bottom: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--bg-dark);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(27,48,57,0.12);
}
.mel-panel { padding: 22px 24px 20px; }
@keyframes melFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.mel-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mel-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.55);
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.mel-tab img { width: 38px; height: 38px; object-fit: contain; opacity: 0.75; transition: opacity 0.3s ease, transform 0.3s ease; }
.mel-tab:hover img, .mel-tab.is-active img { opacity: 1; transform: translateY(-2px); }
.mel-tab.is-active { background: rgba(255,255,255,0.1); border-color: rgba(219,48,41,0.6); color: #fff; }
.mel-tab:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }
.mel-desc { transition: opacity 0.2s ease; margin-top: 14px; min-height: 44px; font-size: 0.86rem; color: rgba(255,255,255,0.72); text-align: center; }

/*=========================================
  CONTACTO — formulario
=========================================*/
.contact-section { padding: 150px 0 100px; background: var(--bg-light); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 90px rgba(27,48,57,0.12);
}
.contact-aside {
  position: relative;
  padding: 56px 46px;
  background: var(--bg-dark);
  color: #fff;
  overflow: hidden;
}
.contact-aside::before {
  content: '';
  position: absolute;
  right: -120px; bottom: -120px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219,48,41,0.3), transparent 65%);
}
.contact-aside > * { position: relative; }
.contact-aside h1 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -1px; margin-bottom: 16px; }
.contact-aside > p { color: rgba(255,255,255,0.7); margin-bottom: 34px; }
.next-steps { display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; }
.next-steps li { display: flex; gap: 14px; }
.next-steps b {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(219,48,41,0.18);
  color: var(--accent-color);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}
.next-steps strong { display: block; color: #fff; font-size: 0.95rem; }
.next-steps span { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.contact-direct { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); }
.contact-direct a { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.85); font-size: 0.92rem; transition: color 0.2s; }
.contact-direct a:hover { color: #fff; }
.contact-direct svg { width: 18px; height: 18px; color: var(--accent-color); flex-shrink: 0; }

.contact-form-wrap { padding: 52px 50px; position: relative; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; border: none; }
.field label, .field legend {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bg-dark);
  letter-spacing: 0.3px;
  padding: 0;
  margin-bottom: 0;
}
.field legend { margin-bottom: 8px; }
.field .opt { font-weight: 400; color: rgba(27,48,57,0.5); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--bg-dark);
  background: var(--bg-light);
  border: 1.5px solid rgba(27,48,57,0.1);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(219,48,41,0.1);
}
.field.has-error input, .field.has-error textarea { border-color: #c0392b; }
.field-error { font-size: 0.75rem; color: #c0392b; }
.field-error:empty { display: none; }

/* Selectores tipo píldora (radio y checkbox) */
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-group.segmented { display: grid; grid-template-columns: repeat(3, 1fr); }
.pill-group.segmented.two { grid-template-columns: repeat(2, 1fr); }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.pill span {
  display: block;
  height: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(27,48,57,0.12);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bg-dark);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.pill span:hover { border-color: rgba(219,48,41,0.4); }
.pill input:checked + span { border-color: var(--accent-color); background: rgba(219,48,41,0.07); color: var(--accent-color); font-weight: 600; }
.pill input:focus-visible + span { box-shadow: 0 0 0 4px rgba(219,48,41,0.15); }
.segmented .pill span strong { display: block; font-size: 0.88rem; }
.segmented .pill span small { display: block; font-size: 0.7rem; opacity: 0.75; font-weight: 400; margin-top: 2px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 8px; }
.form-foot small { font-size: 0.75rem; color: rgba(27,48,57,0.55); max-width: 300px; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.form-status { margin-top: 14px; font-size: 0.88rem; }
.form-status:empty { display: none; }
.form-status.error { color: #c0392b; }

.form-success { display: none; text-align: center; padding: 60px 20px; }
.form-success.is-visible { display: block; animation: successIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.form-success .check {
  width: 74px; height: 74px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--accent-color);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 40px rgba(219,48,41,0.35);
}
.form-success .check svg { width: 34px; height: 34px; color: #fff; }
.form-success h2 { font-size: 1.8rem; margin-bottom: 10px; }
.form-success p { color: var(--text-dark); max-width: 420px; margin: 0 auto 24px; }
@keyframes successIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/*=========================================
  FOOTER — columnas de navegación
=========================================*/
.footer-nav {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand img { height: 36px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.88rem; max-width: 280px; }
.footer-col h4 {
  font-size: 0.72rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.72); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }

/*=========================================
  WHATSAPP — burbuja "Hola, hablemos!"
=========================================*/
.wa-bubble {
  position: fixed;
  right: 100px;
  bottom: 40px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 270px;
  padding: 12px 12px 12px 16px;
  background: #fff;
  color: var(--bg-dark);
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 14px 40px rgba(27,48,57,0.22);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px) scale(0.92);
  transform-origin: right bottom;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3), visibility 0.35s;
}
.wa-bubble.is-visible { opacity: 1; visibility: visible; transform: none; }
.wa-bubble-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 4px rgba(37,211,102,0.2); }
.wa-bubble-close {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(27,48,57,0.07);
  color: rgba(27,48,57,0.6);
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
}
.wa-bubble-close:hover { background: rgba(27,48,57,0.14); }
/* Pulso del botón mientras la burbuja está visible */
.whatsapp-float.is-calling::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: waRing 1.6s ease-out infinite;
}
@keyframes waRing { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.6); opacity: 0; } }

/*=========================================
  RESPONSIVE
=========================================*/
@media (max-width: 1100px) {
  .nav-links { gap: 26px; }
}
@media (max-width: 992px) {
  .section-header.split { grid-template-columns: 1fr; gap: 16px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-web { grid-column: span 2; }
  .bento-ia { grid-column: span 1; grid-row: span 2; }
  .bento-ads, .bento-brand { grid-column: span 1; }
  .bento-cta { grid-column: span 2; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process::before, .process::after { display: none; }
  .page-hero-grid, .split-block, .mel-grid, .host-split, .contact-grid { grid-template-columns: 1fr; }
  .page-hero-grid { gap: 48px; }
  .mel-grid { gap: 48px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-wide { grid-column: span 2; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .portfolio-cta { grid-template-columns: 1fr; padding: 44px 36px; }
}
@media (max-width: 768px) {
  .bento { grid-template-columns: 1fr; gap: 16px; }
  .bento > .bento-card:not(.bento-cta) { min-height: 0; }
  .bento-web, .bento-ia, .bento-ads, .bento-brand, .bento-cta { grid-column: span 1; grid-row: auto; }
  .bento-web { flex-direction: column; }
  .bento-web .bento-body { flex: none; }
  .bento-web .bento-demo { padding: 0 20px 24px; }
  .bento-body { padding: 26px 22px 24px; }
  .bento-cta { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .demo-browser .db-score { display: none; }
  .bento .demo-tag { display: none; }
  .process { grid-template-columns: 1fr; }
  .page-hero { padding: 130px 0 70px; }
  .page-hero.has-media { padding: 150px 0 90px; min-height: auto; }
  .page-hero-demo { padding: 22px 16px; }
  .value-strip-grid { grid-template-columns: 1fr; }
  .value-item + .value-item { border-left: none; border-top: 1px solid rgba(27,48,57,0.07); }
  .value-item { padding: 22px 6px; }
  .feature-grid, .more-services, .measure-list { grid-template-columns: 1fr; }
  .feature-wide { grid-column: span 1; grid-template-columns: 1fr; }
  .band-turismo { padding: 90px 0; }
  .band-portfolio { padding: 70px 0; }
  .portfolio-cta { padding: 36px 24px; border-radius: 22px; }
  .host-split-media { min-height: 220px; }
  .host-split-body { padding: 34px 24px; }
  .mel-tab { font-size: 0.56rem; letter-spacing: 0.5px; }
  .contact-section { padding: 110px 0 70px; }
  .contact-aside, .contact-form-wrap { padding: 36px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .pill-group.segmented { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; text-align: center; }
  .footer-nav { grid-template-columns: 1fr; gap: 30px; }
  .wa-bubble { right: 78px; bottom: 102px; max-width: 210px; font-size: 0.82rem; }
}

/* Tarjeta-CTA dentro de una grilla de features (Turismo) */
.feature-cta { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; gap: 4px; border-style: dashed; }
.feature-cta .bento-link { margin-top: 10px; }
.feature-cta:hover .bento-link .arrow { transform: translateX(5px); }
@media (max-width: 768px) { .feature-cta { grid-column: span 1; } }

/* Páginas que arrancan sobre fondo claro: el header translúcido se veía gris */
.page-light-top .header { background: rgba(27,48,57,0.92); }

/* Captcha de Cloudflare: el widget mide 300×65 */
.turnstile-slot:empty { display: none; }
.turnstile-slot { margin: 4px 0 18px; min-height: 65px; }

/*=========================================
  NOSOTROS
=========================================*/
.founder-portrait { position: relative; display: grid; place-items: center; padding: 20px 0; }
.founder-ring {
  width: min(400px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 10px;
  background: conic-gradient(from 210deg, var(--accent-color), rgba(219,48,41,0.15) 40%, rgba(255,255,255,0.15) 70%, var(--accent-color));
  box-shadow: 0 40px 80px rgba(0,0,0,0.35);
}
.founder-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #e9eef2; }
/* Datos del fundador debajo del texto del hero */
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: -8px 0 32px; }
.hero-facts li { display: flex; align-items: center; gap: 12px; }
.hero-facts svg {
  width: 40px; height: 40px; padding: 10px; flex-shrink: 0;
  border-radius: 12px; background: rgba(219,48,41,0.14); color: var(--accent-color);
}
.hero-facts span { font-size: 0.92rem; color: rgba(255,255,255,0.85); line-height: 1.35; }
.hero-facts b { display: block; font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 600; }

.founder-story p { color: var(--text-dark); margin-bottom: 16px; font-size: 1.02rem; }
.founder-quote {
  font-family: var(--font-title);
  font-size: 1.15rem !important;
  color: var(--bg-dark) !important;
  font-weight: 600;
  border-left: 3px solid var(--accent-color);
  padding-left: 18px;
  margin-top: 26px;
}
.pillars { display: flex; flex-direction: column; gap: 16px; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-card {
  padding: 34px 28px;
  border-radius: 24px;
  background: var(--bg-light);
  border: 1px solid rgba(27,48,57,0.07);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(27,48,57,0.1); }
.team-avatar {
  width: 132px; height: 132px;
  margin: 0 auto 20px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  box-shadow: 0 0 0 5px #fff, 0 0 0 7px rgba(219,48,41,0.35), 0 16px 30px rgba(27,48,57,0.15);
}
.team-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.team-role { font-size: 0.8rem; font-weight: 600; color: var(--accent-color); margin-bottom: 14px; }
.team-card > p:not(.team-role) { font-size: 0.92rem; color: var(--text-dark); margin-bottom: 16px; }
.team-card .chip-row { justify-content: center; }
.team-card-network { background: var(--bg-dark); border-color: transparent; }
.team-card-network h3 { color: #fff; }
.team-card-network > p:not(.team-role) { color: rgba(255,255,255,0.68); }
.team-card-network .chip { color: rgba(255,255,255,0.78); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }
.team-network-icon {
  width: 132px; height: 132px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(219,48,41,0.14);
  color: var(--accent-color);
  box-shadow: 0 0 0 5px var(--bg-dark), 0 0 0 7px rgba(219,48,41,0.35);
}
.team-network-icon svg { width: 52px; height: 52px; }

.about-stats { justify-content: center; margin-top: 56px; flex-wrap: wrap; text-align: center; }
.about-stats .stat-item { align-items: center; min-width: 180px; }
.nosotros-col-b .btn { margin-top: 10px; }

@media (max-width: 992px) {
  .team-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .about-stats { gap: 28px; }
}

/* Clic en el botón claro (franja roja): también se hunde sobre su zócalo */
.btn-light:active { translate: 0 4px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.1), 0 0 0 #a8211b, 0 4px 10px rgba(0,0,0,0.15); }
.btn-outline-light:active, .btn-outline-dark:active { translate: 0 2px; }

/* Enlaces de contacto del footer con ícono */
.footer-col a.footer-contact { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent-color); }
