/* =============================================
   NEXOS TRADING - Sitio público 2025
   Tema claro / rojo, con animaciones
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-base:      #ffffff;
  --bg-primary:   #f7f5f5;
  --bg-card:      #ffffff;
  --bg-card-alt:  #faf6f6;

  --accent-red:      #D1160F;
  --accent-red-dark: #851418;
  --accent-red-dim:  rgba(209, 22, 15, 0.08);

  --text-primary:   #201d1d;
  --text-secondary: #6b6468;
  --text-muted:     #a39ca0;

  --border:        rgba(35, 31, 32, 0.1);
  --border-accent: rgba(209, 22, 15, 0.35);

  --radius:    14px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
i[data-lucide] { width: 18px; height: 18px; }

/* ── PRELOADER ── */
#preloader {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: #ffffff;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.preloader-logo { width: 150px; animation: preloader-pulse 1.4s ease-in-out infinite; }
.preloader-logo svg { width: 100%; height: auto; display: block; }
@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.7; }
}
.preloader-bar { width: 150px; height: 3px; background: var(--border); border-radius: 999px; overflow: hidden; }
.preloader-bar-fill {
  width: 36%; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-red-dark));
  animation: preloader-loading 1.1s ease-in-out infinite;
}
@keyframes preloader-loading {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(380%); }
}
body.is-loading { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .preloader-logo, .preloader-bar-fill { animation: none; }
}

/* ── SCROLL REVEAL ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.21,.6,.35,1), transform 0.7s cubic-bezier(.21,.6,.35,1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(.21,.6,.35,1), transform 0.6s cubic-bezier(.21,.6,.35,1);
}
[data-reveal-stagger].is-visible > * { opacity: 1; transform: translateY(0); }
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 0.13s; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 0.21s; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 0.29s; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 0.37s; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 6%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.is-scrolled { box-shadow: 0 6px 24px rgba(35, 20, 20, 0.08); }
.navbar-brand { display: flex; align-items: center; gap: 8px; position: relative; z-index: 80; }
.brand-logo { height: 32px; display: inline-flex; align-items: center; }
.brand-logo svg { height: 100%; width: auto; display: block; }

/* ── LOGO X: interactive effect ── */
.logo-x {
  transform-box: fill-box; transform-origin: 50% 50%;
  animation: logo-x-pulse 2.4s ease-in-out infinite;
}
.logo-x-a, .logo-x-b {
  transform-box: fill-box; transform-origin: 50% 50%;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), filter 0.35s ease;
}
@keyframes logo-x-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(209,22,15,0)); }
  50% { transform: scale(1.14); filter: drop-shadow(0 0 9px rgba(209,22,15,0.85)); }
}
.navbar-brand:hover .logo-x,
.footer-logo:hover .logo-x {
  animation: none;
  transform: scale(1.18);
  filter: drop-shadow(0 0 12px rgba(209,22,15,0.95));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.navbar-brand:hover .logo-x-a,
.footer-logo:hover .logo-x-a { transform: translate(-4px, -3.2px) rotate(-12deg); filter: drop-shadow(0 0 6px rgba(133,20,24,0.9)); }
.navbar-brand:hover .logo-x-b,
.footer-logo:hover .logo-x-b { transform: translate(4px, 3.2px) rotate(12deg); filter: drop-shadow(0 0 6px rgba(209,22,15,1)); }
.navbar-brand:active .logo-x-a { transform: translate(-7px, -5.6px) rotate(-20deg); }
.navbar-brand:active .logo-x-b { transform: translate(7px, 5.6px) rotate(20deg); }
.logo-spark {
  position: absolute; left: 0; top: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-red); pointer-events: none; z-index: 5;
  box-shadow: 0 0 6px rgba(209,22,15,0.8);
  animation: logo-spark-fly 0.6s ease-out forwards;
}
@keyframes logo-spark-fly {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(0.2); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-x { animation: none; }
  .logo-x-a, .logo-x-b { transition: none; }
}
.navbar-links { display: none; gap: 32px; align-items: center; }
.navbar-links a {
  position: relative; color: var(--text-secondary); font-weight: 500;
  transition: color var(--transition); padding-bottom: 4px;
}
.navbar-links a::after {
  content: ''; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px;
  background: var(--accent-red); transform: translateX(-50%);
  transition: width var(--transition);
}
.navbar-links a:hover { color: var(--accent-red); }
.navbar-links a:hover::after { width: 100%; }
.navbar-links-cta.btn { display: none; }
.navbar-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: none; background: transparent; cursor: pointer;
  color: var(--text-primary); border-radius: var(--radius-sm);
  transition: background var(--transition), transform 0.2s ease;
  position: relative; z-index: 80;
}
.navbar-toggle:active { transform: scale(0.9); background: var(--accent-red-dim); }
.navbar-toggle i { transition: transform 0.3s ease; }

@media (max-width: 767px) {
  .navbar-cta-desktop.btn { display: none; }
  .navbar-links {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 26px;
    position: fixed; inset: 0; z-index: 70;
    background: #ffffff;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  }
  .navbar-links.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
  .navbar-links a { font-size: 22px; font-weight: 700; color: var(--text-primary); }
  .navbar-links a::after { display: none; }
  .navbar-links-cta.btn {
    display: inline-flex; margin-top: 10px;
  }
  .navbar-backdrop {
    position: fixed; inset: 0; z-index: 65; background: rgba(20, 8, 8, 0.4);
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s;
  }
  .navbar-backdrop.is-open { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .navbar:has(#navbarLinks.is-open) { backdrop-filter: none; z-index: 75; }
}
@media (min-width: 768px) {
  .navbar-links { display: flex; }
  .navbar-toggle { display: none; }
}

/* ── BUTTONS ── */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; border: none; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(209, 22, 15, 0.28);
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-primary:hover::before { left: 130%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(209, 22, 15, 0.38); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.btn-ghost:hover { border-color: var(--border-accent); color: var(--accent-red); transform: translateY(-2px); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 6% 90px;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  color: #ffffff;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  animation: pattern-drift 40s linear infinite;
}
@keyframes pattern-drift { from { background-position: 0 0; } to { background-position: 260px 260px; } }
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(50px); opacity: 0.55;
  background: radial-gradient(circle, var(--accent-red), transparent 70%);
  animation: float 9s ease-in-out infinite;
  pointer-events: none;
}
.hero-blob.b1 { width: 360px; height: 360px; top: -120px; left: -80px; animation-delay: 0s; }
.hero-blob.b2 { width: 280px; height: 280px; bottom: -100px; right: -60px; animation-delay: 2s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -24px) scale(1.08); }
}
.hero-content { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin-bottom: 22px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.35);
  color: #ffffff; font-size: 13px; font-weight: 600; border-radius: 999px;
  backdrop-filter: blur(4px);
  animation: hero-fade-up 0.8s ease both; animation-delay: 0.05s;
}
.hero-badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-red);
  box-shadow: 0 0 0 0 rgba(209,22,15,0.6);
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(209,22,15,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(209,22,15,0); }
  100% { box-shadow: 0 0 0 0 rgba(209,22,15,0); }
}
.hero h1 {
  font-size: clamp(32px, 6vw, 56px); font-weight: 800; line-height: 1.15; margin-bottom: 20px;
  letter-spacing: -0.01em;
  animation: hero-fade-up 0.8s ease both; animation-delay: 0.2s;
}
.hero p {
  color: rgba(255,255,255,0.85); font-size: 18px; margin-bottom: 32px; max-width: 620px; margin-left: auto; margin-right: auto;
  animation: hero-fade-up 0.8s ease both; animation-delay: 0.35s;
}
.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: hero-fade-up 0.8s ease both; animation-delay: 0.5s;
}
.hero .btn-ghost { border-color: rgba(255,255,255,0.4); color: #ffffff; }
.hero .btn-ghost:hover { border-color: #ffffff; color: #ffffff; }
.hero-highlights {
  display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 38px;
  animation: hero-fade-up 0.8s ease both; animation-delay: 0.65s;
}
.hero-highlight { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); }
.hero-highlight i { width: 16px; height: 16px; color: var(--accent-red); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.55); border-radius: 999px;
  display: flex; justify-content: center; padding-top: 8px;
  animation: hero-fade-up 0.8s ease both; animation-delay: 0.8s;
}
.scroll-cue span { width: 4px; height: 8px; border-radius: 999px; background: #fff; animation: scroll-cue-move 1.6s ease-in-out infinite; }
@keyframes scroll-cue-move {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(14px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge, .hero h1, .hero p, .hero-actions, .hero-highlights, .scroll-cue { animation: none; opacity: 1; }
  .hero::before, .hero-blob, .scroll-cue span { animation: none; }
}

@media (max-width: 600px) {
  .hero { min-height: 100vh; padding: 96px 6% 70px; }
  .hero-blob.b1 { width: 220px; height: 220px; }
  .hero-blob.b2 { width: 180px; height: 180px; }
  .hero p { font-size: 16px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-highlights { gap: 16px 22px; margin-top: 28px; }
  .scroll-cue { display: none; }
  .section { padding: 56px 6%; }
  .section-head { margin-bottom: 34px; }
  .banner { padding: 40px 6%; }
}

/* ── BANNER ── */
.banner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 56px 6%;
  text-align: center;
  color: #ffffff;
}
.banner-content h2 { font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; margin-bottom: 8px; max-width: 760px; margin-left: auto; margin-right: auto; }
.banner-content p { color: rgba(255,255,255,0.85); font-size: 14px; letter-spacing: 0.02em; }

/* ── SECTIONS ── */
.section { padding: 80px 6%; max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--bg-primary); max-width: none; }
.section-alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.section-head h2 { position: relative; display: inline-block; font-size: clamp(24px, 3.5vw, 32px); font-weight: 800; margin-bottom: 18px; }
.section-head h2::after {
  content: ''; position: absolute; left: 50%; bottom: -10px; width: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-red-dark));
  transform: translateX(-50%); border-radius: 2px;
  transition: width 0.6s ease;
}
.section-head.is-visible h2::after { width: 56px; }
.section-head p { color: var(--text-secondary); }
.empty-state { text-align: center; color: var(--text-muted); }

/* ── NOSOTROS ── */
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent-red);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px;
}
.nosotros-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
.nosotros-text h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; margin-bottom: 16px; line-height: 1.25; }
.nosotros-text p { color: var(--text-secondary); margin-bottom: 14px; }
.check-list { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.check-list i { color: var(--accent-red); flex-shrink: 0; }
.nosotros-photo {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(35, 20, 20, 0.12);
  transition: transform var(--transition);
}
.nosotros-photo:hover { transform: translateY(-6px); }
.nosotros-photo img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 420px; transition: transform 0.5s ease; }
.nosotros-photo:hover img { transform: scale(1.05); }
@media (min-width: 900px) { .nosotros-grid { grid-template-columns: 1.1fr 0.9fr; } }

/* ── SERVICIOS ── */
.grid-servicios { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-servicio { padding: 28px; }
.card-servicio .card-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-red-dim); border-radius: var(--radius-sm); margin-bottom: 16px; color: var(--accent-red);
  transition: transform var(--transition), background var(--transition);
}
.card-servicio:hover .card-icon { background: var(--accent-red); color: #fff; transform: rotate(-6deg) scale(1.08); }

/* ── GALERÍA ── */
.grid-gallery { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3; box-shadow: 0 10px 30px rgba(35,20,20,0.08); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(20,5,5,0.88));
}
.gallery-titulo { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.gallery-lugar { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.85); }
.gallery-lugar i { width: 12px; height: 12px; color: var(--accent-red); }

/* ── CARDS / GRID ── */
.grid { display: grid; gap: 24px; }
.grid-productos { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-testimonios { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 4px 18px rgba(35,20,20,0.05);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); border-color: var(--border-accent); box-shadow: 0 16px 36px rgba(209,22,15,0.14); }

.card-producto { padding: 0; display: flex; flex-direction: column; }
.card-producto .card-photo { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #fff; }
.card-producto .card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.card-producto:hover .card-photo img { transform: scale(1.06); }
.card-producto .card-body { padding: 24px; }

.card-producto .card-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-red-dim); border-radius: var(--radius-sm); margin: 24px 24px 0; color: var(--accent-red);
}
.card-producto > .card-icon + .card-body { padding-top: 16px; }
.card-tag {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent-red-dark);
  background: var(--accent-red-dim); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card-desc { color: var(--text-secondary); font-size: 14px; margin-bottom: 16px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-red); font-size: 14px; transition: gap var(--transition); }
.card-link i { transition: transform var(--transition); }
.card-link:hover i { transform: translateX(4px); }

.spec-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.spec-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.spec-list i { width: 14px; height: 14px; flex-shrink: 0; color: var(--accent-red); }

.card-testimonio { background: var(--bg-card-alt); padding: 28px; }
.quote-icon { color: var(--accent-red); opacity: 0.6; margin-bottom: 12px; }
.testimonio-autor { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.autor-avatar {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark)); color: #fff; font-weight: 700;
}
.autor-nombre { font-weight: 600; font-size: 14px; }
.autor-detalle { font-size: 13px; color: var(--text-muted); }

/* ── FORM / CONTACTO ── */
.contacto-grid { display: grid; gap: 40px; grid-template-columns: 1fr; max-width: 1000px; margin: 0 auto; }
@media (min-width: 800px) { .contacto-grid { grid-template-columns: 1.1fr 0.9fr; } }

.form-contacto { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.form-row input, .form-row textarea {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text-primary); font-family: inherit; font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent-red); box-shadow: 0 0 0 3px var(--accent-red-dim); }
.form-contacto .btn { align-self: flex-start; }

.contacto-info { display: flex; flex-direction: column; gap: 14px; }
.info-card {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.info-card:hover { border-color: var(--border-accent); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(209,22,15,0.12); }
.info-card-static:hover { transform: none; border-color: var(--border); box-shadow: none; }
.info-card i { color: var(--accent-red); flex-shrink: 0; margin-top: 2px; }
.info-label { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.info-value { font-size: 14px; font-weight: 600; }

/* ── FOOTER ── */
.footer { padding: 56px 6% 0; border-top: 1px solid var(--border); color: var(--text-secondary); background: var(--bg-primary); }
.footer-grid {
  display: grid; gap: 36px; max-width: 1200px; margin: 0 auto; padding-bottom: 40px;
  grid-template-columns: 1fr; border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-logo { height: 28px; display: inline-flex; align-items: center; margin-bottom: 14px; }
.footer-logo svg { height: 100%; width: auto; display: block; }
.footer-social { display: flex; gap: 14px; margin-top: 14px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; color: var(--text-secondary); transition: border-color var(--transition), color var(--transition), transform var(--transition); }
.footer-social a:hover { border-color: var(--accent-red); color: var(--accent-red); transform: translateY(-3px); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col p { font-size: 14px; }
.footer-title { font-weight: 700; color: var(--text-primary); margin-bottom: 4px; font-size: 14px; }
.footer-col a, .footer-col span { font-size: 14px; color: var(--text-secondary); transition: color var(--transition); }
.footer-col a:hover { color: var(--accent-red); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 20px 0 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--text-muted); flex-wrap: wrap;
}
.footer-admin-link { opacity: 0.7; }
.footer-admin-link:hover { color: var(--accent-red); opacity: 1; }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed; left: 18px; bottom: 20px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, #2bd366, #1da851); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(29, 168, 81, 0.4);
  animation: wa-pulse 2.6s ease-in-out infinite;
  transition: transform 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float:active { transform: scale(0.92); }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(29, 168, 81, 0.4); }
  50% { box-shadow: 0 8px 30px rgba(29, 168, 81, 0.7), 0 0 0 6px rgba(29, 168, 81, 0.12); }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-float { animation: none; } }

/* ── TOUCH FEEDBACK (sin hover real) ── */
@media (hover: none) {
  .card:active { transform: scale(0.98); transition: transform 0.15s ease; }
  .btn:active { transform: scale(0.95); }
  .info-card:active { transform: scale(0.97); }
  .footer-social a:active { transform: scale(0.9); }
  .gallery-item:active img { transform: scale(1.04); }
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(209,22,15,0.35);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-4px); }

/* ── TOAST ── */
.toast {
  position: fixed; top: 16px; right: 16px; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  background: #ffffff; box-shadow: 0 12px 32px rgba(35,20,20,0.18);
  animation: toast-in 0.35s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translate(20px, -10px); } to { opacity: 1; transform: translate(0,0); } }
.toast-success { border-left: 4px solid var(--accent-red); color: var(--accent-red-dark); }
.toast-danger  { border-left: 4px solid #851418; color: #851418; }

/* ── ZOOM / LIGHTBOX ── */
img.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(12, 4, 4, 0.92);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s;
  padding: 24px;
}
.lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox img {
  max-width: min(92vw, 1100px); max-height: 80vh; object-fit: contain;
  border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.92); transition: transform 0.3s ease;
}
.lightbox.is-open img { transform: scale(1); }
.lightbox-caption { color: #fff; margin-top: 16px; font-size: 15px; text-align: center; max-width: 90vw; }
.lightbox-close {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff;
  cursor: pointer; transition: background var(--transition), transform 0.2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-close:active { transform: scale(0.9); }

/* ── NAVBAR LOGIN LINK ── */
.navbar-login-desktop {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; margin-right: 14px;
  color: var(--text-secondary); border: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.navbar-login-desktop:hover { color: var(--accent-red); border-color: var(--border-accent); background: var(--accent-red-dim); }
.navbar-login-desktop i { width: 16px; height: 16px; }
.navbar-login-link { display: none; }
@media (max-width: 767px) {
  .navbar-login-desktop { display: none; }
  .navbar-login-link {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-muted) !important; font-size: 14px !important; font-weight: 500 !important;
    margin-top: -6px;
  }
  .navbar-login-link i { width: 14px; height: 14px; }
}

/* ── STATS STRIP ── */
.stats-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px;
  margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-numero { display: block; font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--accent-red); line-height: 1.1; }
.stat-label { display: block; margin-top: 6px; font-size: 14px; color: var(--text-secondary); }

/* ── PROCESO ── */
.grid-proceso { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card-proceso { padding: 28px 24px; position: relative; text-align: center; }
.proceso-numero {
  position: absolute; top: 16px; right: 18px; font-size: 13px; font-weight: 800;
  color: var(--text-muted);
}
.card-proceso .card-icon { margin: 0 auto 16px; }
.card-proceso h3 { margin-bottom: 8px; }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; background: none; border: none; cursor: pointer; text-align: left;
  font-size: 16px; font-weight: 700; color: var(--text-primary);
}
.faq-question i { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent-red); transition: transform 0.3s ease; }
.faq-item.is-open .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding: 0 20px 18px; color: var(--text-secondary); }
