/* =============================================
   TaxarPro — Estilos principales
   ============================================= */

:root {
  --color-primary: #4A69BD;
  --color-primary-dark: #3A56A0;
  --color-primary-light: #6B85D4;
  --color-text: #4B4B4B;
  --color-text-light: #6B7280;
  --color-heading: #1A1A2E;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8F9FC;
  --color-bg-dark: #0F1117;
  --color-border: #E5E7EB;
  --color-white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(74,105,189,.12);
  --shadow-lg: 0 12px 40px rgba(74,105,189,.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: .25s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --header-height: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Top bar ---- */
.top-bar {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,.75);
  font-size: .8125rem;
  padding: 8px 0;
}

.top-bar a {
  color: rgba(255,255,255,.75);
}

.top-bar a:hover {
  color: var(--color-white);
}

.top-bar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.top-bar__social {
  margin-left: auto;
  display: flex;
  gap: 16px;
}

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo img {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: .9375rem;
}

.nav a:hover {
  color: var(--color-primary);
}

.nav__cta {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600 !important;
}

.nav__cta:hover {
  background: var(--color-primary-dark) !important;
  color: var(--color-white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-heading);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .9375rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,.4);
}

.btn--outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn--full {
  width: 100%;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #0F1117 0%, #1A1F35 50%, #1E2A4A 100%);
  color: var(--color-white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 20%, rgba(74,105,189,.25) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 10% 80%, rgba(74,105,189,.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 780px;
}

.hero__badge {
  display: inline-block;
  background: rgba(74,105,189,.2);
  border: 1px solid rgba(74,105,189,.4);
  color: var(--color-primary-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
  max-width: 620px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary-light);
  line-height: 1;
  margin-bottom: 4px;
}

.stat span {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
}

/* ---- Sections ---- */
.section {
  padding: 96px 0;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section__label {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section__desc {
  font-size: 1.0625rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ---- About ---- */
.about {
  background: var(--color-bg-alt);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.about__card {
  background: var(--color-white);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.about__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.about__icon {
  width: 52px;
  height: 52px;
  background: rgba(74,105,189,.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.about__icon svg {
  width: 26px;
  height: 26px;
}

.about__card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 10px;
}

.about__card p {
  color: var(--color-text-light);
  font-size: .9375rem;
  line-height: 1.65;
}

/* ---- Products ---- */
.products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (min-width: 1100px) {
  .products__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(74,105,189,.3);
}

.product-card--featured {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(74,105,189,.04) 0%, rgba(74,105,189,.01) 100%);
}

.product-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  margin-bottom: 20px;
  border-radius: 14px;
  padding: 12px 16px;
}

.product-card__logo img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

.product-card__logo--light {
  background: #F4F6FB;
  border: 1px solid var(--color-border);
}

.product-card__logo--dark {
  background: #0F1117;
}

.product-card__logo--brand {
  background: #4A90E2;
  padding: 0;
  overflow: hidden;
}

.product-card__logo--brand img {
  max-height: 96px;
  width: 100%;
  object-fit: cover;
}

.product-card__sector {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-primary);
  background: rgba(74,105,189,.1);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.product-card__header h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -.01em;
}

.product-card__tagline {
  color: var(--color-text-light);
  font-size: .9375rem;
  margin: 8px 0 20px;
}

.product-card__features {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}

.product-card__features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: .9rem;
  color: var(--color-text);
  line-height: 1.5;
}

.product-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: .7;
}

.product-card__versions {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.version-tag {
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.version-tag--pro {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.product-card__link {
  font-weight: 600;
  font-size: .9375rem;
  color: var(--color-primary);
  margin-top: auto;
}

.product-card__link:hover {
  color: var(--color-primary-dark);
}

/* ---- Values ---- */
.values {
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.values__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.values .section__label {
  color: var(--color-primary-light);
}

.values h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.values__content > p {
  color: rgba(255,255,255,.7);
  margin-bottom: 32px;
  line-height: 1.7;
}

.values__list {
  list-style: none;
}

.values__list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.75);
  font-size: .9375rem;
  line-height: 1.6;
}

.values__list li:last-child {
  border-bottom: none;
}

.values__list strong {
  display: block;
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: 4px;
}

.values__visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.values__card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 28px;
}

.values__card blockquote {
  font-size: .9375rem;
  color: rgba(255,255,255,.85);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 12px;
}

.values__card cite {
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
  font-style: normal;
}

/* ---- Contact ---- */
.contact {
  background: var(--color-bg-alt);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__info h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-heading);
  margin-bottom: 12px;
}

.contact__info > p {
  color: var(--color-text-light);
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact__methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  color: inherit;
}

.contact__method:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  color: inherit;
}

.contact__method-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact__method strong {
  display: block;
  font-size: .8125rem;
  color: var(--color-text-light);
  font-weight: 500;
  margin-bottom: 2px;
}

.contact__method span {
  font-size: .9375rem;
  color: var(--color-heading);
  font-weight: 600;
}

.contact__form {
  background: var(--color-white);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: .9375rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74,105,189,.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  text-align: center;
  font-size: .75rem;
  color: var(--color-text-light);
  margin-top: 12px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  min-height: 1.2em;
  text-align: center;
  font-size: .88rem;
  margin: 10px 0 0;
}
.form-status--ok { color: #15803d; }
.form-status--err { color: #b91c1c; }

/* ---- Footer ---- */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,.6);
  padding-top: 64px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__brand p {
  margin-top: 16px;
  font-size: .875rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer__links h4 {
  color: var(--color-white);
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.footer__links a {
  display: block;
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  margin-bottom: 10px;
}

.footer__links a:hover {
  color: var(--color-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}

.footer__bottom p {
  font-size: .8125rem;
  text-align: center;
}

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .values__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar__social {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
  }

  .nav a:last-child {
    border-bottom: none;
    margin-top: 8px;
    text-align: center;
  }

  .hero {
    padding: 72px 0 60px;
  }

  .hero__stats {
    gap: 32px;
  }

  .section {
    padding: 64px 0;
  }

  .products__grid {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__stats {
    flex-direction: column;
    gap: 24px;
  }

  .contact__form {
    padding: 24px;
  }
}

/* ---- Página de producto (GesLunas) ---- */
.page-hero {
  padding: 72px 0 56px;
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--color-white);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero p { color: rgba(255,255,255,.75); margin-bottom: 16px; }

.page-hero__logo {
  background: #111;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  justify-content: center;
}

.page-hero__logo img { max-height: 180px; width: auto; }

.highlight-card {
  background: linear-gradient(135deg, rgba(74,105,189,.12), #fff);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 28px;
}

.highlight-card h3 {
  color: var(--color-heading);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.highlight-card p { color: var(--color-text); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.detail-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.detail-card h3 {
  color: var(--color-heading);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.detail-card p { color: var(--color-text-light); font-size: .95rem; }

.note {
  font-size: .85rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .page-hero__grid, .detail-grid { grid-template-columns: 1fr; }
}

.privacy-modal[hidden] { display: none !important; }
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.privacy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 23, .62);
}
.privacy-modal__box {
  position: relative;
  width: min(680px, 100%);
  max-height: min(86vh, 760px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.privacy-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--color-border);
}
.privacy-modal__head h2 {
  font-size: 1.2rem;
  color: var(--color-heading);
  margin: 0;
}
.privacy-modal__close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
  padding: 4px 8px;
}
.privacy-modal__body {
  padding: 20px 22px 28px;
  overflow-y: auto;
  color: var(--color-text);
  font-size: .92rem;
  line-height: 1.6;
}
.privacy-modal__body h3 {
  color: var(--color-heading);
  font-size: 1rem;
  margin: 18px 0 8px;
}
.privacy-modal__body p, .privacy-modal__body li { margin-bottom: 8px; }
.privacy-modal__body ul { padding-left: 18px; }
.privacy-modal__updated { font-size: .8rem; color: var(--color-text-light); margin-top: 20px; }

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  background: #111827;
  color: #f3f4f6;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.cookie-banner p { font-size: .9rem; line-height: 1.5; margin: 0; }
.cookie-banner a { color: #93c5fd; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner__btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.cookie-banner__btn--ok { background: #4A69BD; color: #fff; }
.cookie-banner__btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
@media (max-width: 700px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
}
