/* =================================================================       
   NEXO GESTIÓN — Estilos Definitivos
   ================================================================ */

:root {
  --bg-dark: #090c10;
  --bg-card-dark: #121721;
  --bg-light: #f5f3ef;
  --bg-card-light: #ffffff;
  --text-main: #f3f4f6;
  --text-dark: #1a1a1a;
  --text-muted: #9ca3af;
  --text-muted-dark: #6b7280;
  --accent-bronze: #d4af37;
  --wa-green: #25d366;
  --wa-green-dark: #1da851;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-subtle-dark: rgba(0, 0, 0, 0.08);
  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "Work Sans", system-ui, sans-serif;
  --container-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background-color: var(--bg-dark); color: var(--text-main); font-family: var(--font-sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
a { color: inherit; }

/* ============================
   HEADER
   ============================ */
.site-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  max-width: var(--container-max); 
  margin: 0 auto; 
  padding: 12px 32px; 
  border-bottom: 1px solid var(--border-subtle); 
  position: sticky; 
  top: 0; 
  background: rgba(9, 12, 16, 0.95); 
  backdrop-filter: blur(10px); 
  z-index: 100; 
}

.site-header__brand { display: flex; align-items: center; text-decoration: none; }
.site-header__logo { height: 80px; width: auto; display: block; }
@media (max-width: 768px) { .site-header__logo { height: 60px; } }

.site-header__nav { display: none; }
@media (min-width: 1024px) { .site-header__nav { display: flex; gap: 28px; } }
.site-header__nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.site-header__nav a:hover { color: var(--text-main); }

.btn-top-cta { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--accent-bronze); color: var(--accent-bronze); background: transparent; padding: 10px 20px; border-radius: 4px; text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: all 0.2s ease; }
.btn-top-cta:hover { background-color: var(--accent-bronze); color: #000; }

/* ============================
   HERO
   ============================ */
.hero {
  position: relative; min-height: 650px; display: flex; align-items: center; padding: 80px 32px;
  border-bottom: 1px solid var(--border-subtle); overflow: hidden;
  background-image: linear-gradient(135deg, rgba(9, 12, 16, 0.95) 0%, rgba(9, 12, 16, 0.5) 100%), 
                    url('assets/madrid-hero.webp');
  background-size: cover; background-position: center;
}
.hero__container { position: relative; z-index: 3; max-width: var(--container-max); margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.hero__content { max-width: 700px; }
.hero__tag { display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--accent-bronze); margin-bottom: 20px; font-weight: 600; }
.hero__title { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 24px; color: #ffffff; }
.hero__desc { font-size: clamp(1rem, 1.5vw, 1.15rem); color: #d1d5db; margin-bottom: 36px; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero__note { margin-top: 16px; font-size: 0.85rem; color: #9ca3af; }
.hero__stats { display: none; flex-direction: column; gap: 16px; text-align: right; font-size: 0.7rem; letter-spacing: 0.25em; color: var(--text-muted); border-left: 1px solid var(--accent-bronze); padding-left: 32px; }
@media (min-width: 1024px) { .hero__stats { display: flex; } }

/* ============================
   BOTONES
   ============================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: 4px; text-decoration: none; font-size: 0.95rem; font-weight: 600; transition: all 0.2s ease; text-align: center; }
.btn--whatsapp { background-color: var(--wa-green); color: #fff; }
.btn--whatsapp:hover { background-color: var(--wa-green-dark); }
.btn--secondary { color: var(--text-main); background: transparent; border: 1px solid rgba(255,255,255,0.3); }
.btn--secondary:hover { border-color: var(--text-main); background: rgba(255, 255, 255, 0.1); }
.section--light .btn--secondary { color: var(--text-dark); border: 1px solid rgba(0,0,0,0.2); }
.section--light .btn--secondary:hover { border-color: var(--text-dark); background: rgba(0, 0, 0, 0.05); }

/* ============================
   BARRA DE DATOS RÁPIDOS
   ============================ */
.facts-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.facts-bar__item { background: var(--bg-dark); padding: 24px 32px; font-size: 0.9rem; color: var(--text-muted); }
.facts-bar__item strong { display: block; color: var(--text-main); font-size: 1rem; margin-bottom: 4px; }

/* ============================
   SECCIONES
   ============================ */
.section { max-width: var(--container-max); margin: 0 auto; padding: 80px 32px; border-bottom: 1px solid var(--border-subtle); }
.section--light { background-color: var(--bg-light); color: var(--text-dark); border-bottom: none; }
.section--dark { background-color: var(--bg-dark); color: var(--text-main); border-bottom: none; }

.section--light .section__number { color: var(--accent-bronze); }
.section--light .section__header h2 { color: var(--text-dark); }
.section--light .section__lead { color: var(--text-muted-dark); }
.section--light .case-card { background-color: var(--bg-card-light); border: 1px solid var(--border-subtle-dark); color: var(--text-dark); }
.section--light .case-card h3 { color: var(--text-dark); }
.section--light .case-card p { color: var(--text-muted-dark); }
.section--light .case-card__body { color: var(--text-dark); }

.section__number { font-size: 0.75rem; letter-spacing: 0.3em; color: var(--accent-bronze); display: block; margin-bottom: 10px; font-weight: 600; }
.section__header h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 14px; }
.section__top-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: flex-end; margin-bottom: 40px; }
@media (max-width: 900px) { .section__top-row { grid-template-columns: 1fr; gap: 20px; } }
.section__lead { font-size: 1.05rem; line-height: 1.6; margin-bottom: 36px; max-width: 60ch; }

/* ============================
   TARJETAS DE CASOS
   ============================ */
.section__header-flex { margin-bottom: 40px; }
.cases__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.case-card { position: relative; border-radius: 6px; text-decoration: none; display: flex; flex-direction: column; overflow: hidden; transition: all 0.25s ease; border-top: 3px solid var(--accent-bronze); }
.case-card:hover { border-color: var(--accent-bronze); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.case-card__img { width: 100%; height: 200px; position: relative; overflow: hidden; display: block; }
.case-card__img img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.case-card:hover .case-card__img img { transform: translate(-50%, -50%) scale(1.05); }

.case-card__body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.case-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.case-card p { font-size: 0.9rem; flex: 1; }
.case-arrow { padding: 0 24px 24px 24px; font-size: 1.2rem; color: var(--accent-bronze); font-weight: bold; }

/* ============================
   PASOS
   ============================ */
.process__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.step { border-top: 3px solid var(--accent-bronze); padding-top: 20px; }
.step__num { font-family: var(--font-serif); font-size: 2rem; font-weight: 600; color: var(--accent-bronze); display: block; margin-bottom: 10px; opacity: 0.9; }
.step h3 { font-size: 1.3rem; margin-bottom: 12px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* ============================
   CHECKLIST
   ============================ */
.checklist { list-style: none; padding: 0; margin: 0 0 30px 0; }
.checklist li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--border-subtle-dark); position: relative; font-size: 1rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 22px; width: 10px; height: 10px; background: var(--accent-bronze); border-radius: 50%; }

/* ============================
   FAQ
   ============================ */
.faq-wrapper { max-width: 800px; margin-top: 20px; }
details { border-bottom: 1px solid var(--border-subtle); padding: 20px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-bronze); }
details[open] summary::after { content: "−"; }
details p { margin-top: 12px; color: var(--text-muted); max-width: 65ch; }

/* ============================
   CONTACTO
   ============================ */
.contact__actions { display: flex; flex-wrap: wrap; gap: 20px; }

/* ============================
   FOOTER
   ============================ */
.footer { max-width: var(--container-max); margin: 0 auto; padding: 60px 32px 40px; display: flex; flex-direction: column; gap: 40px; }
.footer__container { display: grid; grid-template-columns: 2fr 1fr 1fr auto; align-items: start; gap: 30px; padding-bottom: 40px; border-bottom: 1px solid var(--border-subtle); }
@media (max-width: 900px) { .footer__container { grid-template-columns: 1fr; gap: 20px; } }

.footer__brand { display: flex; flex-direction: column; }
.footer__logo { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.18em; color: #fff; display: block; }
.footer__sub { font-size: 0.6rem; letter-spacing: 0.25em; color: var(--accent-bronze); display: block; margin-top: 2px; }

.footer__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--accent-bronze);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.footer__link:hover { color: var(--text-main); }

.footer__item { display: flex; align-items: center; gap: 10px; }

.footer__icon { width: 18px; height: 18px; color: var(--accent-bronze); flex-shrink: 0; }

.footer__item span,
.footer__item a { font-size: 0.9rem; color: var(--text-muted); text-decoration: none; }
.footer__item a:hover { color: var(--text-main); }

.footer__bottom { 
  display: flex; 
  flex-direction: column; 
  gap: 20px; 
  font-size: 0.85rem; 
  color: var(--text-muted); 
  align-items: center; 
  text-align: center;
}
@media (min-width: 768px) { 
  .footer__bottom { 
    flex-direction: row; 
    justify-content: space-between; 
    align-items: flex-start; 
    text-align: left;
  } 
}

.footer__legal-text { max-width: 65ch; line-height: 1.5; margin: 0; }
.footer__legal-links { display: flex; gap: 16px; align-items: center; white-space: nowrap; }
.footer__legal-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer__legal-links a:hover { color: var(--text-main); }