/* =========================================================
   Contabilidad Ya — Hoja de estilos
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #125ef4;
  --primary-dark: #0b46cc;
  --primary-light: #e8eefe;
  --accent: #800ef4;
  --accent-dark: #6a0bce;
  --accent-light: #f2e8fe;
  --navy: #0d1840;
  --navy-light: #1a2356;
  --ink: #16202e;
  --gray-700: #44505f;
  --gray-500: #6b7686;
  --gray-300: #d9dee4;
  --gray-100: #f3f5f7;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 20px 45px rgba(11, 31, 58, 0.14);
  --max-width: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; color: var(--navy); }

p { margin: 0 0 1em; color: var(--gray-700); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(18, 94, 244, .28);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
  animation: ghost-glow 3s ease-in-out infinite;
}
.btn-ghost::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  animation: btn-shimmer 3.5s ease-in-out infinite;
  animation-delay: 1.2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); }
.btn-white {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
  font-weight: 700;
}
.btn-white:hover { background: rgba(255,255,255,.9); border-color: rgba(255,255,255,.9); transform: translateY(-1px); }
@keyframes ghost-glow {
  0%,100% { border-color: rgba(255,255,255,.35); }
  50% { border-color: rgba(255,255,255,.7); box-shadow: 0 0 18px rgba(255,255,255,.14); }
}
@keyframes btn-shimmer {
  0% { left: -100%; }
  50%,100% { left: 160%; }
}
/* Powered by footer link */
.footer-bottom a { color: #9fb6da; text-decoration: underline; }
.footer-bottom a:hover { color: #fff; }
.btn-block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy);
  color: #cfe3ff;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-contact a, .topbar-social a {
  color: #cfe3ff;
  margin-right: 16px;
  opacity: .9;
}
.topbar-social a:last-child, .topbar-contact a:last-child { margin-right: 0; }
.topbar a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .2s ease, background .2s ease;
}
.site-header.scrolled {
  border-bottom-color: transparent;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(11,31,58,.10);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}
.logo span { color: var(--accent); }
.logo-img {
  height: 30px;
  width: auto;
  display: block;
}

.main-nav { display: flex; }
.main-nav ul { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  padding: 8px 0;
}
.main-nav a:hover { color: var(--primary); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 230px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  white-space: nowrap;
}
.dropdown li a:hover { background: var(--primary-light); color: var(--primary-dark); }

.site-header > .container > .btn { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--navy);
  padding: 4px 8px;
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0; background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 100%); }
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: 44px; letter-spacing: -.5px; }
.hero .accent { color: var(--primary); }
.hero .lead { font-size: 18px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-rating { font-size: 14px; color: var(--gray-700); }

.hero-visual {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 32px;
}
.hero-visual ul { display: flex; flex-direction: column; gap: 18px; }
.hero-visual li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--navy);
}
.hero-visual .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--primary-light);
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-soft { background: var(--gray-100); }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 32px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- Value props ---------- */
.value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card .icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: var(--primary-light);
  border-radius: 12px;
  margin-bottom: 18px;
}
.value-card h3 { font-size: 18px; }
.value-card p { margin-bottom: 0; }
.value-card .icon svg {
  width: 26px; height: 26px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  transition: stroke .2s ease;
}
.value-card:hover .icon svg { stroke: var(--accent); }

/* ---------- Plans ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plan-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
.plan-card.featured {
  border-color: var(--primary);
  border-top-width: 4px;
  box-shadow: var(--shadow-lg);
}
.plan-badge {
  position: absolute;
  top: -13px;
  right: 24px;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}
.plan-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--primary-dark);
  margin-bottom: 10px;
}
.plan-desc { font-size: 14px; min-height: 78px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 18px; }
.plan-price .amount { font-size: 28px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.plan-price .unit { font-size: 13px; color: var(--gray-500); }
.plan-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; flex-grow: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--gray-700); }
.plan-features .check { color: var(--primary); font-weight: 700; flex-shrink: 0; }
.plan-extra { font-size: 13px; color: var(--gray-500); margin-bottom: 10px; }
.plan-offer {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.plans-cta {
  margin-top: 48px;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.plans-cta h3 { color: var(--white); margin: 0; font-size: 19px; max-width: 480px; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  justify-content: center;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card .icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(18, 94, 244, 0.08);
  border-radius: 12px;
  margin-bottom: 18px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover .icon {
  background: rgba(128, 14, 244, 0.12);
  box-shadow: 0 0 0 4px rgba(128, 14, 244, 0.1);
}
.service-icon {
  width: 24px; height: 24px;
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s ease, stroke 0.3s ease;
}
.service-card:hover .service-icon {
  transform: scale(1.15) rotate(5deg);
  stroke: #800ef4;
}
.service-card h3 { font-size: 18px; }
.service-card .more { color: var(--primary-dark); font-weight: 700; font-size: 14px; }
.service-card .more:hover { text-decoration: underline; }

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial-card .stars { color: #f5b400; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial-author .avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.testimonial-author .name { font-weight: 700; color: var(--navy); font-size: 14px; }
.testimonial-author .date { font-size: 13px; color: var(--gray-500); }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  justify-content: center;
}
.stat-card {
  padding: 32px 16px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-300);
  transition: transform .15s ease, box-shadow .15s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-card .num {
  font-size: 38px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat-card p { color: var(--gray-700); margin: 0; font-size: 14px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #280b5e 100%);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  right: -120px; top: -200px;
  background: radial-gradient(circle, rgba(128,14,244,.22) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-question .arrow { transition: transform .2s ease; color: var(--primary); flex-shrink: 0; }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 20px;
}
.faq-item.open .faq-answer { max-height: 320px; }
.faq-answer p { padding-bottom: 18px; margin: 0; }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  background: var(--navy);
  padding: 56px 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p { color: #cfe3ff; max-width: 560px; margin-bottom: 0; }
.breadcrumb { font-size: 13px; color: #9fb6da; margin-bottom: 16px; }
.breadcrumb a { color: #cfe3ff; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-list { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-item .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(18, 94, 244, 0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease;
}
.contact-info-item:hover .icon {
  background: rgba(128, 14, 244, 0.12);
}
.contact-icon {
  width: 20px; height: 20px;
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s ease, stroke 0.3s ease;
}
.contact-info-item:hover .contact-icon {
  transform: scale(1.15);
  stroke: #800ef4;
}
.contact-info-item strong { display: block; color: var(--navy); font-size: 14px; margin-bottom: 2px; }
.contact-info-item p { margin: 0; }

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-row textarea { resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-light); color: #cfe3ff; padding: 56px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-footer h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; }
.site-footer p { color: #9fb6da; font-size: 14px; }
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer ul li, .site-footer ul li a { font-size: 14px; color: #cfe3ff; }
.site-footer ul li a:hover { text-decoration: underline; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.footer-social a:hover { background: var(--primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 13px;
  color: #80a0cf;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px; height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,.45);
  z-index: 90;
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,.6); }
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Sticky CTA mobile ---------- */
.cta-sticky-mobile {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  padding: 12px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 95;
  box-shadow: 0 -2px 20px rgba(11,31,58,.3);
}
.cta-sticky-mobile p { margin: 0; color: #cfe3ff; font-size: 14px; }
.cta-sticky-mobile p strong { color: #fff; }
.cta-sticky-mobile .btn { flex-shrink: 0; padding: 10px 20px; font-size: 14px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .value-props { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .plan-card.featured { border-top-width: 4px; }
}

@media (max-width: 760px) {
  .site-header .container { flex-wrap: wrap; }
  .main-nav { display: none; width: 100%; order: 3; }
  .main-nav.open {
    display: block;
    padding-top: 16px;
    border-top: 1px solid var(--gray-300);
    margin-top: 14px;
  }
  .main-nav.open ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .main-nav.open li { width: 100%; }
  .main-nav.open .main-nav > ul > li > a,
  .main-nav.open li > a { display: block; padding: 10px 0; width: 100%; }
  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    padding-left: 12px;
    margin-top: 4px;
  }
  .has-dropdown.open .dropdown { display: block; }
  .site-header > .container > .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .topbar-social { display: none; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 26px; }
  .hero { padding: 48px 0; }
  .plans-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner, .plans-cta { flex-direction: column; text-align: center; }
  .hero-actions { justify-content: center; }
  /* Sticky CTA bar */
  .cta-sticky-mobile { display: flex; }
  body.has-sticky-cta { padding-bottom: 64px; }
  .has-sticky-cta .whatsapp-float { bottom: 80px; }
}
