/* Publicidad Cartagena Latam · estilos compartidos del sitio */

/* Colores y letras de la marca */
:root {
  color-scheme: dark;
  --bg: #1a0b32;         /* fondo */
  --surface: #251046;
  --ink: #ffffff;
  --muted: #c3b9d8;
  --line: #382a51;
  --brand: #f4e55b;      /* amarillo del logo: botones y acentos */
  --brand-ink: #1a0b32;
  --lav: #c5a4fe;        /* lila */
  --accent: #6ddbf4;     /* cian de las ilustraciones */
  --sun: #ffed9e;        /* amarillo claro de los destacados */
  --deep: #0634aa;       /* azul de las ilustraciones */
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
h1, h2 { font-family: "Fjalla One", Inter, system-ui, sans-serif; font-weight: 400; letter-spacing: 0 !important; }
img, svg { max-width: 100%; display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Menú */
header.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; font-weight: 500; font-size: .95rem; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand); }
.has-sub { position: relative; }
.has-sub > a::after { content: "▾"; font-size: .7em; margin-left: 5px; }
.sub {
  position: absolute; top: calc(100% + 12px); left: -16px; min-width: 240px; list-style: none; margin: 0; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s ease;
}
.sub::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; border-radius: 10px; }
.sub a:hover { background: var(--bg); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; place-items: center; padding: 0;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 960px) {
  .menu-toggle { display: grid; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 68px); overflow-y: auto; display: none;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links > li > a { display: block; padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"] { box-shadow: none; color: var(--brand); }
  .has-sub > a::after { content: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 4px 0 8px 12px; min-width: 0; }
  .sub::before { content: none; }
}
@media (max-width: 480px) { .logo img { height: 38px; } .nav-cta .btn { padding: 9px 14px; } }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }

/* Portada de cada página */
.hero { position: relative; padding: 76px 0 60px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, color-mix(in srgb, var(--lav) 35%, transparent), transparent 65%);
  z-index: -1;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
  font-weight: 700; font-size: .85rem;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); line-height: 1.05; margin: 18px 0 18px; }
h1 em { font-style: normal; color: var(--brand); }
.h1-kw { display: block; font-family: Inter, system-ui, sans-serif; font-size: clamp(.95rem, 1.6vw, 1.1rem); font-weight: 700; color: var(--lav); letter-spacing: .02em; margin-bottom: 10px; line-height: 1.3; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; color: var(--muted); font-size: .92rem; }
.trust span::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 6px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.scene {
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow); padding: 10px; position: relative;
}
.scene > img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.chip {
  position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: .82rem; font-weight: 700; box-shadow: var(--shadow); white-space: nowrap;
}
.chip.c1 { top: -14px; left: 22px; }
.chip.c2 { bottom: -14px; right: 22px; }
.chip b { color: var(--brand); }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(6, 52, 170, .45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Secciones */
section { padding: 80px 0; }
.pt-0 { padding-top: 20px; }
.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.12; margin: 10px 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.kicker { color: var(--lav); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card .ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem;
  background: color-mix(in srgb, var(--brand) 12%, transparent); margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: .95rem; }
.card > img { width: calc(100% + 52px); max-width: none; margin: -26px -26px 18px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.card > img + .ico { margin-top: -42px; position: relative; background: var(--surface); border: 1px solid var(--line); }

/* Tarjetas que llevan a otra página */
a.card-link { display: flex; flex-direction: column; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
a.card-link:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 60%, var(--line)); }
a.card-link p { flex: 1; }
.more { margin-top: 18px; font-weight: 700; color: var(--brand); }
.more::after { content: " →"; transition: margin .2s; }
a.card-link:hover .more::after { margin-left: 4px; }
.card.cta-card { background: linear-gradient(135deg, #2b1260, var(--deep)); border-color: transparent; }
.card.cta-card p { color: rgba(255, 255, 255, .8); }

/* Franja animada */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding: 14px 0; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 40s linear infinite; font-weight: 700; color: var(--muted); }
.marquee-track span::before { content: "✦"; color: var(--brand); margin-right: 40px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Banda de proceso */
.band { background: linear-gradient(135deg, #2b1260, var(--deep)); color: #fff; border-radius: 28px; }
.band .section-head p { color: rgba(255, 255, 255, .78); }
.band .kicker { color: var(--sun); }
.band-inner { padding: 64px 40px; }
@media (max-width: 560px) { .band-inner { padding: 44px 20px; } }
.steps-list { counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 0; margin: 0; }
.steps-list.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .steps-list, .steps-list.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps-list, .steps-list.four { grid-template-columns: 1fr; } }
.steps-list li {
  list-style: none; counter-increment: s; padding: 22px; border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .18);
}
.steps-list li::before {
  content: counter(s, decimal-leading-zero); display: block; font-weight: 800; font-size: 1.6rem; color: var(--sun); margin-bottom: 8px;
}
.steps-list h3 { margin: 0 0 6px; font-size: 1.05rem; }
.steps-list p { margin: 0; font-size: .95rem; color: rgba(255, 255, 255, .78); }

/* Planes */
.plan { display: flex; flex-direction: column; }
.plan .tag { font-size: .78rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.plan h3 { font-size: 1.4rem; margin: 6px 0 4px; }
.plan ul { flex: 1; margin-bottom: 22px; }
.plan.featured { border: 2px solid var(--brand); position: relative; }
.plan.featured::after {
  content: "Más pedido"; position: absolute; top: -12px; right: 20px; background: var(--brand); color: var(--brand-ink);
  font-size: .75rem; font-weight: 800; padding: 4px 12px; border-radius: 999px;
}

/* Preguntas */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; color: var(--brand); line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Contacto y formularios */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
form { display: grid; gap: 14px; }
label { font-weight: 600; font-size: .9rem; display: grid; gap: 6px; }
input, select, textarea {
  font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 1px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.note { font-size: .85rem; color: var(--muted); margin: 0; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; color: var(--muted); }
.checklist li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }
.lead-wa[hidden] { display: none; }
.contact-direct { display: grid; gap: 10px; margin-top: 24px; }
.contact-direct a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.contact-direct a span { color: var(--muted); font-weight: 500; }

/* Pie de página */
footer { border-top: 1px solid var(--line); padding: 48px 0 30px; color: var(--muted); font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid img { height: 44px; width: auto; margin-bottom: 12px; }
.foot-h { color: var(--ink); margin: 0 0 10px; font-size: .95rem; font-weight: 700; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.foot-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }

.wa-float {
  position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.2);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Maquetas animadas de las páginas de servicios */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 18px; }
.mock-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: .9rem; }
.pill { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.stat small { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; }
.stat b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.stat b.up { color: var(--brand); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; margin-top: 14px; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(var(--brand), color-mix(in srgb, var(--brand) 30%, transparent)); height: var(--h); transform-origin: bottom; animation: grow 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.bars i:nth-child(2n) { background: linear-gradient(var(--lav), color-mix(in srgb, var(--lav) 30%, transparent)); }
.bars i:nth-child(2) { animation-delay: .08s } .bars i:nth-child(3) { animation-delay: .16s } .bars i:nth-child(4) { animation-delay: .24s }
.bars i:nth-child(5) { animation-delay: .32s } .bars i:nth-child(6) { animation-delay: .4s } .bars i:nth-child(7) { animation-delay: .48s }
@keyframes grow { from { transform: scaleY(0); } }
.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.feed i { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.chat { display: grid; gap: 10px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; opacity: 0; animation: pop .4s ease forwards; }
.bubble.in { background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.out { background: var(--brand); color: var(--brand-ink); justify-self: end; border-bottom-right-radius: 4px; font-weight: 600; }
.bubble:nth-child(2) { animation-delay: .7s } .bubble:nth-child(3) { animation-delay: 1.4s } .bubble:nth-child(4) { animation-delay: 2.1s } .bubble:nth-child(5) { animation-delay: 2.8s }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Cursor animado (solo con mouse) */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; opacity: 0; transition: opacity .2s; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #fff; }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 3px solid var(--brand);
  transition: opacity .2s, width .2s, height .2s, margin .2s, background .2s, border-color .2s;
}
.cursor-ring.is-hover { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: color-mix(in srgb, var(--brand) 14%, transparent); border-width: 2px; }
.cursor-ring.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.has-cursor .cursor-dot, .has-cursor .cursor-ring { opacity: 1; }
.has-cursor.cursor-out .cursor-dot, .has-cursor.cursor-out .cursor-ring { opacity: 0; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }

/* Aparición al hacer scroll */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, a.card-link { transition: none; }
  .marquee-track, .hero-art img, .bars i, .bubble { animation: none; opacity: 1; }
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}
