/* =========================================
   INMOLEGALMX — GLOBAL STYLES v2
   Fuentes: Montserrat (headings) + Open Sans (body)
   Paleta: Verde oscuro + Azul grisáceo
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800;900&family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@300;400;600&display=swap');

:root {
  /* ── Cerceta (teal) ── */
  --teal-dark:    #0D4A4A;
  --teal-mid:     #1A6B6B;
  --teal-light:   #2A9090;
  --teal-accent:  #3DB8B8;

  /* ── Azul grisáceo ── */
  --blue-gray-dark:  #3D5263;
  --blue-gray-mid:   #5B7A8C;
  --blue-gray-light: #B8CDD6;

  /* ── Aliases semánticos (usados en componentes) ── */
  --green-dark:   var(--teal-dark);
  --green-mid:    var(--teal-mid);
  --green-light:  var(--teal-light);
  --green-accent: var(--teal-accent);
  --blue-gray:    var(--blue-gray-dark);
  --blue-light:   var(--blue-gray-mid);
  --blue-pale:    var(--blue-gray-light);

  /* ── Neutros ── */
  --off-white:    #F4F7F8;
  --white:        #FFFFFF;
  --text-dark:    #0F2A2A;
  --text-mid:     #2E4E4E;
  --text-light:   #5E7878;
  --border:       #C8DDE0;

  /* ── Sombras ── */
  --shadow-sm:    0 2px 8px rgba(13,74,74,0.08);
  --shadow-md:    0 6px 24px rgba(13,74,74,0.13);
  --shadow-lg:    0 16px 48px rgba(13,74,74,0.18);

  --radius:       10px;
  --radius-lg:    18px;
  --transition:   0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
  color: var(--text-dark);
}
/* Outfit para display/hero — se aplica con clase .display o directamente en h1 dentro de .hero/.page-hero */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
p  { font-size: 1rem; color: var(--text-mid); }

/* Outfit aplicado a h1 en hero y page-hero */
.hero h1,
.page-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  letter-spacing: -.02em;
}

/* Clase utilitaria para números grandes y stats */
.stat-num,
.price {
  font-family: 'Outfit', sans-serif !important;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: .92rem; font-weight: 700;
  padding: 13px 28px; border-radius: 50px;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--green-mid); color: var(--white); border-color: var(--green-mid); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--teal-mid); border-color: var(--teal-mid); }
.btn-outline-dark:hover { background: var(--teal-mid); color: var(--white); }

/* --- Eyebrow label --- */
.eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-accent);
  display: block; margin-bottom: 12px;
}

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: 1140px; margin: 0 auto; padding: 0 24px;
}
.navbar-logo { display: flex; align-items: center; gap: 12px; }
.navbar-logo img { height: 38px; width: auto; }
.navbar-logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem; font-weight: 800; color: var(--teal-dark);
}
.navbar-nav { display: flex; align-items: center; gap: 4px; list-style: none; }
.navbar-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: .84rem; font-weight: 600;
  color: var(--text-mid); padding: 8px 14px; border-radius: 8px;
  transition: all var(--transition);
}
.navbar-nav a:hover,
.navbar-nav a.active { color: var(--teal-mid); background: rgba(26,107,107,0.07); }
.navbar-cta { margin-left: 12px; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: all var(--transition); }
.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
}
.mobile-menu a {
  font-family: 'Montserrat', sans-serif; font-size: .9rem; font-weight: 600;
  color: var(--text-mid); padding: 12px 0;
  border-bottom: 1px solid var(--border); display: block;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }

/* === HERO === */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-mid) 45%, var(--blue-gray-dark) 100%);
  display: flex; align-items: center; position: relative; overflow: hidden;
  padding-top: 68px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .5;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--blue-gray-dark); }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 36px; max-width: 520px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image {
  position: absolute; inset: 0;
  width: 100%; overflow: hidden;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .70; mix-blend-mode: normal; }

/* === TRUST BAR === */
.trust-bar { background: var(--off-white); border-bottom: 1px solid var(--border); padding: 20px 0; }
.trust-bar-inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem; font-weight: 600; color: var(--text-light); letter-spacing: .03em;
}
.trust-item svg { color: var(--teal-accent); }

/* === CARDS === */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 32px;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--teal-mid), var(--blue-gray-dark));
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--teal-accent); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(26,107,107,.12), rgba(61,82,99,.1));
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--teal-mid);
}
.card h3 { margin-bottom: 10px; }
.card p  { font-size: .92rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Outfit', sans-serif; font-size: .82rem; font-weight: 700;
  color: var(--teal-mid); margin-top: 16px; transition: gap var(--transition);
}
.card-link:hover { gap: 10px; }

/* === PRICING CARDS === */
.pricing-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 36px;
  transition: all var(--transition); position: relative;
}
.pricing-card.featured {
  border-color: var(--teal-mid);
  box-shadow: var(--shadow-md);
}
.pricing-card .badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--teal-mid); color: var(--white);
  font-family: 'Outfit', sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 16px; border-radius: 20px; white-space: nowrap;
}
.pricing-card .price {
  font-family: 'Outfit', sans-serif; font-size: 3rem; font-weight: 800;
  color: var(--teal-dark); line-height: 1; margin: 16px 0 4px;
}
.pricing-card .price sup { font-size: 1.2rem; vertical-align: super; font-weight: 700; }
.pricing-card .price sub { font-size: .9rem; color: var(--text-light); font-weight: 400; }
.pricing-card .price-note { font-size: .82rem; color: var(--text-light); margin-bottom: 24px; }
.pricing-features { list-style: none; margin: 20px 0 28px; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 7px 0; font-size: .9rem; color: var(--text-mid);
  border-bottom: 1px solid var(--off-white);
}
.pricing-features li::before { content: '✓'; font-weight: 800; color: var(--teal-accent); flex-shrink: 0; margin-top: 2px; }

/* === SECTION HEADERS === */
.section-header { margin-bottom: 52px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p  { font-size: 1.05rem; max-width: 580px; }
.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }

/* === CTA BAND === */
.cta-band {
  background: linear-gradient(135deg, var(--teal-dark), var(--blue-gray-dark));
  padding: 72px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-band > .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p  { color: rgba(255,255,255,0.8); margin-bottom: 32px; font-size: 1.05rem; max-width: 520px; margin-left: auto; margin-right: auto; }

/* === STATS === */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2px; background: var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.stat-item { background: var(--white); padding: 32px 20px; text-align: center; }
.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.4rem; font-weight: 800;
  color: var(--teal-mid); line-height: 1; margin-bottom: 6px;
}
.stat-label { font-size: .84rem; color: var(--text-light); font-weight: 600; }

/* === PAGE HERO (subpages) === */
.page-hero {
  background: linear-gradient(120deg, var(--teal-dark) 0%, var(--blue-gray-dark) 100%);
  padding: 120px 0 64px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 14px; font-family: 'Outfit', sans-serif; font-weight: 900; letter-spacing: -.02em; }
.page-hero p  { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 560px; }
/* Imagen de fondo en page-hero — igual que el hero principal */
.page-hero-img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; overflow: hidden;
}
.page-hero-img img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center; opacity: .70; mix-blend-mode: normal;
}

/* === FORM === */
.form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-family: 'Montserrat', sans-serif;
  font-size: .82rem; font-weight: 700; color: var(--text-mid);
  margin-bottom: 6px; letter-spacing: .03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: 'Open Sans', sans-serif; font-size: .92rem;
  color: var(--text-dark); background: var(--off-white);
  transition: border-color var(--transition), box-shadow var(--transition); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(26,107,107,.12);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* === FAQ === */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-question {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .95rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-dark);
}
.faq-answer { font-size: .9rem; color: var(--text-mid); margin-top: 12px; max-width: 700px; }
.faq-answer.hidden { display: none; }
.faq-toggle { color: var(--teal-mid); font-size: 1.3rem; line-height: 1; flex-shrink: 0; margin-left: 16px; }

/* === FOOTER === */
.footer { background: var(--teal-dark); color: rgba(255,255,255,0.85); padding: 60px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
}
.footer-brand img   { height: 36px; width: auto; margin-bottom: 14px; filter: brightness(2); }
.footer-brand p     { font-size: .88rem; color: rgba(255,255,255,0.65); max-width: 260px; line-height: 1.6; }
.footer-col h4 {
  font-family: 'Outfit', sans-serif; font-size: .78rem;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-accent); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: .88rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,0.45); }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: .9rem;
  transition: all var(--transition);
}
.social-links a:hover { background: var(--teal-mid); border-color: var(--teal-mid); color: var(--white); }

/* === FEATURE ROW === */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-img { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { list-style: none; margin: 0 0 28px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 0; font-size: .92rem; color: var(--text-mid);
}
.feature-list li::before { content: '✓'; font-weight: 800; color: var(--teal-accent); flex-shrink: 0; margin-top: 1px; }

/* === LEGAL PAGES === */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 { font-size: 1.3rem; margin: 40px 0 12px; color: var(--text-dark); }
.legal-content h3 { font-size: 1.05rem; margin: 28px 0 8px; color: var(--text-dark); }
.legal-content p  { margin-bottom: 14px; font-size: .95rem; }
.legal-content ul { padding-left: 20px; margin-bottom: 14px; }
.legal-content ul li { font-size: .95rem; color: var(--text-mid); margin-bottom: 6px; }
.legal-date { font-size: .82rem; color: var(--text-light); margin-bottom: 40px; }

/* === UTILITIES === */
.bg-off-white { background: var(--off-white); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.text-green { color: var(--green-mid); }
.divider { height: 1px; background: var(--border); margin: 48px 0; }

/* === SCROLL REVEAL === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; }
  .feature-img { aspect-ratio: 16/9; }
}
@media (max-width: 600px) {
  .social-proof-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 600px) {
  .navbar-nav, .navbar-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .form-card { padding: 28px 20px; }
  .pricing-card { padding: 32px 24px; }
}
