/* ============================================================
   VR506 — Corporate Website
   Paleta: Negro #0A0A0A | Rojo #E8001C | Blanco #FFFFFF
   ============================================================ */

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

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #E8001C;
  --red-dark: #B8001A;
  --red-glow: rgba(232, 0, 28, 0.3);
  --black: #0A0A0A;
  --black-2: #111111;
  --black-3: #1A1A1A;
  --gray: #888888;
  --gray-light: #CCCCCC;
  --white: #FFFFFF;
  --font-title: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.3s ease;
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black-2); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ─── UTILITIES ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

.tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray-light);
  max-width: 600px;
  line-height: 1.7;
}

.text-red { color: var(--red); }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--red-glow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ─── NAVBAR ─── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
#navbar.scrolled {
  background: rgba(10,10,10,0.97);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
  border-bottom: 1px solid rgba(232,0,28,0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 44px;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}
.nav-logo img:hover { filter: brightness(0) invert(1) drop-shadow(0 0 8px var(--red)); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 24px !important;
  font-size: 13px !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ─── HERO ─── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.85) 0%,
    rgba(10,10,10,0.6) 50%,
    rgba(232,0,28,0.1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,0,28,0.15);
  border: 1px solid rgba(232,0,28,0.4);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
}
.hero-badge span { width: 6px; height: 6px; background: var(--red); border-radius: 50%; animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.0;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-title em {
  font-style: normal;
  color: var(--red);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--gray-light);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-title);
  animation: bounce 2s infinite;
}
.hero-scroll svg { width: 20px; height: 20px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ─── QUIÉNES SOMOS ─── */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 2px solid var(--red);
  border-radius: 12px;
  z-index: -1;
}

.about-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,0,28,0.1), transparent);
  border-radius: 12px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.stat-box {
  background: var(--black-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}
.stat-box:hover { border-color: var(--red); transform: translateY(-4px); }

.stat-number {
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ─── SERVICIOS ─── */
#services { background: var(--black-2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.service-card {
  background: var(--black-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 36px 28px;
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  border-color: rgba(232,0,28,0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px var(--red-glow);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(232,0,28,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: rgba(232,0,28,0.2);
}
.service-icon svg { width: 28px; height: 28px; color: var(--red); }

.service-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* ─── EDUDRIVE ─── */
#edudrive {
  position: relative;
  overflow: hidden;
}

.edudrive-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(232,0,28,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.edudrive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.edudrive-logo {
  font-family: var(--font-title);
  font-size: 72px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -2px;
}

.edudrive-tagline {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 32px;
}

.edudrive-quote {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
  border-left: 3px solid var(--red);
  padding-left: 20px;
  margin: 28px 0;
}

.edudrive-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.target-pill {
  background: rgba(232,0,28,0.1);
  border: 1px solid rgba(232,0,28,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--gray-light);
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.edudrive-image {
  position: relative;
}

.edudrive-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.edudrive-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 24px;
}

.edu-stat {
  background: var(--black-2);
  padding: 24px;
  text-align: center;
}
.edu-stat-number {
  font-family: var(--font-title);
  font-size: 36px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.edu-stat-label { font-size: 12px; color: var(--gray); margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }

/* ─── PROYECTOS ─── */
#projects { background: var(--black-2); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
}

.project-card.featured {
  grid-column: span 2;
  aspect-ratio: 21/9;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img { transform: scale(1.05); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  transition: var(--transition);
}

.project-tag {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.project-name {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-desc { font-size: 14px; color: var(--gray-light); max-width: 480px; }

/* ─── GALERÍA ─── */
#gallery .gallery-grid {
  columns: 4;
  column-gap: 12px;
  margin-top: 60px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(232,0,28,0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#lightbox.active { display: flex; }
#lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
#lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 32px;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
#lightbox-close:hover { color: var(--red); }

/* ─── POR QUÉ VR506 ─── */
#why { background: var(--black-2); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.why-card {
  background: var(--black-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
}
.why-card:hover {
  border-color: rgba(232,0,28,0.3);
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}

.why-icon {
  width: 64px;
  height: 64px;
  background: rgba(232,0,28,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}
.why-card:hover .why-icon { background: rgba(232,0,28,0.2); }
.why-icon svg { width: 32px; height: 32px; color: var(--red); }

.why-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.why-desc { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* ─── TESTIMONIOS ─── */
#testimonials .testimonials-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.testimonial-card {
  background: var(--black-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 32px;
  transition: var(--transition);
}
.testimonial-card:hover { border-color: rgba(232,0,28,0.2); transform: translateY(-4px); }

.testimonial-stars { color: var(--red); font-size: 18px; margin-bottom: 16px; }

.testimonial-text {
  font-size: 15px;
  color: var(--gray-light);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--black-3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.testimonial-name { font-family: var(--font-title); font-size: 16px; font-weight: 700; }
.testimonial-role { font-size: 12px; color: var(--gray); }

/* ─── CTA FINAL ─── */
#cta {
  background: linear-gradient(135deg, #1a0005 0%, #0A0A0A 40%, #0f0000 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

#cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,0,28,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-title);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--gray-light);
  margin-bottom: 48px;
}

.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─── */
footer {
  background: var(--black-2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 40px;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a {
  font-size: 14px;
  color: var(--gray);
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--red); padding-left: 4px; }

.footer-contact { display: flex; flex-direction: column; gap: 12px; }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray);
}
.footer-contact-item svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; }

.footer-social { display: flex; gap: 12px; margin-top: 20px; }

.social-btn {
  width: 40px;
  height: 40px;
  background: var(--black-3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--gray);
}
.social-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}
.social-btn svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 13px; color: var(--gray); }
.footer-bottom span { color: var(--red); }

.footer-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.footer-divider span {
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}
.footer-divider::before,
.footer-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.06);
}

/* ─── MOBILE NAV ─── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  background: rgba(10,10,10,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition);
}
.mobile-menu a:hover { color: var(--red); }
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 32px;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { columns: 3 !important; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  #about .about-grid,
  .edudrive-grid { grid-template-columns: 1fr; gap: 40px; }

  .about-image-wrap { order: -1; }

  .services-grid { grid-template-columns: 1fr; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; aspect-ratio: 16/9; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .testimonials-wrap { grid-template-columns: 1fr !important; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .gallery-grid { columns: 2 !important; }

  .edudrive-stats { grid-template-columns: 1fr; }

  .edudrive-logo { font-size: 52px; }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1 !important; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
}
