/* =========================================================
   Joaquín Jiménez — Sitios web que convierten
   Estética fiel al original: azul marino profundo + acento
   ámbar/naranja. Tipografía: Plus Jakarta Sans.
   ========================================================= */

:root {
  --bg:        #0a1730;
  --bg-2:      #0e1d39;
  --card:      #14264a;
  --card-2:    #16284d;
  --text:      #eef2f8;
  --muted:     #93a4c0;
  --accent:    #f5a623;
  --accent-2:  #ffb73d;
  --accent-ink:#10203b;
  --line:      rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.045);
  --maxw:      1160px;
  --radius:    18px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

h1, h2, h3 { font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand .o { color: var(--accent); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 600; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 12px;
  font-weight: 700; font-size: 0.95rem; font-family: inherit;
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 12px 30px rgba(245, 166, 35, .28); }
.btn-ghost { background: rgba(255,255,255,.02); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255,255,255,.25); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:disabled:hover, .btn[disabled]:hover { transform: none; background: var(--accent); box-shadow: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(60px, 9vw, 120px) 0 70px; overflow: hidden; }
.hero::before { /* rejilla sutil */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.2fr .8fr;
  gap: 50px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(245,166,35,.4);
  background: rgba(245,166,35,.08);
  color: var(--accent); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.9rem, 7.5vw, 5.6rem); margin: 26px 0 0; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { margin-top: 22px; max-width: 46ch; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.tag {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  font-size: .88rem; color: var(--text); font-weight: 600;
}
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-photo { position: relative; display: grid; place-items: center; }
.photo-ring {
  width: min(340px, 70vw); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid var(--accent);
  padding: 10px;
  box-shadow: 0 0 0 1px rgba(245,166,35,.2), 0 30px 80px rgba(0,0,0,.5);
}
.photo-ring .ph, .photo-ring img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  background: var(--card); display: grid; place-items: center;
  color: var(--muted); font-weight: 700; font-size: 2.4rem;
}
.scroll-hint { text-align: center; margin-top: 40px; color: var(--accent); }
.scroll-hint span { display: block; font-size: .72rem; letter-spacing: .2em; color: var(--muted); margin-bottom: 6px; }
.scroll-hint .arrow { animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(7px)} }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section-head { max-width: 56ch; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-top: 14px; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 1.08rem; }

/* Servicios */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 34px 30px;
  transition: transform .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line); }
.card .ic {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 14px; background: rgba(255,255,255,.05);
  font-size: 1.5rem; margin-bottom: 22px;
}
.card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.card > p { color: var(--muted); font-size: .98rem; margin-bottom: 18px; }
.check { list-style: none; display: grid; gap: 10px; }
.check li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check li::before { content: "✓"; color: var(--accent); font-weight: 800; flex: none; }

/* Proceso */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process::before {
  content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}
.process-step { text-align: center; position: relative; }
.process-step .num {
  width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%;
  border: 1.5px solid var(--accent); display: grid; place-items: center;
  font-weight: 800; font-size: 1.5rem; color: var(--accent);
  background: var(--bg);
}
.process-step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: .92rem; max-width: 24ch; margin-inline: auto; }

/* Precios */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 36px 30px; position: relative;
}
.plan.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(245,166,35,.10), var(--card) 40%);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.plan-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink); font-weight: 800;
  font-size: .72rem; letter-spacing: .1em; padding: 6px 16px; border-radius: 999px;
}
.plan .label { color: var(--accent); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.plan .price { font-size: 3rem; font-weight: 800; margin: 14px 0 4px; letter-spacing: -.03em; }
.plan .price .pre { font-size: 1rem; font-weight: 700; color: var(--muted); vertical-align: middle; margin-right: 6px; }
.plan .price.sm { font-size: 2.1rem; }
.plan .sub { color: var(--muted); font-size: .9rem; min-height: 2.6em; }
.plan .check { margin: 24px 0 28px; }

/* Sobre mí */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about-photo { position: relative; }
.about-photo .frame {
  border-radius: 22px; overflow: hidden; aspect-ratio: 4/5;
  background: var(--card); border: 1px solid var(--line);
}
.about-photo .frame img, .about-photo .frame .ph {
  width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05);
  display: grid; place-items: center; color: var(--muted); font-weight: 700;
}
.about-photo .loc {
  position: absolute; bottom: -16px; right: -10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800;
  padding: 12px 18px; border-radius: 16px; text-align: center; font-size: .85rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.about-photo .loc .em { font-size: 1.4rem; display: block; }
.about-text h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 12px 0 22px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-text p strong { color: var(--text); }
.about-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.feat { background: var(--card); border: 1px solid var(--line-soft); border-radius: 14px; padding: 20px; }
.feat .fi { font-size: 1.4rem; margin-bottom: 10px; }
.feat h4 { font-size: 1rem; margin-bottom: 4px; }
.feat p { color: var(--muted); font-size: .85rem; margin: 0; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact h3 { font-size: 1.5rem; margin-bottom: 10px; }
.contact > div > p { color: var(--muted); margin-bottom: 26px; max-width: 38ch; }
.channels { display: grid; gap: 14px; }
.channel {
  display: flex; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 16px 18px; transition: border-color .25s, transform .25s;
}
.channel:hover { border-color: var(--line); transform: translateX(4px); }
.channel .ci { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.channel .ci.wa { background: rgba(37,211,102,.14); }
.channel .ci.em { background: rgba(255,255,255,.06); }
.channel .ci.ph { background: rgba(245,166,35,.14); }
.channel strong { display: block; font-size: .98rem; }
.channel span { color: var(--muted); font-size: .88rem; }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; }
form { display: grid; gap: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; color: var(--text);
  font-family: inherit; font-size: 1rem; transition: border-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #5f7393; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2393a4c0' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent); text-decoration: underline; }
.form-msg { display: none; padding: 14px 16px; border-radius: 12px; font-size: .95rem; }
.form-msg.ok { display: block; background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.4); color: #8ff0b5; }
.form-msg.err { display: block; background: rgba(255,80,80,.1); border: 1px solid rgba(255,80,80,.4); color: #ff9d9d; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-top .brand { font-size: 1.3rem; }
.footer-top p { color: var(--muted); margin-top: 12px; max-width: 34ch; font-size: .95rem; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--muted); font-size: .94rem; padding: 4px 0; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line-soft); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }

/* ---------- Página legal ---------- */
.legal { padding: clamp(56px, 8vw, 90px) 0; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin-bottom: 12px; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.legal h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.legal p, .legal li { color: #c4cfe0; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal .placeholder { background: rgba(245,166,35,.12); border: 1px dashed var(--accent); color: var(--accent-2); padding: 1px 7px; border-radius: 5px; font-size: .92em; font-weight: 700; }
.legal .note { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 18px 20px; margin: 26px 0; font-size: .95rem; }
.back-link { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); margin-bottom: 28px; font-size: .9rem; }
.back-link:hover { color: var(--accent); }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 1000;
  max-width: 560px; margin-inline: auto;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  transform: translateY(160%); transition: transform .5s var(--ease);
}
.cookie.show { transform: translateY(0); }
.cookie p { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.cookie p a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: .88rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { order: -1; }
  .photo-ring { width: 220px; }
  .grid-3, .pricing { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .process::before { display: none; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; background: var(--bg-2);
    flex-direction: column; gap: 0; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .4s var(--ease); padding: 10px 20px 20px;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line-soft); }
  .nav-links .btn { margin-top: 12px; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } .about-feats { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
