/* Dooclicks Landing Page — estilo inspirado en Pluxes (Arise Theme) */
:root {
  --blue: #276bb8;
  --blue-dark: #174a86;
  --blue-deep: #0e2f57;
  --blue-soft: #eaf2fb;
  --ink: #14233a;
  --muted: #5b6b80;
  --line: #e3e9f1;
  --cream: #faf7f1;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 50, 90, .08);
  --shadow-lg: 0 18px 44px rgba(20, 50, 90, .16);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 999; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; border: 2px solid transparent;
  font: 600 .98rem/1 inherit; cursor: pointer; transition: .25s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(39, 107, 184, .35); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: rgba(255, 255, 255, .6); }
.btn-outline:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 12px 24px; font-size: .9rem; }
.btn-block { width: 100%; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 22px 0;
  transition: padding .3s;
}
.header.scrolled { padding: 12px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { border-radius: 999px; padding: 4px 6px; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.logo img { height: 48px; width: auto; }
.header.scrolled .logo { background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 8px 24px rgba(20, 50, 90, .12); padding: 4px 18px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { font-weight: 500; font-size: .96rem; padding: 12px 22px; border-radius: 999px; color: #33445c; transition: background .25s, color .25s; }
.nav a:not(.btn):hover { background: rgba(39, 107, 184, .1); color: var(--blue-dark); }
.nav .btn { margin-left: 6px; }
@media (min-width: 821px) {
  /* Menú en forma de píldora flotante, estilo vidrio */
  .nav {
    padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .62);
    backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 10px 30px rgba(20, 50, 90, .14), inset 0 1px 0 rgba(255, 255, 255, .6);
    transition: background .3s;
  }
  .header.scrolled .nav { background: rgba(255, 255, 255, .86); }
  /* El logo scrollea con la página; solo el menú queda fijo */
  .header { position: absolute; }
  .nav { position: fixed; top: 22px; right: max(20px, calc((100% - 1200px) / 2)); z-index: 100; transition: background .3s, top .3s; }
  .header.scrolled .nav { top: 12px; }
  .header.scrolled .logo { background: none; box-shadow: none; backdrop-filter: none; padding: 4px 6px; }
}
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 24px; height: 2px; background: var(--ink); position: relative; transition: .25s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 130px 0 90px; background: var(--cream) url("../assets/img/hero.webp") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(250, 247, 241, .97) 0%, rgba(250, 247, 241, .92) 40%, rgba(250, 247, 241, .2) 68%, rgba(250, 247, 241, 0) 100%);
}
.hero .container { position: relative; }
.hero-content { max-width: 620px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-soft); padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p { font-size: 1.12rem; color: #33445c; margin: 0 0 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; z-index: 1; width: 26px; height: 42px; border: 2px solid var(--blue); border-radius: 14px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--blue); animation: scroll 1.6s infinite; }
@keyframes scroll { 0% { opacity: 1; transform: translateY(0) } 100% { opacity: 0; transform: translateY(14px) } }

/* Sections */
section { padding: 100px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head .eyebrow { margin-bottom: 16px; }

/* Solutions */
.solutions { background: var(--white); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: .3s ease; position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card:hover::before { transform: scaleX(1); }
.card.wide { grid-column: span 2; }
.card-icon {
  width: 64px; height: 64px; border-radius: 16px; background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 22px; transition: .3s;
}
.card:hover .card-icon { background: var(--blue); color: #fff; }
.card-icon svg { width: 32px; height: 32px; }
.card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 6px; }
.card h3 span { color: var(--blue); }
.card .audience { font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.card .lead { color: var(--muted); margin: 0 0 18px; font-size: .98rem; }
.checks { margin-bottom: 20px; display: grid; gap: 9px; }
.card.wide .checks { grid-template-columns: 1fr 1fr; column-gap: 28px; }
.checks li { position: relative; padding-left: 28px; font-size: .94rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 17px; height: 17px; border-radius: 50%; background: var(--blue-soft);
}
.checks li::after {
  content: ""; position: absolute; left: 5px; top: 9px; width: 7px; height: 4px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); rotate: -45deg;
}
.card .closing { margin: auto 0 22px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .93rem; color: var(--ink); font-weight: 500; }
.card .more { font-weight: 600; color: var(--blue); display: inline-flex; gap: 8px; align-items: center; }
.card .more:hover { gap: 14px; }
.card .more { transition: gap .25s; }

/* Modular */
.modular { background: var(--cream); }
.modular-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.modular h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; margin: 14px 0 18px; }
.modular h2 em { font-style: normal; color: var(--blue); }
.modular p { color: var(--muted); }
.modular .tagline { margin-top: 26px; padding: 18px 22px; background: #fff; border-left: 4px solid var(--blue); border-radius: 8px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow); }
.orbit { position: relative; aspect-ratio: 1; max-width: 560px; margin-inline: auto; width: 100%; container-type: inline-size; }
.orbit-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit-core {
  position: absolute; left: 50%; top: 50%; width: 27%; aspect-ratio: 1; translate: -50% -50%; background: #fff; border-radius: 50%;
  box-shadow: 0 14px 40px rgba(39, 107, 184, .14); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1cqw;
}
.orbit-core img { width: 58%; height: auto; }
.orbit-item {
  font-family: inherit; cursor: pointer; appearance: none; position: absolute; z-index: 2; width: 16.4%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: #fff; color: var(--blue);
  border: 2px solid #d6e6f8; box-shadow: 0 10px 28px rgba(39, 107, 184, .12); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6cqw; text-align: center; font-size: 2.2cqw; font-weight: 700; line-height: 1.15; padding: 0 1cqw; transition: .25s;
}
.orbit-item:hover { border-color: var(--blue); }
.orbit-item:focus-visible { outline: 3px solid rgba(39, 107, 184, .4); outline-offset: 3px; }
.orbit-item.active { background: var(--blue); color: #fff; border-color: var(--blue); scale: 1.12; box-shadow: 0 0 0 1.6cqw rgba(39, 107, 184, .14), 0 14px 34px rgba(39, 107, 184, .35); z-index: 3; }
.orbit-wrap { display: grid; gap: 28px; min-width: 0; }
.orbit-lines .ring { transform-origin: 500px 500px; animation: spin 90s linear infinite; }
.spoke line { stroke: #6f9fd8; stroke-dasharray: 3 9; transition: stroke .3s; }
.spoke circle { fill: #6f9fd8; transition: fill .3s; }
.spoke.active line { stroke: var(--blue); stroke-width: 5; stroke-dasharray: 9 9; animation: flow .8s linear infinite; }
.spoke.active circle { fill: var(--blue); }
@keyframes flow { to { stroke-dashoffset: -18; } }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-core { z-index: 1; }
.orbit-core .pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--blue); opacity: 0; animation: pulse 3s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(1.45); opacity: 0; } }
.orbit-panel { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 28px 28px 24px; overflow: hidden; min-height: 300px; }
.orbit-panel.swap > :not(.orbit-progress) { animation: fadeUp .45s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.orbit-progress { position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--blue-soft); }
.orbit-progress i { display: block; height: 100%; width: 0; background: var(--blue); }
.orbit-progress.run i { animation: fill var(--dur, 5s) linear forwards; }
.orbit-progress.paused i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.op-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.op-title span { color: var(--blue); }
.op-lead { color: var(--muted); margin: 0 0 16px; font-size: .96rem; }
.orbit-panel .checks { margin-bottom: 18px; }

.orbit-item svg { width: 5.4cqw; height: 5.4cqw; }

/* Consulting */
.consulting { background: var(--blue-deep); color: #fff; position: relative; overflow: hidden; }
.consulting::after { content: ""; position: absolute; right: -140px; top: -140px; width: 440px; height: 440px; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.consulting-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 70px; align-items: start; position: relative; z-index: 1; }
.consulting .eyebrow { background: rgba(255, 255, 255, .12); color: #fff; }
.consulting h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; margin: 14px 0 18px; }
.consulting p { color: #c3d3e8; }
.steps { display: grid; gap: 16px; counter-reset: s; }
.steps li {
  counter-increment: s; display: flex; gap: 20px; align-items: center; background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 20px 24px; transition: .25s;
}
.steps li:hover { background: rgba(255, 255, 255, .13); transform: translateX(6px); }
.steps li::before {
  content: counter(s, decimal-leading-zero); font-size: 1.5rem; font-weight: 800; color: #7fb2ee; flex: none; min-width: 42px;
}

/* Contact */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; align-items: start; }
.contact h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; margin: 14px 0 18px; }
.contact p { color: var(--muted); }
.contact-badge { margin-top: 30px; display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: .92rem; }
.contact-badge img { width: 72px; }
form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-size: .86rem; font-weight: 600; }
input, select, textarea {
  font: inherit; color: var(--ink); padding: 13px 16px; border: 1px solid #cfd9e6; border-radius: 10px; background: #fbfcfe; transition: .2s; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(39, 107, 184, .15); background: #fff; }
textarea { resize: vertical; min-height: 120px; }
.form-note { grid-column: 1 / -1; margin: 0; font-size: .85rem; min-height: 1.2em; color: var(--blue); font-weight: 600; }

/* Footer */
.footer { background: var(--blue-deep); color: #c3d3e8; padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 50px; padding-bottom: 60px; }
.footer img.flogo { height: 54px; width: auto; margin-bottom: 20px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; font-weight: 700; }
.footer li { margin-bottom: 10px; font-size: .95rem; }
.footer a:hover { color: #fff; padding-left: 4px; }
.footer a { transition: .2s; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .88rem; }
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; border: 0;
  cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .3s; z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card.wide { grid-column: span 2; }
  .modular-grid, .consulting-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 auto 0; top: 0; padding: 90px 28px 30px; flex-direction: column; align-items: flex-start; gap: 18px;
    background: #fff; box-shadow: var(--shadow-lg); transform: translateY(-100%); transition: transform .35s; z-index: -1;
  }
  .nav.open { transform: none; }
  .header { background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); box-shadow: 0 2px 20px rgba(20, 50, 90, .08); padding: 12px 0; }
  .nav a:not(.btn) { padding: 8px 0; border-radius: 0; font-weight: 600; }
  .nav a:not(.btn):hover { background: none; }
  .nav .btn { margin-left: 0; }
  .header.scrolled .logo, .logo { background: none; box-shadow: none; backdrop-filter: none; padding: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(250, 247, 241, .94) 0%, rgba(250, 247, 241, .8) 60%, rgba(250, 247, 241, .45) 100%); }
}
@media (max-width: 640px) {
  section { padding: 70px 0; }
  .cards { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .card.wide .checks { grid-template-columns: 1fr; }
  form { grid-template-columns: 1fr; padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .orbit-item svg { display: none; }
  .orbit-item { font-size: 2.7cqw; }
  .logo img { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.orbit-panel .more { font-weight: 600; color: var(--blue); display: inline-flex; gap: 8px; align-items: center; transition: gap .25s; }
.orbit-panel .more:hover { gap: 14px; }

/* Formulario: validación, honeypot y captcha */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-error { color: #b42318; font-size: .82rem; min-height: 0; }
.field-error:empty { display: none; }
input.invalid, select.invalid, textarea.invalid { border-color: #b42318; }
.form-error { grid-column: 1 / -1; color: #b42318; font-size: .9rem; }
.form-error ul { margin: 0; padding: 0; }
.form-note.form-ok { color: #067647; }
.form-note.form-bad { color: #b42318; }
.captcha { min-height: 65px; }
