/* ===================================================
   MateAventura - I.E. Los Morochucos
   Landing Page Styles
   =================================================== */

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

:root {
  --primary:       #1a56db;
  --primary-light: #3b82f6;
  --primary-dark:  #1e40af;
  --accent:        #06b6d4;
  --accent-light:  #e0f7fa;
  --purple:        #7c3aed;
  --green:         #10b981;
  --orange:        #f59e0b;
  --bg-hero:       #eef4ff;
  --bg-section:    #f8fafc;
  --text-main:     #1e293b;
  --text-muted:    #64748b;
  --white:         #ffffff;
  --border:        #e2e8f0;
  --shadow-sm:     0 2px 8px rgba(26,86,219,.10);
  --shadow-md:     0 8px 32px rgba(26,86,219,.14);
  --radius:        14px;
  --radius-sm:     8px;
}

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

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-main);
  background: var(--white);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ─── NAVBAR ──────────────────────────────────────── */
.navbar-mateaventura {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  padding: .75rem 0;
  position: sticky;
  top: 0;
  z-index: 1040;
  transition: box-shadow .3s;
}

.navbar-brand-wrap { display:flex; align-items:center; gap:.5rem; text-decoration:none; }
.brand-logo {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 4px 12px rgba(26,86,219,.3);
}
.brand-logo svg { width:26px; height:26px; color:#fff; }
.brand-text { line-height:1.1; }
.brand-name { font-size:1.25rem; font-weight:900; color:var(--primary); letter-spacing:-.5px; }
.brand-sub  { font-size:.72rem; font-weight:600; color:var(--text-muted); }

.nav-link-custom {
  font-weight:700; font-size:.92rem; color:var(--text-main) !important;
  padding:.4rem .9rem !important; border-radius:var(--radius-sm);
  transition: color .2s, background .2s;
  display:flex; align-items:center; gap:.35rem;
}
.nav-link-custom:hover, .nav-link-custom.active {
  color: var(--primary) !important;
  background: var(--bg-hero);
}
.nav-link-custom svg { width:16px; height:16px; }

.btn-nav-login {
  background: var(--white);
  border: 2px solid var(--primary);
  color: var(--primary) !important;
  border-radius: 50px;
  padding:.38rem 1.2rem !important;
  font-weight:700;
  transition: all .25s;
}
.btn-nav-login:hover {
  background: var(--primary);
  color: var(--white) !important;
}

.btn-nav-register {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white) !important;
  border: none;
  border-radius: 50px;
  padding: .4rem 1.2rem;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  box-shadow: 0 4px 14px rgba(26,86,219,.3);
  transition: all .25s;
}
.btn-nav-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,86,219,.4);
  color: var(--white) !important;
}

/* ─── HERO ────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, var(--bg-hero) 0%, #dbeafe 50%, #e0f2fe 100%);
  padding: 4rem 0 0;
  overflow: hidden;
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content:'';
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 10% 20%, rgba(26,86,219,.06) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(6,182,212,.08) 0%, transparent 50%);
  pointer-events:none;
}

/* floating math symbols */
.math-float {
  position: absolute;
  font-weight: 800;
  opacity: .18;
  animation: floatSymbol 6s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}
.math-float:nth-child(1)  { top:8%;  left:5%;  font-size:1.6rem; color:var(--purple);  animation-delay:0s;   }
.math-float:nth-child(2)  { top:15%; left:52%; font-size:2rem;   color:var(--primary); animation-delay:1s;   }
.math-float:nth-child(3)  { top:55%; left:8%;  font-size:1.4rem; color:var(--accent);  animation-delay:2s;   }
.math-float:nth-child(4)  { top:70%; left:48%; font-size:1.8rem; color:var(--green);   animation-delay:.5s;  }
.math-float:nth-child(5)  { top:30%; left:78%; font-size:1.3rem; color:var(--orange);  animation-delay:1.5s; }
.math-float:nth-child(6)  { top:80%; left:75%; font-size:1.6rem; color:var(--purple);  animation-delay:2.5s; }

@keyframes floatSymbol {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-18px) rotate(3deg); }
}

.hero-badge {
  display:inline-flex; align-items:center; gap:.4rem;
  background: rgba(26,86,219,.1);
  color: var(--primary);
  border-radius: 50px;
  padding:.3rem .9rem;
  font-size:.82rem; font-weight:700;
  margin-bottom:1.2rem;
  border: 1px solid rgba(26,86,219,.2);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--text-main);
  margin-bottom: 1.1rem;
}
.hero-title .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}
.hero-title .highlight::after {
  content:'';
  position:absolute; bottom:-4px; left:0; right:0; height:4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius:4px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .75rem 1.8rem;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(26,86,219,.35);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  display: inline-flex; align-items:center; gap:.5rem;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(26,86,219,.45);
  color:#fff;
}

.btn-hero-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: .72rem 1.6rem;
  font-size: 1rem;
  font-weight: 800;
  transition: all .2s;
  text-decoration: none;
  display: inline-flex; align-items:center; gap:.5rem;
}
.btn-hero-secondary:hover {
  border-color: var(--primary);
  background: var(--bg-hero);
  color: var(--primary);
}

/* hero image */
.hero-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero-img-blob {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,86,219,.12) 0%, rgba(6,182,212,.08) 100%);
  bottom: 0; left: 50%; transform: translateX(-50%);
  animation: pulseBg 4s ease-in-out infinite;
}
@keyframes pulseBg {
  0%,100% { transform: translateX(-50%) scale(1); }
  50%      { transform: translateX(-50%) scale(1.04); }
}
.hero-img {
  position: relative;
  max-height: 420px;
  filter: drop-shadow(0 12px 32px rgba(26,86,219,.18));
  animation: heroFloat 5s ease-in-out infinite;
  z-index: 2;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ─── FEATURE CARDS (mini) ─────────────────────────── */
.feature-cards-row { margin-top: 2.5rem; }
.feature-card-mini {
  background: var(--white);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  height: 100%;
}
.feature-card-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card-icon {
  width:40px; height:40px; border-radius:10px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.feature-card-icon svg { width:22px; height:22px; }
.icon-purple { background: rgba(124,58,237,.12); color:var(--purple); }
.icon-green  { background: rgba(16,185,129,.12); color:var(--green);  }
.icon-orange { background: rgba(245,158,11,.12); color:var(--orange); }
.feature-card-title { font-size:.85rem; font-weight:800; margin-bottom:.15rem; }
.feature-card-desc  { font-size:.75rem; color:var(--text-muted); font-weight:600; line-height:1.4; }

/* ─── MISSION STRIP ───────────────────────────────── */
.mission-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.mission-text-wrap { display:flex; align-items:center; gap:1rem; }
.mission-icon-big {
  width:56px; height:56px; border-radius:50%;
  background: linear-gradient(135deg,var(--primary),var(--accent));
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.mission-icon-big svg { width:28px; height:28px; color:#fff; }
.mission-label { font-size:.82rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.5px; }
.mission-desc  { font-size:.9rem; font-weight:600; color:var(--text-main); line-height:1.5; }

.stat-item { text-align:center; }
.stat-num  { font-size:1.9rem; font-weight:900; color:var(--primary); line-height:1; }
.stat-lbl  { font-size:.8rem; font-weight:600; color:var(--text-muted); }
.stat-divider { width:1px; background:var(--border); }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width:768px) {
  .hero-section { padding: 2.5rem 0 0; min-height:auto; }
  .hero-title { font-size: 2rem; }
  .hero-img { max-height: 300px; }
  .hero-img-blob { width:300px; height:300px; }
  .stat-divider { display:none; }
}
