/* ============================================================
   SYSTEM METRIC — CSS Principal
   Estilo: Minimalismo editorial con toques de lujo
   ============================================================ */

:root {
  --black:    #0a0a0a;
  --white:    #ffffff;
  --off-white:#f7f6f3;
  --gray-100: #f0ede8;
  --gray-300: #c9c3bb;
  --gray-500: #8a8278;
  --gray-700: #4a4540;
  --accent:   #1a3a2a;      /* verde oscuro institucional */
  --accent-light: #2d6348;
  --gold:     #b8966a;      /* acento cálido */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --nav-h: 72px;
  --max-w: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── UTILIDADES ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.centered { text-align: center; }
.mt-auto { margin-top: auto; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}
.section-label.light { color: rgba(255,255,255,0.6); }
.section-label.centered { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--black);
}

.section-intro {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* ── BOTONES ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.85rem 2rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: var(--accent); border-color: var(--accent); }
.btn-lg { font-size: 1rem; padding: 1.1rem 2.5rem; }

.link-arrow {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}
.link-arrow:hover { gap: 0.8rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.07); }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--gold); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  letter-spacing: 0.03em;
  transition: color 0.2s;
  padding: 0.5rem 0;
}
.nav-menu > li > a:hover { color: var(--black); }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: -1.5rem;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  padding: 0.75rem 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.25s var(--ease);
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown-group-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.75rem 1.5rem 0.35rem;
}
.dropdown-menu li a {
  display: block;
  padding: 0.45rem 1.5rem;
  font-size: 0.85rem;
  color: var(--gray-700);
  transition: all 0.15s;
}
.dropdown-menu li a:hover { color: var(--black); background: var(--gray-100); }

.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: heroZoom 12s ease forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(10,10,10,0.72) 0%,
    rgba(10,10,10,0.45) 60%,
    rgba(10,10,10,0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: var(--nav-h);
  animation: heroFade 1s 0.3s both;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 720px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}
.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { transform: scaleY(1); opacity: 1; }
  50%      { transform: scaleY(0.4); opacity: 0.3; }
}

/* ============================================================
   ABOUT STRIP
   ============================================================ */
.about-strip {
  padding: 7rem 0;
  background: var(--white);
}
.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.about-strip-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.about-strip-text h2 em { font-style: italic; color: var(--accent-light); }
.about-strip-text p {
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}
.about-strip-img {
  position: relative;
}
.about-strip-img::before {
  content: '';
  position: absolute;
  inset: -1rem -1rem 1rem 1rem;
  border: 2px solid var(--gold);
  opacity: 0.3;
  z-index: 0;
}
.about-strip-img img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ============================================================
   ÁREAS DE IMPACTO
   ============================================================ */
.areas {
  padding: 7rem 0;
  background: var(--off-white);
}
.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.area-card {
  background: var(--white);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 4px solid var(--black);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.area-card--public { border-top-color: var(--accent); }
.area-card--private { border-top-color: var(--gold); }

.area-card-icon { font-size: 2.5rem; }
.area-card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
}
.area-card-sub {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: -1rem;
}

.area-list { display: flex; flex-direction: column; gap: 1.25rem; }
.area-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gray-100);
}
.area-card--public .area-list li { border-left-color: var(--accent); }
.area-card--private .area-list li { border-left-color: var(--gold); }
.area-list li strong { font-size: 0.9rem; font-weight: 600; color: var(--black); }
.area-list li span { font-size: 0.85rem; color: var(--gray-500); line-height: 1.5; }

/* ============================================================
   AUDITORÍA GRATUITA
   ============================================================ */
.audit {
  background: var(--accent);
  padding: 6rem 0;
}
.audit-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}
.audit-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.audit-text p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 0.75rem;
}
.audit-text p strong { color: var(--white); }
.audit-note {
  font-size: 0.8rem !important;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.45) !important;
}

.audit-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.audit-cta-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
}

/* ============================================================
   AGENTES DE IA
   ============================================================ */
.ia-section {
  padding: 7rem 0;
  background: var(--white);
}

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

.ia-card {
  border: 1px solid var(--gray-100);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease);
}
.ia-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
}
.ia-card:hover { box-shadow: 0 16px 50px rgba(0,0,0,0.07); }

.ia-card-header { display: flex; flex-direction: column; gap: 0.75rem; }
.ia-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--white);
  padding: 0.3rem 0.75rem;
  align-self: flex-start;
}
.ia-badge--public { background: var(--accent); }

.ia-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.ia-card-body p {
  color: var(--gray-700);
  line-height: 1.75;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.ia-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.ia-features li {
  font-size: 0.85rem;
  color: var(--gray-700);
  display: flex;
  gap: 0.5rem;
}
.ia-features li::marker { content: ''; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  color: var(--white);
  padding-top: 5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  display: block;
  margin-bottom: 1rem;
}
.footer-logo span { color: var(--gold); }
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  font-style: italic;
  font-family: var(--font-display);
}

.footer h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer ul a, .footer-contact p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  line-height: 1.6;
}
.footer ul a:hover { color: var(--white); }
.footer-contact a { color: rgba(255,255,255,0.55); }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

/* ============================================================
   PÁGINAS INTERNAS — HERO SIMPLE
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 5rem) 0 4rem;
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-100);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--gray-700);
  max-width: 560px;
  line-height: 1.7;
}

.page-content {
  padding: 5rem 0;
}
.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}
.page-content p {
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.page-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.page-content ul li {
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-strip-inner,
  .areas-grid,
  .ia-grid { grid-template-columns: 1fr; }

  .audit-inner { grid-template-columns: 1fr; gap: 2.5rem; }

  .footer-inner { grid-template-columns: 1fr 1fr; }

  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 2rem;
    gap: 1.25rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    align-items: flex-start;
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }
  .nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--black);
    transition: all 0.3s;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--gray-100);
    opacity: 1;
    pointer-events: auto;
    transform: none;
    padding: 0.5rem 0;
  }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .area-card, .ia-card { padding: 2rem; }
}
