/* ═══════════════════════════════════════════════════════════
   CONSULTORÍA FINANCIERA — Factor Lógico visual clone
   Dark · Orange · Poppins
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg-dark: #141414;
  --bg-card: #1C1C1C;
  --bg-light: #EDEDED;
  --bg-header-scroll: rgba(10, 10, 10, 0.85);
  --accent: #FF6900;
  --accent-hover: #e55e00;
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-dark: #141414;
  --text-gray: #555555;
  --border-orange: #FF6900;
  --font: "Poppins", system-ui, -apple-system, sans-serif;
  --ribbon-h: 34px;
  --header-h: 72px;
  --radius: 24px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: min(1200px, 92%);
  /* legal.css aliases */
  --forest: var(--accent);
  --copper: var(--accent);
  --copper-light: #ff8533;
  --ink: var(--text-dark);
  --muted: var(--text-gray);
  --border: rgba(0, 0, 0, 0.1);
  --sand: var(--bg-light);
  --text: var(--text-dark);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }
body.home { padding-top: 0; }

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.25s, opacity 0.25s;
}

.container { width: var(--container); margin-inline: auto; }

/* ─── COMPLIANCE RIBBON ─── */
.compliance-ribbon {
  position: relative;
  z-index: 400;
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  text-align: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.compliance-ribbon a {
  color: var(--accent);
  text-decoration: underline;
}

.compliance-ribbon a:hover { color: #fff; }

/* ─── HEADER ─── */
.site-header,
.fl-header {
  position: fixed;
  top: var(--ribbon-h);
  left: 0;
  right: 0;
  z-index: 300;
  transition: top 0.4s var(--ease), background 0.4s var(--ease), backdrop-filter 0.4s;
}

.site-header.is-scrolled,
.fl-header.is-scrolled {
  top: 0;
  background: var(--bg-header-scroll);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__inner,
.fl-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  max-width: 1200px;
  margin-inline: auto;
  width: 92%;
}

.site-header__logo,
.fl-header__logo {
  justify-self: start;
}

.site-header__logo img,
.fl-header__logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-nav,
.fl-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  justify-self: center;
}

.site-nav a:not(.btn),
.fl-nav a:not(.btn) {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 0.25rem 0;
}

.site-nav a:not(.btn):hover,
.fl-nav a:not(.btn):hover { color: var(--white); }

.site-nav a.active,
.fl-nav a.active {
  color: var(--accent);
  font-weight: 600;
}

.site-header__cta,
.fl-header__cta {
  justify-self: end;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 310;
  justify-self: end;
  grid-column: 3;
}

.menu-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle span:nth-child(1) { top: 12px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.menu-toggle.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-orange,
.btn-copper {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-orange:hover,
.btn-copper:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--bg-dark);
}

.btn-line {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-line:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block { width: 100%; }
.btn-xl { padding: 0.9rem 1.85rem; font-size: 0.9375rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.8125rem; }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--ribbon-h) + var(--header-h) + 2rem) 0 4rem;
  background-color: var(--bg-dark);
  overflow: hidden;
}

.hero__texture {
  position: absolute;
  inset: 0;
  background-image: url("https://factorlogico.com/wp-content/smush-webp/2025/07/factor-logico-gris-bg-texture.png.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  pointer-events: none;
}

.hero__layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__content h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero__content p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__image img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* ─── LIGHT SECTION ─── */
.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 5rem 0;
  text-align: center;
}

.section-light h2 {
  font-size: clamp(2rem, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  max-width: 900px;
  margin-inline: auto;
}

.section-light .section-sub {
  font-size: 1.0625rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 1.25rem auto 0;
  line-height: 1.7;
}

/* ─── SERVICES ─── */
.services-section {
  background: var(--bg-dark);
  padding: 5rem 0;
}

.services-section__head {
  text-align: center;
  margin-bottom: 3rem;
}

.services-section__head h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255, 105, 0, 0.12);
}

.service-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  line-height: 1.35;
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card li {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.service-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ─── BENEFITS BAND ─── */
.benefits-band {
  background: var(--accent);
  padding: 4rem 0;
  color: var(--white);
}

.benefits-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
}

.benefits-list {
  list-style: none;
  max-width: 800px;
  margin-inline: auto;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.benefits-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.benefits-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ─── DARK CTA ─── */
.cta-dark {
  background: var(--bg-dark);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-dark__texture {
  position: absolute;
  inset: 0;
  background-image: url("https://factorlogico.com/wp-content/smush-webp/2025/07/factor-logico-gris-bg-texture.png.webp");
  background-size: cover;
  opacity: 0.2;
  pointer-events: none;
}

.cta-dark__inner { position: relative; }

.cta-dark h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.cta-dark h3 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 2rem;
}

.cta-dark p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-inline: auto;
}

/* ─── DUAL COLUMNS ─── */
.dual-section {
  background: var(--bg-dark);
  padding: 5rem 0;
}

.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.info-card__head {
  background: var(--accent);
  padding: 1.25rem 1.75rem;
}

.info-card__head h5 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.info-card__body {
  padding: 1.75rem;
}

.info-card__body ul {
  list-style: none;
  padding: 0;
}

.info-card__body li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.65rem;
}

.info-card__body li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ─── FAQ ─── */
.faq-section {
  background: var(--bg-light);
  padding: 5rem 0;
  color: var(--text-dark);
}

.faq-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--text-dark);
}

.faq-list {
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--white);
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  color: var(--accent);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-gray);
  line-height: 1.7;
}

/* ─── CONTACT ─── */
.contact-section {
  background: var(--bg-light);
  padding: 5rem 0;
  color: var(--text-dark);
}

.contact-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.contact-section .contact-intro {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-inline: auto;
}

.contact-form {
  max-width: 640px;
  margin-inline: auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  font: inherit;
  background: #fafafa;
  color: var(--text-dark);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.15);
}

.check {
  display: flex;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-gray);
  margin: 1rem 0;
  cursor: pointer;
}

.check input { accent-color: var(--accent); margin-top: 0.15rem; }
.check a { color: var(--accent); text-decoration: underline; }

.err { display: block; font-size: 0.72rem; color: #c0392b; min-height: 0.85rem; }

.ok {
  margin-top: 0.75rem;
  padding: 0.85rem;
  background: rgba(255, 105, 0, 0.1);
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ─── LEGAL HUB ─── */
.legal-hub {
  background: var(--bg-card);
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-hub h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.legal-hub .section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

.legal-hub__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.legal-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  text-align: left;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
}

a.legal-card:hover,
button.legal-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: rgba(255, 105, 0, 0.08);
}

.legal-card__icon { font-size: 1.35rem; }
.legal-card h3 { font-size: 0.875rem; font-weight: 700; color: var(--white); }
.legal-card p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.legal-card--btn { appearance: none; -webkit-appearance: none; }

.legal-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-strip a,
.legal-strip button {
  color: var(--text-muted);
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.legal-strip a:hover,
.legal-strip button:hover { color: var(--accent); }

/* ─── FOOTER ─── */
.site-footer {
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0;
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  padding-bottom: 2.5rem;
}

.site-footer__brand img {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
}

.site-footer__tagline {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.site-footer__brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 280px;
}

.site-footer h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.site-footer a,
.site-footer .footer-cookie-btn {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.45rem;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.site-footer a:hover,
.site-footer .footer-cookie-btn:hover { color: var(--white); }

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
}

.site-footer__bar a { color: var(--accent); }

.compliance-bar {
  padding: 0.875rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.compliance-bar a,
.compliance-bar .link-btn {
  color: var(--accent);
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.compliance-bar a:hover,
.compliance-bar .link-btn:hover { color: var(--white); }

/* ─── LEGAL PAGES (body.legal) ─── */
body.legal {
  padding-top: calc(var(--ribbon-h) + var(--header-h));
  background: var(--bg-light);
  color: var(--text-dark);
}

body.legal .site-header,
body.legal .fl-header {
  background: var(--bg-header-scroll);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ─── REVEAL ANIMATION ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero__layout { grid-template-columns: 1fr; gap: 2rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .dual-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .site-header__inner,
  .fl-header__inner {
    grid-template-columns: 1fr auto;
  }

  .site-nav,
  .fl-nav {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 250;
    gap: 0;
  }

  .site-nav.is-open,
  .fl-nav.is-open { transform: none; }

  .site-nav a,
  .fl-nav a { padding: 1rem; font-size: 1.125rem !important; }

  .site-header__cta,
  .fl-header__cta { display: none; }

  .menu-toggle { display: block; }

  .services-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
