/* ============================
   EOS BOLIVIA — Estilos Principales
   ============================ */

:root {
  --primary:    #0a1628;
  --secondary:  #102547;
  --accent:     #00c2e0;
  --accent2:    #0077b6;
  --light:      #f0f4f8;
  --white:      #ffffff;
  --gray:       #6b7a8d;
  --gradient:   linear-gradient(135deg, #0a1628 0%, #102547 60%, #0d3460 100%);
  --shadow:     0 8px 32px rgba(0,0,0,0.18);
  --radius:     12px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: #1a2332;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── Utilidades ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
}
.section-title span { color: var(--accent2); }
.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 3.5rem;
}
.divider {
  width: 60px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0.75rem auto 1.2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
}
.btn-primary:hover { background: #00a8c5; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,194,224,0.4); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--primary); transform: translateY(-2px); }

/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  padding: 0.6rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-logo img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(0,194,224,0.4));
}
.nav-logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
}
.nav-logo-text span { color: var(--accent); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}
.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 60%; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 60%; }
.nav-cta { margin-left: 0.5rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════
   HERO
══════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/banner.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.28);
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
#hero.loaded .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.72;
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.12;
  animation: float linear infinite;
}
@keyframes float {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.12; }
  90%  { opacity: 0.08; }
  100% { transform: translateY(-100px) scale(1.4); opacity: 0; }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 7rem 0 4rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,194,224,0.12);
  border: 1px solid rgba(0,194,224,0.35);
  color: var(--accent);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeDown 0.8s ease both;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.9s 0.15s ease both;
  letter-spacing: -1px;
}
.hero-title .highlight {
  background: linear-gradient(90deg, var(--accent), #00eaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* ── Slogan ── */
.hero-slogan {
  margin: 1.8rem auto;
  max-width: 860px;
  padding: 0 1.5rem;
}
.slogan-text {
  font-size: clamp(1.35rem, 4.5vw, 2.1rem);
  font-style: italic;
  font-weight: 800;
  color: #00c2e0;
  text-align: center;
  line-height: 1.4;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,0.9);
}

.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  animation: fadeUp 0.9s 0.42s ease both;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.9s 0.45s ease both;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  z-index: 2;
  animation: bounceY 2s infinite;
}
.hero-scroll svg { width: 20px; height: 20px; fill: var(--accent); }
@keyframes bounceY {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ══════════════════════════════
   STATS BAR
══════════════════════════════ */
#stats {
  background: var(--gradient);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-item { color: var(--white); }
.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.68);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.35rem;
}

/* ══════════════════════════════
   ABOUT
══════════════════════════════ */
#about {
  padding: 6rem 0;
  background: var(--light);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-wrap img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--accent);
  color: var(--primary);
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 800;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,194,224,0.35);
}
.about-badge span { display: block; font-size: 2rem; line-height: 1; }
.about-badge small { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; }
.about-text .tag {
  display: inline-block;
  background: rgba(0,119,182,0.1);
  color: var(--accent2);
  padding: 0.25rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}
.about-text h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.2rem;
  line-height: 1.25;
}
.about-text h2 span { color: var(--accent2); }
.about-text p { color: var(--gray); margin-bottom: 1.2rem; font-size: 1rem; }
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 1.6rem 0 2rem;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #2a3a50;
  font-weight: 500;
}
.feature-item svg { flex-shrink: 0; color: var(--accent); width: 18px; height: 18px; }

/* ══════════════════════════════
   SERVICES
══════════════════════════════ */
#services {
  padding: 6rem 0;
  background: var(--white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}
.service-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
  transition: var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-5deg); }
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
}
.service-card p { font-size: 0.9rem; color: var(--gray); line-height: 1.65; }
.service-number {
  position: absolute;
  top: 1.5rem; right: 1.8rem;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(0,0,0,0.04);
  line-height: 1;
  user-select: none;
}

/* ══════════════════════════════
   WHY CHOOSE US
══════════════════════════════ */
#why {
  padding: 6rem 0;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}
#why::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(0,194,224,0.06);
  pointer-events: none;
}
#why .section-title { color: var(--white); }
#why .section-subtitle { color: rgba(255,255,255,0.6); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}
.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: var(--transition);
}
.why-card:hover {
  background: rgba(0,194,224,0.1);
  border-color: rgba(0,194,224,0.3);
  transform: translateY(-5px);
}
.why-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  display: block;
}
.why-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.5rem; }
.why-card p { color: rgba(255,255,255,0.58); font-size: 0.88rem; }

/* ══════════════════════════════
   CONTACT
══════════════════════════════ */
#contact {
  padding: 6rem 0;
  background: var(--light);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}
.contact-info p { color: var(--gray); margin-bottom: 2rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--white);
}
.contact-item-text span { display: block; font-size: 0.78rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }
.contact-item-text strong { color: var(--primary); font-size: 0.95rem; }
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #dde3ec;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--primary);
  background: var(--light);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent2);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,119,182,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-msg {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  display: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
}
.form-msg.success { display: block; background: #d4edda; color: #155724; }
.form-msg.error   { display: block; background: #f8d7da; color: #721c24; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.8rem;
}
.footer-brand img {
  height: 52px;
  margin-bottom: 1rem;
  filter: brightness(1.1);
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.2rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.4rem;
}
.social-link {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
}
.social-link:hover { background: var(--accent); border-color: var(--accent); color: var(--primary); transform: translateY(-3px); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: var(--accent); text-decoration: none; }

/* ══════════════════════════════
   BACK TO TOP
══════════════════════════════ */
#backTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px; height: 46px;
  background: var(--accent2);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}
#backTop.visible { opacity: 1; transform: translateY(0); }
#backTop:hover { background: var(--accent); transform: translateY(-3px); }

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(36px);
  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); }

/* Delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
.delay-7 { transition-delay: 0.7s; }
.delay-8 { transition-delay: 0.8s; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-badge { bottom: -1rem; right: -0.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-links, .nav-cta {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10,22,40,0.98);
    padding: 1.5rem;
    gap: 0.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open, .nav-cta.open { display: flex; }
  .nav-cta { padding: 0.5rem 1.5rem 1.5rem; }
  .hamburger { display: flex; }
  #navbar { position: fixed; }

  .form-row { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-slogan { gap: 0.15rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}
