/* Sitio principal de BuscoVisaRD (usa los colores de styles.css) */

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
.site-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- Navegación ---------- */
.site-nav { position: sticky; top: 0; z-index: 30; background: rgba(11, 11, 11, 0.92); backdrop-filter: blur(10px); border-bottom: 3px solid var(--accent); }
.site-nav .site-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-links a { color: #e6e6e6; text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-cta { min-height: 42px; padding: 8px 12px; font-size: 0.88rem; white-space: nowrap; }
@media (max-width: 380px) { .site-nav .brand span { font-size: 1rem; } .nav-cta { padding: 8px 10px; } }
.menu-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-menu { display: none; background: #111; border-top: 1px solid #222; }
.mobile-menu.is-open { display: block; animation: rise 0.25s ease both; }
.mobile-menu a { display: block; color: #fff; text-decoration: none; font-weight: 600; padding: 14px 16px; border-bottom: 1px solid #1d1d1d; }

/* ---------- Portada ---------- */
.site-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(43, 88, 214, 0.5), transparent 45%),
    radial-gradient(circle at 5% 95%, rgba(255, 255, 255, 0.06), transparent 45%),
    linear-gradient(160deg, #0b0b0b 0%, #171717 55%, #262626 100%);
  padding: 44px 0 56px;
}
.site-hero::before {
  content: ""; position: absolute; inset: -50%;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 18px, transparent 18px 36px);
  animation: stripes 22s linear infinite;
}
.site-hero .site-wrap { position: relative; z-index: 1; display: grid; gap: 32px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-light); margin: 0 0 12px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.site-hero h1 { margin: 0 0 14px; font-size: 2.2rem; line-height: 1.08; letter-spacing: -0.025em; animation: rise 0.6s ease 0.1s both; }
.site-hero h1 em { font-style: normal; color: var(--accent-light); }
.site-hero .lead { margin: 0 0 24px; color: #cfcfcf; font-size: 1.05rem; max-width: 34em; animation: rise 0.6s ease 0.2s both; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; animation: rise 0.6s ease 0.3s both; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 0.9rem; color: #d6d6d6; animation: rise 0.6s ease 0.4s both; }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points svg { width: 18px; height: 18px; color: var(--accent-light); }

.hero-badge { position: relative; width: min(280px, 70vw); aspect-ratio: 1; margin: 0 auto; }
.hero-badge img {
  position: absolute; inset: 14%; width: 72%; height: 72%; border-radius: 50%; background: #fff; object-fit: cover;
  box-shadow: 0 0 0 6px var(--accent), 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: badge-in 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.3) both, float 6s ease-in-out 1s infinite;
}
.hero-badge .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(143, 178, 255, 0.45); animation: spin 40s linear infinite; }
.hero-badge .ring::before, .hero-badge .ring::after { content: "★"; position: absolute; color: var(--accent-light); font-size: 18px; }
.hero-badge .ring::before { top: -12px; left: 50%; transform: translateX(-50%); }
.hero-badge .ring::after { bottom: -12px; left: 50%; transform: translateX(-50%); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section-alt { background: #fff; }
.section-head { max-width: 640px; margin: 0 0 32px; }
.section-head h2 { margin: 0 0 10px; font-size: 1.9rem; line-height: 1.15; letter-spacing: -0.02em; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.section-head .eyebrow { color: var(--accent); }

/* Servicios */
.services { display: grid; gap: 14px; }
.service {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px;
  text-decoration: none; color: var(--text); box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.section-alt .service { background: var(--bg); box-shadow: none; }
.service:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 34px rgba(16, 24, 40, 0.12); }
.service-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; margin-bottom: 6px; transition: background 0.2s; }
.service:hover .service-icon { background: var(--accent); }
.service-icon svg { width: 24px; height: 24px; }
.service h3 { margin: 0; font-size: 1.08rem; }
.service p { margin: 0; color: var(--muted); font-size: 0.93rem; flex: 1; }
.service-link { font-weight: 700; color: var(--accent); font-size: 0.92rem; margin-top: 6px; }
.service-link::after { content: " →"; transition: margin 0.2s; }
.service:hover .service-link::after { margin-left: 4px; }

/* Pasos */
.steps { display: grid; gap: 14px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding: 22px 20px 22px 76px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--brand);
  box-shadow: 0 0 0 4px var(--accent-50);
}
.step h3 { margin: 0 0 4px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* Modalidades */
.modes { display: grid; gap: 14px; }
.mode { border-radius: var(--radius); padding: 24px 20px; color: #fff; background: linear-gradient(150deg, #111, #262626); position: relative; overflow: hidden; }
.mode::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; border: 18px solid rgba(143, 178, 255, 0.14); }
.mode.mode-virtual { background: linear-gradient(150deg, #142c74, var(--accent)); }
.mode h3 { margin: 10px 0 6px; font-size: 1.2rem; }
.mode p { margin: 0 0 14px; color: #dcdcdc; font-size: 0.95rem; position: relative; z-index: 1; }
.mode a { position: relative; z-index: 1; }
.mode-icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, 0.12); display: grid; place-items: center; }
.mode-icon svg { width: 24px; height: 24px; }

/* Preguntas frecuentes */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 0 18px; transition: box-shadow 0.2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--brand-100); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 18px 28px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 500; color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Llamado a la acción */
.cta-band { background: linear-gradient(135deg, #0b0b0b, #1c1c1c 60%, #142c74); color: #fff; border-radius: 22px; padding: 36px 22px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: -50%; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 16px, transparent 16px 32px); animation: stripes 22s linear infinite; }
.cta-band > * { position: relative; }
.cta-band h2 { margin: 0 0 8px; font-size: 1.7rem; }
.cta-band p { margin: 0 0 20px; color: #cfcfcf; }

/* Contacto */
.contact { display: grid; gap: 18px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.contact-list .c-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.contact-list .c-icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.contact-list a, .contact-list span { color: var(--text); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.map { width: 100%; min-height: 300px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--brand-50); }

/* Pie */
.site-footer { background: #0b0b0b; color: #bdbdbd; padding: 40px 0 28px; margin-top: 64px; border-top: 3px solid var(--accent); }
.site-footer .site-wrap { display: grid; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer-brand img { width: 52px; height: 52px; border-radius: 50%; background: #fff; }
.footer-brand b { color: var(--accent-light); }
.site-footer p { margin: 10px 0 0; font-size: 0.9rem; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 0.95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #bdbdbd; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #222; padding-top: 18px; font-size: 0.82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  animation: badge-in 0.6s ease 1s both;
}
.wa-float svg { width: 30px; height: 30px; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Pantallas grandes ---------- */
@media (min-width: 640px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .modes { grid-template-columns: 1fr 1fr; }
  .site-hero h1 { font-size: 2.8rem; }
  .cta-band { padding: 48px 32px; }
  .site-footer .site-wrap { grid-template-columns: 2fr 1fr 1fr; }
  .footer-bottom { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .site-hero { padding: 72px 0 84px; }
  .site-hero .site-wrap { grid-template-columns: 1.25fr 1fr; }
  .site-hero h1 { font-size: 3.4rem; }
  .hero-badge { width: 360px; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { padding: 76px 20px 22px; }
  .contact { grid-template-columns: 1fr 1.3fr; align-items: stretch; }
  .section { padding: 88px 0; }
  .section-head h2 { font-size: 2.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* Áreas de práctica: tarjetas oscuras de 4 columnas */
.service-area { background: linear-gradient(160deg, #111, #242424); color: #fff; border-color: #2a2a2a; }
.service-area p { color: #c9c9c9; }
.service-area .service-icon { background: var(--accent); }
.service-area .service-link { color: var(--accent-light); }
.service-area:hover { border-color: var(--accent-light); }
@media (min-width: 960px) { .services-4 { grid-template-columns: repeat(4, 1fr); } }
