/* ============ WebFons · estilos compartidos ============ */
:root {
  --ink: #08070A;
  --ink-2: #110E15;
  --ink-3: #1A1520;
  --purple: #5A1480;
  --purple-glow: rgba(110, 24, 160, .35);
  --line: rgba(237, 234, 227, .09);
  --line-strong: rgba(237, 234, 227, .18);
  --ivory: #EDEAE3;
  --muted: #DDD8CF;   /* texto secundario: casi tan claro como el principal, para que nada se pierda en el negro */
  --gold: #E2B34E;
  --gold-light: #FFE7A3;
  --gold-dark: #9C6A1C;
  --gold-grad: linear-gradient(135deg, #FFE7A3 0%, #E2B34E 45%, #B07A22 100%);
  --gold-soft: rgba(226, 179, 78, .12);
  --gold-line: rgba(226, 179, 78, .38);
  --error: #E07A6B;
  --f-display: 'Playfair Display', Georgia, serif;
  --f-body: 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
  --max: 1200px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ivory);
  background:
    radial-gradient(60vw 50vw at 100% 0%, var(--purple-glow), transparent 70%),
    radial-gradient(50vw 40vw at 0% 100%, rgba(90, 20, 128, .22), transparent 70%) fixed,
    var(--ink);
  font: 400 1rem/1.65 var(--f-body); -webkit-font-smoothing: antialiased;
  font-feature-settings: "lnum" 1;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
a { color: inherit; }
::selection { background: var(--gold); color: #1A1206; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 10px; }

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.45rem; }
em, .gold-text {
  font-style: normal; color: var(--gold);
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
p { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 .74rem/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.lead { color: var(--muted); font-size: 1.16rem; line-height: 1.7; max-width: 56ch; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold-grad); color: #1A1206; box-shadow: 0 10px 30px -12px rgba(226, 179, 78, .6); }
.btn-gold:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line-strong); color: var(--ivory); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Navegación ---------- */
.nav-bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 7, 10, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font: 700 1.5rem/1 var(--f-display); letter-spacing: -.01em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand img { filter: drop-shadow(0 0 10px rgba(226, 179, 78, .35)); }
/* En la cabecera, marca un poco más grande */
.nav .brand { gap: 13px; }
.nav .brand img { width: 46px; height: 46px; }
.nav .brand span { font-size: 1.72rem; }
/* La marca respira al mismo ritmo que el aviso del portafolio */
.nav .brand { transform-origin: left center; animation: respiro-marca 4.5s ease-in-out infinite; }
.nav .brand img { animation: respiro-brillo 4.5s ease-in-out infinite; }
/* Botones "Agenda una consultoría": mismo respiro; al pasar el puntero manda el efecto de hover */
.nav-cta, .respira { animation: respiro-boton 4.5s ease-in-out infinite; }
.nav-cta:hover, .respira:hover { animation: none; }
@keyframes respiro-boton {
  0%, 70%, 100% { transform: scale(1); box-shadow: 0 10px 30px -12px rgba(226, 179, 78, .6); }
  35% { transform: scale(1.03); box-shadow: 0 10px 30px -12px rgba(226, 179, 78, .6), 0 0 30px -4px rgba(226, 179, 78, .55); }
}
@keyframes respiro-marca { 0%, 70%, 100% { transform: scale(1); } 35% { transform: scale(1.02); } }
@keyframes respiro-brillo {
  0%, 70%, 100% { filter: drop-shadow(0 0 10px rgba(226, 179, 78, .35)); }
  35% { filter: drop-shadow(0 0 18px rgba(226, 179, 78, .75)); }
}
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: .92rem; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ivory); }
.nav-links .btn-gold, .nav-links .btn-gold:hover { color: #1A1206; }
.nav-cta { padding: 11px 20px; font-size: .88rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--ivory); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; margin: auto; }

/* ---------- Secciones ---------- */
section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(64px, 9vw, 120px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(226, 179, 78, .14), var(--purple-glow) 55%, transparent 75%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 { margin: 26px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-note { margin-top: 28px; font-size: .86rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hero-note::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); }


/* ---------- Vitrina de las 4 demos (portada) ---------- */
.showcase { position: relative; }
.show-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.show-card { display: grid; gap: 8px; padding: 8px 8px 12px; border-radius: 18px; border: 1px solid var(--line-strong); background: linear-gradient(160deg, var(--ink-3), var(--ink-2)); text-decoration: none; color: var(--ivory);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .8); transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s; }
.show-card:nth-child(even) { transform: translateY(32px); }
.show-card:hover { border-color: var(--gold-line); transform: translateY(-4px); }
.show-card:nth-child(even):hover { transform: translateY(28px); }
.show-bar { display: flex; align-items: center; gap: 5px; padding: 2px 4px; }
.show-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.show-bar small { margin-left: 6px; font-size: .64rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-shot { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; }
.show-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.show-card:hover .show-shot img { transform: scale(1.05); }
.show-copy { position: absolute; inset: 0; display: grid; align-content: center; gap: 4px; padding: 0 8%; }
.show-copy strong { font: 700 clamp(.8rem, 1.25vw, 1.05rem)/1.1 var(--f-display); max-width: 11ch; }
.show-dark { color: #fff; background: linear-gradient(90deg, rgba(20, 14, 10, .78), rgba(20, 14, 10, .25) 70%, transparent); }
.show-dark i { font-style: italic; color: #F2C9A5; }
.show-light { color: #13233F; background: linear-gradient(90deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .5) 65%, transparent); }
.show-light i { font-style: normal; color: #23999A; }
.show-cream { color: #3A2A26; background: linear-gradient(90deg, rgba(251, 246, 242, .94), rgba(251, 246, 242, .55) 65%, transparent); }
.show-cream strong { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: clamp(.9rem, 1.4vw, 1.2rem); }
.show-cream i { color: #A9835A; }
.sl { font-size: .62rem; line-height: 1; }
.sl-alma { font: 400 clamp(.9rem, 1.5vw, 1.2rem)/1 'Allura', cursive; color: #E7D7BE; }
.sl-origen { font-weight: 600; letter-spacing: .26em; color: #F2C9A5; }
.sl-orbita { font-weight: 700; color: #1C2F5E; }
.sl-lumiere { font: 500 clamp(.85rem, 1.3vw, 1.05rem)/1 'Cormorant Garamond', serif; color: #A9835A; }
.show-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 4px; }
.show-meta b { font-size: .86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-pack { font-style: normal; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-line); border-radius: 999px; padding: 3px 9px; flex: none; }
.badge-float { position: absolute; right: -10px; top: -30px; display: grid; gap: 2px; padding: 12px 18px; border-radius: 14px; background: var(--ink); border: 1px solid var(--gold-line); text-decoration: none; color: var(--ivory); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); transition: border-color .2s; }
.badge-float:hover { border-color: var(--gold); }
.badge-float b { font: 700 1.4rem/1 var(--f-display); color: var(--gold); }
.badge-float span { font-size: .76rem; color: var(--muted); }

/* ---------- Franja de compromisos ---------- */
.promises { padding: 0; border-block: 1px solid var(--line); }
.promises ul { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0 auto; padding: 0; }
.promises li { padding: 28px 24px; display: flex; gap: 14px; align-items: center; font-size: .92rem; color: var(--muted); }
.promises li + li { border-left: 1px solid var(--line); }
.promises li b { color: var(--ivory); font-weight: 600; display: block; }
.promises svg { flex: none; width: 22px; height: 22px; color: var(--gold); }

/* ---------- Universo ---------- */
.universe { position: relative; overflow-x: clip; }
.universe-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.universe-copy { display: grid; gap: 22px; }
.universe h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.universe-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.universe-list li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.universe-list svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold); }

.orbit { position: relative; width: min(500px, 100% - 150px); aspect-ratio: 1; margin: 56px auto; }
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--gold-line); }
.ring-1 { inset: 0; border-style: dashed; opacity: .55; }
.ring-2 { inset: 17%; opacity: .35; }
.ring-3 { inset: 34%; border-color: var(--purple); box-shadow: 0 0 60px var(--purple-glow); }
.planet { position: absolute; inset: 37%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #2A1E33, #08070A 70%); box-shadow: 0 0 0 1px var(--gold-line), 0 0 80px rgba(226, 179, 78, .25), inset 0 0 30px rgba(110, 24, 160, .5); }
.planet img { width: 62%; height: auto; filter: drop-shadow(0 0 14px rgba(226, 179, 78, .45)); }
.spin { position: absolute; inset: 0; animation: orbit 48s linear infinite; }
.sat { position: absolute; width: 0; height: 0; }
.sat-n { top: 0; left: 50%; }
.sat-e { top: 50%; left: 100%; }
.sat-s { top: 100%; left: 50%; }
.sat-o { top: 50%; left: 0; }
.sprite { position: absolute; }
/* Página 404 */
.not-found { min-height: 62vh; display: grid; align-items: center; text-align: center; }
.not-found .lead { margin: 18px auto 0; }
.not-found-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.sat-body { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; width: 150px; text-align: center; animation: orbit-counter 48s linear infinite; }
.sat-body svg { width: 64px; height: 64px; padding: 16px; border-radius: 50%; background: var(--ink-2); border: 1px solid var(--gold-line); color: var(--gold); box-shadow: 0 0 24px rgba(226, 179, 78, .25); }
.sat-body span { font-size: .92rem; font-weight: 500; line-height: 1.3; color: var(--ivory); background: rgba(8, 7, 10, .78); padding: 4px 10px; border-radius: 999px; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes orbit-counter { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: var(--ink); padding: clamp(32px, 4vw, 48px); display: grid; gap: 16px; align-content: start; transition: background-color .3s; }
.service:hover { background: var(--ink-2); }
.service .num { font: 700 .95rem/1 var(--f-display); color: var(--gold); }
.service p { color: var(--muted); font-size: 1.02rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; padding: 0; list-style: none; }
.tags li { font-size: .76rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }

/* ---------- Incluye ---------- */
.includes-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.includes-grid .section-head { position: sticky; top: 120px; margin-bottom: 0; }
.include-list { list-style: none; margin: 0; padding: 0; }
.include-list li { display: grid; grid-template-columns: 56px 1fr; gap: 8px 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.include-list li:first-child { border-top: 1px solid var(--line); }
.include-list .ic { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; background: var(--gold-soft); border: 1px solid var(--gold-line); display: grid; place-items: center; color: var(--gold); }
.include-list .ic svg { width: 22px; height: 22px; }
.include-list h3 { font-size: 1.25rem; }
.include-list p { color: var(--muted); font-size: 1rem; }

/* ---------- Método ---------- */
.method { background: rgba(17, 14, 21, .55); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-top: 34px; border-top: 1px solid var(--line-strong); display: grid; gap: 10px; align-content: start; }
.steps li::before { counter-increment: step; content: '0' counter(step); position: absolute; top: -1px; left: 0; padding-top: 12px; border-top: 1px solid var(--gold); width: 40px; font: 700 .9rem/1 var(--f-display); color: var(--gold); }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); font-size: .97rem; }
.steps small { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

/* ---------- Planes ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 36px 26px; display: flex; flex-direction: column; gap: 18px; background: rgba(8, 7, 10, .82); }
.plan.featured { border-color: var(--gold-line); background: linear-gradient(180deg, rgba(226, 179, 78, .08), var(--ink) 60%); }
.plan .ribbon { position: absolute; top: -13px; left: 32px; background: var(--gold); color: var(--ink); font: 700 .7rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.6rem; }
.plan .desc { color: var(--muted); font-size: .98rem; min-height: 3.2em; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price small { color: var(--muted); font-size: .85rem; }
.price b { font: 800 2.4rem/1 var(--f-body); letter-spacing: -.03em; }
.plan ul { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; flex: 1; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; font-size: .93rem; }
.plan li svg { width: 18px; height: 18px; color: var(--gold); margin-top: 3px; }
.plan .btn { width: 100%; }
.plan-demo { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; margin-top: -8px; padding: 8px; border-radius: 10px; font-size: .86rem; color: var(--muted); text-decoration: none; transition: color .2s, background-color .2s; }
.plan-demo svg { width: 17px; height: 17px; color: var(--gold); flex: none; }
.plan-demo span { color: var(--gold); }
.case { scroll-margin-top: 100px; }
.plan-demo:hover { color: var(--ivory); background: var(--gold-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.delivery { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: .82rem; padding: 7px 12px; border-radius: 999px; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--ivory); }
.delivery svg { width: 15px; height: 15px; color: var(--gold); }
.price b { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.terms { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.term { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 28px; background: rgba(17, 14, 21, .7); display: grid; gap: 12px; align-content: start; }
.term-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--gold-grad); color: #1A1206; display: grid; place-items: center; }
.term-ic svg { width: 22px; height: 22px; }
.term h3 { font-size: 1.2rem; }
.term p { font-size: 1.05rem; line-height: 1.5; }
.term p b { font: 800 1.6rem/1 var(--f-display); }
.term ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: .92rem; }
.term li { padding-left: 18px; position: relative; }
.term li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- Preguntas ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font: 700 1.25rem/1.3 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 300 1.6rem/1 var(--f-body); color: var(--gold); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 26px; max-width: 70ch; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.contact-info { display: grid; gap: 28px; }
.contact-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.contact-list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li[hidden] { display: none; }
.contact-list .ci { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold); }
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list div { display: grid; gap: 2px; min-width: 0; }
.contact-list small { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-list div > a, .contact-list div > span { font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold); }

.form { background: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 22px; padding: clamp(28px, 4vw, 44px); display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .84rem; font-weight: 600; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--ink); color: var(--ivory); font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9A958C; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.field-error { display: none; font-size: .8rem; color: var(--error); }
.field.invalid .field-error { display: block; }
.form .btn { width: 100%; margin-top: 4px; }
.form-msg { display: none; padding: 14px; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold); text-align: center; font-size: .92rem; }
.form-msg.show { display: block; }

/* ---------- CTA final ---------- */
.cta-band { text-align: center; }
.cta-band .wrap { display: grid; justify-items: center; gap: 28px; }
.cta-band h2 { max-width: 18ch; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 0 0 104px; background: linear-gradient(180deg, transparent, rgba(8, 7, 10, .85) 40%); }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.footer-cta > div:first-child { display: grid; gap: 12px; }
.footer-cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-cta-actions svg { width: 18px; height: 18px; }
.footer-cta-actions .btn[hidden] { display: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; padding-top: 48px; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 34ch; margin: 16px 0 20px; }
.footer-grid h3 { font: 600 .74rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-grid ul a { text-decoration: none; color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer-grid ul a:hover { color: var(--ivory); }
.footer-grid ul a b { color: var(--ivory); font-weight: 600; margin-right: 8px; }
.footer-grid ul a span { font-size: .84rem; }
.footer-contact li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; }
.footer-contact li[hidden] { display: none; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .82rem; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--muted); transition: color .2s, border-color .2s; }
.socials a:hover { color: var(--gold); border-color: var(--gold); }
.socials a[hidden] { display: none; }
.socials svg { width: 17px; height: 17px; }

/* ---------- Botón volver arriba ---------- */
.to-top {
  position: fixed; right: 25px; bottom: 96px; z-index: 60; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--gold-line); background: var(--gold-grad); color: #1A1206; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(226, 179, 78, .55), 0 0 0 6px rgba(8, 7, 10, .55);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, filter .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { filter: brightness(1.08); transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .to-top { right: 19px; bottom: 82px; width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .to-top, .wa-float { transition: none; } }

/* ---------- WhatsApp flotante (debajo del botón volver arriba) ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--gold-grad); color: #1A1206;
  border: 1px solid var(--gold-line); display: grid; place-items: center;
  box-shadow: 0 12px 30px -10px rgba(226, 179, 78, .55), 0 0 0 6px rgba(8, 7, 10, .55); transition: transform .2s ease, filter .2s; }
.wa-float:hover { transform: scale(1.06); filter: brightness(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float[hidden] { display: none; }
@media (max-width: 760px) { .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; } }

/* ---------- Portafolio ---------- */
.page-head { padding-bottom: clamp(40px, 6vw, 72px); }
.page-head h1 { margin: 22px 0 24px; font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
.concept-note { margin-top: 32px; display: inline-flex; gap: 14px; align-items: flex-start; max-width: 66ch; padding: 20px 26px; border: 1px solid var(--gold-line); border-radius: 16px; background: var(--gold-soft); font-size: 1.05rem; line-height: 1.6; color: var(--ivory);
  transform-origin: center; animation: respiro 4.5s ease-in-out infinite; }
.concept-note svg { flex: none; width: 24px; height: 24px; color: var(--gold); margin-top: 2px; }
/* Respiro lento: crece y se enciende suave, vuelve, una pausa, y otra vez */
@keyframes respiro {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(226, 179, 78, 0); border-color: var(--gold-line); }
  35% { transform: scale(1.03); box-shadow: 0 0 38px -6px rgba(226, 179, 78, .45); border-color: var(--gold); }
  70% { transform: scale(1); box-shadow: 0 0 0 0 rgba(226, 179, 78, 0); border-color: var(--gold-line); }
}
@media (prefers-reduced-motion: reduce) { .concept-note, .nav .brand, .nav .brand img, .nav-cta, .respira { animation: none; } }
.cases { padding-top: 0; }
.case { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.case:nth-child(even) .case-visual { order: 2; }
.case-meta { display: grid; gap: 18px; }
.case-meta .kicker { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.case-meta .kicker b { color: var(--gold); font-weight: 600; }
.case-meta h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.case-meta p { color: var(--muted); font-size: 1.06rem; line-height: 1.7; }
.case-facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.case-facts li { background: var(--ink); padding: 16px 18px; display: grid; gap: 4px; font-size: .97rem; font-weight: 500; }
.case-facts span { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.case-visual { position: relative; border-radius: 22px; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); overflow: hidden; }
.screen { border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); aspect-ratio: 16 / 11; display: grid; grid-template-rows: auto 1fr; }
.screen-bar { display: flex; gap: 5px; padding: 9px 12px; background: rgba(0, 0, 0, .25); }
.screen-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .35); }

/* Demo en vivo: captura real dentro del marco y enlace a la web */
.case-visual.live { display: block; text-decoration: none; color: inherit; cursor: pointer; transition: transform .4s ease, border-color .3s; }
.case-visual.live:hover { transform: translateY(-4px); border-color: var(--gold-line); }
.screen-url { margin-left: 10px; font-size: .68rem; color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen-shot { position: relative; overflow: hidden; }
.screen-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.case-visual.live:hover .screen-shot img { transform: scale(1.04); }
.shot-copy { position: absolute; inset: 0; display: grid; align-content: center; gap: 6px; padding: 0 7%; color: #fff;
  background: linear-gradient(90deg, rgba(28, 20, 14, .75), rgba(28, 20, 14, .2) 70%, transparent); }
.shot-logo { font: 400 clamp(1.1rem, 2vw, 1.6rem)/1 'Allura', 'Brush Script MT', cursive; color: #E7D7BE; }
.shot-copy strong { font: 400 clamp(1.2rem, 2.6vw, 2.1rem)/1.05 Georgia, serif; max-width: 12ch; }
.shot-copy i { color: #E7D7BE; }
.screen-shot img.flip { transform: scaleX(-1); }
.case-visual.live:hover .screen-shot img.flip { transform: scaleX(-1) scale(1.04); }
.shot-logo-origen { font: 600 clamp(.6rem, 1vw, .8rem)/1 'Manrope', sans-serif; letter-spacing: .3em; color: #F2C9A5; }
.c-cafe .shot-copy i { color: #F2C9A5; }
.shot-copy.shot-light { color: #13233F; background: linear-gradient(90deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .55) 60%, transparent); }
.shot-logo-orbita { font: 700 clamp(.7rem, 1.1vw, .9rem)/1 'Manrope', sans-serif; color: #1C2F5E; }
.shot-light i { color: #23999A; }
.case-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.shot-copy.shot-cream { color: #3A2A26; background: linear-gradient(90deg, rgba(251, 246, 242, .95), rgba(251, 246, 242, .6) 60%, transparent); }
.shot-logo-lumiere { font: 500 clamp(1rem, 1.8vw, 1.4rem)/1 'Cormorant Garamond', Georgia, serif; color: #A9835A; }
.shot-cream strong { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; }
.shot-cream i { color: #A9835A; }
.case-note { font-size: .82rem; color: var(--muted); }
.case-note b { color: var(--ivory); }
.live-hint { position: absolute; right: 7%; bottom: 7%; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: var(--gold-grad); color: #1A1206; font-size: .8rem; font-weight: 700; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .7); }
.live-hint svg { width: 14px; height: 14px; }
.pill-live { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(110, 220, 150, .45); color: #8FE3AE; padding: 5px 10px; border-radius: 999px; letter-spacing: .12em; font-size: .68rem; }
.pill-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #5BD98A; box-shadow: 0 0 0 4px rgba(91, 217, 138, .18); }
.case-cta { justify-self: start; margin-top: 6px; }
/* Paquete destacado en cada caso del portafolio */
.case-pack { position: relative; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; justify-self: start; padding: 10px 12px 10px 18px; border-radius: 16px;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s, box-shadow .35s;
  background: linear-gradient(135deg, rgba(226, 179, 78, .16), rgba(226, 179, 78, .04)); border: 1px solid var(--gold-line); }
.pack-label { font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.case-pack b { font: 800 1.5rem/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pack-step { font-size: .74rem; font-weight: 600; color: var(--ivory); background: rgba(255, 255, 255, .08); padding: 4px 9px; border-radius: 999px; }
.case-pack a { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding: 7px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--gold); text-decoration: none; border: 1px solid var(--gold-line); transition: background-color .2s, color .2s; }
.case-pack a:hover { background: var(--gold); color: #1A1206; }
.case-pack a svg { width: 14px; height: 14px; }
.pack-ribbon { position: absolute; top: 18px; left: -6px; z-index: 2; padding: 8px 16px 8px 18px; font: 800 .8rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase;
  color: #1A1206; background: var(--gold-grad); border-radius: 0 999px 999px 0; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .8); }
.pack-ribbon:empty { display: none; }

/* Paletas de cada concepto */
.c-dental { background: linear-gradient(150deg, #0F2A27, #081613); }
.c-dermo { background: linear-gradient(150deg, #E9E3DA, #CFC5B8); }
.c-casa { background: linear-gradient(150deg, #13201C, #0A1210); }
.c-cafe { background: linear-gradient(150deg, #2A2017, #15100B); }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
/* Paquetes: al pasar el puntero la tarjeta crece, sube y se ilumina (va después de .reveal.in para ganarle) */
.plans .plan.in { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease, background-color .35s ease; }
@media (hover: hover) {
  .plans .plan.in:hover { transform: translateY(-10px) scale(1.04); z-index: 2; border-color: var(--gold);
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .9), 0 0 0 1px rgba(226, 179, 78, .35), 0 0 42px -6px rgba(226, 179, 78, .32); }
  .plans .plan.in:hover .price b { filter: brightness(1.12); }
  .plans:hover .plan.in:not(:hover) { opacity: .82; }
}
@media (hover: hover) {
  .case-pack:hover { transform: scale(1.04); border-color: var(--gold); box-shadow: 0 0 0 1px rgba(226, 179, 78, .3), 0 0 36px -6px rgba(226, 179, 78, .35); }
  .btn-gold:not(.plan .btn-gold):hover, .case-ctas .btn:hover { transform: scale(1.06); box-shadow: 0 0 0 1px rgba(226, 179, 78, .4), 0 0 34px -4px rgba(226, 179, 78, .45); }
}
.btn-gold, .case-ctas .btn { position: relative; }
@media (prefers-reduced-motion: reduce) { .case-pack, .case-pack:hover, .btn-gold:hover, .case-ctas .btn:hover { transition: none; transform: none; } }
/* Chispas del borde (canvas que crea main.js al entrar a una tarjeta) */
.chispas { position: absolute; z-index: 3; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .show-card, .show-shot img { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .plans .plan.in, .plans .plan.in:hover { transform: none; transition: none; }
  .spin, .sat-body { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .includes-grid, .contact-grid, .universe-grid { grid-template-columns: 1fr; gap: 56px; }
  .includes-grid .section-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .showcase { max-width: 640px; margin: 0 auto 24px; width: 100%; }
  .badge-float { right: 0; top: -26px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .terms { grid-template-columns: 1fr; }
  .promises ul { grid-template-columns: repeat(2, 1fr); }
  .promises li:nth-child(3) { border-left: 0; }
  .promises li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .case { grid-template-columns: 1fr; }
  .case:nth-child(even) .case-visual { order: 0; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1rem; }
  .nav-links .nav-cta { margin-top: 10px; }
  .services, .form-row, .steps, .case-facts, .plans { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-cta { padding: 36px 0; }
  .footer-cta-actions .btn { flex: 1 1 100%; }
  .show-grid { gap: 10px; }
  .show-card { padding: 6px 6px 10px; border-radius: 14px; }
  .show-card:nth-child(even), .show-card:nth-child(even):hover { transform: translateY(18px); }
  .show-bar small { display: none; }
  .show-copy strong { display: none; }
  .show-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .show-meta b { font-size: .8rem; max-width: 100%; }
  .badge-float { position: static; margin-top: 30px; justify-self: start; }
  .showcase { display: grid; }
  .orbit { width: min(330px, 100% - 96px); margin: 48px auto; }
  .sat-body { width: 110px; gap: 6px; }
  .sat-body svg { width: 52px; height: 52px; padding: 13px; }
  .sat-body span { font-size: .78rem; padding: 3px 8px; }
  .promises ul { grid-template-columns: 1fr; }
  .promises li + li { border-left: 0; border-top: 1px solid var(--line); }
}
