/* ==========================================================
   Agencia VCP — estilos
   ========================================================== */
:root {
  --ink: #111014;
  --ink-2: #1c1a21;
  --paper: #f6f2ea;
  --paper-2: #ece6da;
  --white: #ffffff;
  --accent: #ff5631;
  --accent-dark: #d93f1d;
  --muted: #6b6672;
  --line: rgba(17, 16, 20, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1180px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 16px; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.on-dark .btn-outline:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 16, 20, 0.92); backdrop-filter: blur(10px);
  color: var(--white); border-bottom: 1px solid var(--line-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; font-family: var(--font-head); }
.logo-mark { font-size: 28px; font-weight: 700; letter-spacing: -0.04em; }
.logo-mark span { color: var(--accent); }
.logo-sub { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; opacity: .7; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--accent); }
.nav .btn { padding: 10px 18px; font-size: 15px; opacity: 1; }
.nav .btn:hover { color: var(--white); }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: .2s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--ink); padding: 10px 20px 24px; border-bottom: 1px solid var(--line-dark);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--white); padding: 96px 0 110px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -180px; top: -120px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,86,49,.45), rgba(255,86,49,0) 65%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(42px, 6vw, 76px); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 20px; opacity: .82; max-width: 560px; margin: 22px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-card {
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 30px;
}
.hero-card h2 { font-size: 20px; margin-bottom: 18px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.hero-card .check-list li { opacity: .9; font-size: 16px; }

@media (max-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(32px, 4vw, 50px); }
.section-head p { font-size: 19px; color: var(--muted); }
.section-dark .section-head p { color: rgba(255,255,255,.7); }

@media (max-width: 700px) { .section { padding: 68px 0; } }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(17,16,20,.35); }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 20px;
}
.service h3 { font-size: 22px; }
.service p { color: var(--muted); font-size: 16px; margin: 0; }

@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Precios ---------- */
.pricing-group + .pricing-group { margin-top: 64px; }
.pricing-group-title { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 24px; }
.pricing-group-title h3 { font-size: 28px; margin: 0; }
.pricing-group-title p { margin: 0; color: var(--muted); font-size: 15px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pricing-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.plan {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; position: relative;
}
.plan.featured { background: var(--ink); color: var(--white); border-color: var(--ink); }
.plan-badge {
  position: absolute; top: -12px; left: 30px; background: var(--accent); color: var(--white);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.plan h4 { font-size: 21px; margin-bottom: 6px; }
.plan-desc { font-size: 15px; color: var(--muted); min-height: 48px; }
.plan.featured .plan-desc { color: rgba(255,255,255,.7); }
.plan-price { font-family: var(--font-head); font-size: 40px; font-weight: 700; letter-spacing: -0.03em; margin: 10px 0 2px; }
.plan-price small { font-size: 16px; font-weight: 500; opacity: .7; letter-spacing: 0; }
.plan-tax { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.plan.featured .plan-tax { color: rgba(255,255,255,.6); }
.plan .check-list { flex: 1; margin-bottom: 26px; }
.plan .check-list li { font-size: 15px; margin-bottom: 10px; }
.plan-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.plan.featured .plan-note { color: rgba(255,255,255,.6); }
.plan.featured .btn-outline:hover { background: var(--white); color: var(--ink); }

.pricing-legal {
  margin-top: 44px; padding: 24px 28px; border-radius: var(--radius); background: var(--white);
  border: 1px dashed var(--line); font-size: 15px; color: var(--muted);
}
.pricing-legal strong { color: var(--ink); }
.pricing-legal a { color: var(--accent-dark); }

@media (max-width: 1050px) { .pricing-grid.cols-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 520px; } .pricing-grid.cols-4 { grid-template-columns: 1fr; } }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { border-top: 2px solid var(--accent); padding-top: 22px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--accent); display: block; margin-bottom: 10px;
}
.step h3 { font-size: 21px; }
.step p { font-size: 16px; color: rgba(255,255,255,.72); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Valores / compromisos ---------- */
.commit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.commit { padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.commit h3 { font-size: 19px; }
.commit p { font-size: 15px; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .commit-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--font-head); font-size: 19px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 400; color: var(--accent); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 40px; }
.faq details a { color: var(--accent-dark); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.contact-info dl { margin: 0; }
.contact-info dt { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); font-weight: 600; margin-top: 22px; }
.contact-info dd { margin: 4px 0 0; font-size: 17px; }
.contact-info dd a { text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.contact-info dd a:hover { color: var(--accent); }

.form { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; margin-bottom: 6px; opacity: .85; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--white); background: var(--ink);
  border: 1px solid var(--line-dark); border-radius: var(--radius-sm); padding: 12px 14px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; opacity: .85; margin-bottom: 20px; }
.check input { margin-top: 4px; accent-color: var(--accent); }
.check a { color: var(--accent); }
.form-note { font-size: 13px; opacity: .6; margin: 14px 0 0; }
.form-alert {
  background: rgba(255, 86, 49, .12); border: 1px solid rgba(255, 86, 49, .45); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 14px; margin: 0 0 16px; line-height: 1.5;
}
.form .form-alert:last-child { margin: 16px 0 0; }
.form-alert a { color: var(--accent); }
[hidden] { display: none !important; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #0a090c; color: rgba(255,255,255,.75); padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--white); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-legal-name { color: var(--white); font-weight: 600; }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; opacity: .7;
}
.secure-pay { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Páginas legales ---------- */
.page-hero { background: var(--ink); color: var(--white); padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); }
.page-hero p { opacity: .7; margin: 0; }

.legal { padding: 64px 0 96px; }
.legal-body { max-width: 820px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 48px; }
.legal-body h2 { font-size: 24px; margin-top: 40px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 19px; margin-top: 26px; }
.legal-body p, .legal-body li { color: #34313a; font-size: 16px; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin: 0 0 1em; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--accent-dark); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15px; }
.legal-body th, .legal-body td { text-align: left; border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.legal-body th { background: var(--paper); font-family: var(--font-head); }
.legal-box { background: var(--paper); border-left: 4px solid var(--accent); padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 1.2em; }
.legal-box p:last-child { margin: 0; }
.legal-toc { background: var(--paper); border-radius: var(--radius-sm); padding: 20px 26px; margin-bottom: 36px; }
.legal-toc strong { display: block; margin-bottom: 8px; font-family: var(--font-head); }
.legal-toc ol { margin: 0; columns: 2; column-gap: 30px; }
.legal-toc li { font-size: 15px; }
@media (max-width: 700px) { .legal-body { padding: 28px 22px; } .legal-toc ol { columns: 1; } }

/* ---------- Gracias ---------- */
.thanks { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.thanks-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; margin: 0 auto 26px; }
.thanks h1 { font-size: clamp(34px, 5vw, 52px); }
.thanks p { max-width: 560px; margin-inline: auto; color: var(--muted); font-size: 18px; }
.thanks .hero-actions { justify-content: center; margin-top: 28px; }
