/* ============================================================
   CAUXE · layout.css
   Loader, promo bar, navbar, hero, secciones, footer
   ============================================================ */

/* ============== LOADER ============== */
.loader {
  position: fixed; inset: 0;
  z-index: 9999;
  background: var(--cauxe-deep);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-x { width: 96px; height: 96px; }
.loader-x svg { width: 100%; height: 100%; }
.loader-x .x-line {
  fill: none;
  stroke: var(--cauxe-spark);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawX 1.4s ease forwards;
  filter: drop-shadow(0 0 20px var(--cauxe-spark-glow));
}
.loader-x .x-line.l2 { animation-delay: 0.4s; }
@keyframes drawX { to { stroke-dashoffset: 0; } }
.loader-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeUp 0.6s ease 1s forwards;
}

/* ============== PROMO BAR ============== */
.promo-bar {
  background: linear-gradient(90deg, var(--cauxe-deep), var(--cauxe-flow), var(--cauxe-deep));
  background-size: 200% 100%;
  animation: gradientShift 8s ease infinite;
  color: var(--cauxe-white);
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.promo-bar a { color: var(--cauxe-spark); font-weight: 600; }
.promo-bar a:hover { color: var(--cauxe-white); }
.promo-icon {
  display: inline-flex;
  width: 18px; height: 18px;
  background: var(--cauxe-spark);
  color: var(--cauxe-deep);
  border-radius: 50%;
  align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 11px;
}

/* ============== NAVBAR ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  padding: 10px 32px;
  border-bottom-color: var(--cauxe-gray-light);
  box-shadow: 0 2px 12px rgba(10, 31, 68, 0.06);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--cauxe-deep);
}
.nav-logo .x-mark { color: var(--cauxe-flow); font-style: italic; font-weight: 900; }
.nav-links {
  display: none;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  align-items: center;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a { color: var(--cauxe-deep); position: relative; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--cauxe-spark);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--cauxe-flow); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cauxe-deep);
  color: var(--cauxe-white);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--cauxe-white); }
.nav-cta::after { display: none; }
.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  width: 28px;
  padding: 4px;
}
@media (min-width: 1024px) { .nav-burger { display: none; } }
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--cauxe-deep);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============== MOBILE MENU ============== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--cauxe-deep);
  color: var(--cauxe-white);
  display: flex;
  flex-direction: column;
  padding: 80px 32px 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--cauxe-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.mobile-menu-close:hover { background: var(--cauxe-spark); color: var(--cauxe-deep); }
.mobile-menu-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 32px;
}
.mobile-menu-logo .x-mark { color: var(--cauxe-spark); font-style: italic; }
.mobile-menu a {
  display: block;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--cauxe-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.2s ease;
}
.mobile-menu a:hover { color: var(--cauxe-spark); }
.mobile-menu .mobile-cta {
  margin-top: 32px;
  background: linear-gradient(135deg, var(--cauxe-flow), var(--cauxe-spark));
  color: var(--cauxe-deep);
  padding: 16px 24px;
  border-radius: var(--r-pill);
  font-weight: 700;
  text-align: center;
  border-bottom: 0;
}

/* ============== HERO ============== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(0, 212, 255, 0.1), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(25, 118, 210, 0.08), transparent 50%),
    linear-gradient(180deg, var(--cauxe-white) 0%, var(--cauxe-sand-2) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 31, 68, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 31, 68, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
#particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
@media (min-width: 1024px) { .hero-content { grid-template-columns: 1.2fr 1fr; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cauxe-white);
  border: 1px solid var(--cauxe-gray-light);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--cauxe-deep);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.1s forwards;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--cauxe-success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--cauxe-deep);
  margin-bottom: 28px;
}
.hero-title span { display: inline-block; opacity: 0; transform: translateY(30px); animation: fadeUp 0.8s ease forwards; }
.hero-title .w1 { animation-delay: 0.2s; }
.hero-title .w2 { animation-delay: 0.35s; }
.hero-title .w3 { animation-delay: 0.5s; font-style: italic; font-weight: 400; color: var(--cauxe-flow); }
.hero-title .w4 { animation-delay: 0.65s; }
.hero-title .w5 {
  animation-delay: 0.8s;
  background: linear-gradient(135deg, var(--cauxe-flow), var(--cauxe-spark));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-weight: 900;
}
.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--cauxe-charcoal);
  line-height: 1.55;
  max-width: 600px;
  margin-bottom: 40px;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.8s ease 1s forwards;
}
.hero-sub strong { font-weight: 600; color: var(--cauxe-deep); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; opacity: 0; animation: fadeUp 0.8s ease 1.2s forwards; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--cauxe-gray-light);
  opacity: 0;
  animation: fadeUp 0.8s ease 1.4s forwards;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  color: var(--cauxe-deep);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-stat-num small { font-size: 20px; color: var(--cauxe-flow); }
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cauxe-gray);
  margin-top: 6px;
}
.hero-visual { position: relative; opacity: 0; animation: fadeUp 1s ease 0.6s forwards; }
.hero-visual svg { width: 100%; height: auto; max-width: 480px; margin: 0 auto; filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.3)); }

/* ============== MARQUEE ============== */
.marquee {
  background: var(--cauxe-deep);
  color: var(--cauxe-white);
  padding: 20px 0;
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 80px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--cauxe-deep), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--cauxe-deep), transparent); }
.marquee-track {
  display: flex;
  gap: 48px;
  animation: scroll 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-item {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.marquee-item .dot { width: 8px; height: 8px; background: var(--cauxe-spark); border-radius: 50%; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============== TRUST ROW ============== */
.trust { padding: 60px 0; background: var(--cauxe-white); border-bottom: 1px solid var(--cauxe-gray-light); }
.trust-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cauxe-gray);
  margin-bottom: 28px;
}
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 48px; opacity: 0.55; }
.trust-row .logo-placeholder {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--cauxe-deep);
  transition: opacity 0.3s ease;
}
.trust-row .logo-placeholder:hover { opacity: 1; }

/* ============== SECTIONS GENERIC ============== */
.section { padding: 120px 0; position: relative; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cauxe-flow);
}
.section-eyebrow::before { content: ''; width: 32px; height: 1px; background: currentColor; }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--cauxe-deep);
  margin-bottom: 24px;
  max-width: 880px;
}
.section-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--cauxe-flow), var(--cauxe-spark));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.section-lead {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--cauxe-charcoal);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 64px;
  font-weight: 300;
}
.section-lead strong { font-weight: 600; color: var(--cauxe-deep); }

/* Variantes de fondo */
.section.dark { background: var(--cauxe-deep); color: var(--cauxe-white); }
.section.dark .section-title { color: var(--cauxe-white); }
.section.dark .section-lead { color: rgba(255, 255, 255, 0.75); }
.section.dark .section-lead strong { color: var(--cauxe-white); }
.section.dark .section-eyebrow { color: var(--cauxe-spark); }
.section.sand { background: var(--cauxe-sand-2); border-top: 1px solid var(--cauxe-gray-light); border-bottom: 1px solid var(--cauxe-gray-light); }

/* ============== FOOTER ============== */
.footer { background: var(--cauxe-deep-3); color: rgba(255, 255, 255, 0.7); padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 48px; margin-bottom: 64px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.footer-brand .footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--cauxe-white); margin-bottom: 16px; }
.footer-brand .footer-logo .x { color: var(--cauxe-spark); font-style: italic; font-weight: 900; }
.footer-brand .footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
  line-height: 1.4;
  max-width: 300px;
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.3);
  color: var(--cauxe-success);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 20px;
}
.footer-status-dot { width: 8px; height: 8px; background: var(--cauxe-success); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}
.footer-social a:hover { background: var(--cauxe-flow); color: white; transform: translateY(-2px); }
.footer-col-title { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--cauxe-white); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: rgba(255, 255, 255, 0.6); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--cauxe-spark); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 12px; color: rgba(255, 255, 255, 0.4); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: rgba(255, 255, 255, 0.4); }
.footer-legal a:hover { color: var(--cauxe-spark); }
