/* ===== RESET & BASE ===== */
* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f5f7fa;
  color: #333;
  margin: 0;
  padding: 0;
}

/* ===== NAVBAR ===== */
#header {
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 0;
}

.navbar { margin-bottom: 0; border: none; border-radius: 0; background: transparent; }

/* MÓVIL: brand visible, nav-logo-item oculto */
.navbar-brand { padding: 5px 10px; }
.navbar-brand img {
  width: auto !important;
  max-width: 110px !important;
  max-height: 46px !important;
  height: auto !important;
  display: block !important;
  margin: 0 !important;
  object-fit: contain;
}
.nav-logo-item { display: none !important; }

/* DESKTOP: brand oculto, logo dentro del nav centrado */
@media (min-width: 768px) {
  .navbar-header .navbar-brand { display: none !important; }
  .nav-logo-item { display: flex !important; align-items: center; }
  .navbar-nav { display: flex !important; float: none !important; align-items: center; margin: 0 auto !important; }
  .navbar-collapse.collapse { display: flex !important; justify-content: center; padding: 0; }
}
.nav-logo-item > a { padding: 6px 8px 6px 0 !important; display: flex !important; align-items: center; }
.nav-logo-item img {
  max-height: 52px !important;
  max-width: 120px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  display: block !important;
}

.navbar-nav > li > a {
  color: #444 !important;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.8px;
  padding: 20px 16px;
  transition: color 0.2s;
}
.navbar-nav > li > a:hover,
.navbar-nav > li.active > a {
  color: #f87105 !important;
  background: transparent !important;
}
.navbar-nav > li.active > a { border-bottom: 2px solid #f87105; }

.navbar-toggle { border-color: #f87105; margin-top: 14px; }
.navbar-toggle .icon-bar { background: #f87105 !important; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  padding: 28px 0 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 300px; height: 300px;
  background: rgba(248,113,5,0.10);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -40px;
  width: 400px; height: 400px;
  background: rgba(248,113,5,0.07);
  border-radius: 50%;
}
.hero-logo-wrap {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.10);
  border-radius: 50%;
  padding: 0;
  box-shadow: 0 0 0 3px rgba(248,113,5,0.25), 0 0 30px rgba(248,113,5,0.15);
  overflow: hidden;
}
.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1.0);
  filter: drop-shadow(0 4px 16px rgba(248,113,5,0.35));
}
.hero h1 {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 10px;
  text-align: center;
  background: none;
}
.hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin: 0 auto 26px;
  line-height: 1.7;
}
.hero-badge {
  display: inline-block;
  background: transparent;
  border: 1.5px solid #f87105;
  color: #f87105;
  border-radius: 30px;
  padding: 6px 20px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero-actions a {
  display: inline-block;
  margin: 6px 8px;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s;
}
.btn-hero-primary {
  background: #f87105;
  color: #fff;
  border: 2px solid #f87105;
}
.btn-hero-primary:hover {
  background: #d96000;
  border-color: #d96000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(248,113,5,0.45);
}
.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: #fff;
}

/* ===== FEATURES STRIP ===== */
.features-strip {
  background: #fff;
  padding: 50px 0;
}
.features-strip h2 {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-align: center;
  background: none;
  padding: 0;
}
.features-strip .subtitle {
  text-align: center;
  color: #888;
  font-size: 15px;
  margin-bottom: 40px;
}
.feature-card {
  background: #f8fafc;
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid #eef0f4;
  transition: all 0.25s;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border-color: #f87105;
}
.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 26px;
}
.icon-orange { background: rgba(248,113,5,0.12);  color: #f87105; }
.icon-blue   { background: rgba(248,113,5,0.1);   color: #f87105; }
.icon-teal   { background: rgba(0,150,130,0.1);   color: #009682; }
.icon-purple { background: rgba(98,73,124,0.1);   color: #62497c; }

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
}
.feature-card p {
  font-size: 13.5px;
  color: #777;
  line-height: 1.7;
  margin: 0;
  text-align: center;
}

/* ===== ROLES SECTION ===== */
.roles-section {
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  padding: 60px 0;
}
.roles-section h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-align: center;
  background: none;
  padding: 0;
}
.roles-section .subtitle {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  margin-bottom: 40px;
}
.role-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.role-card:hover {
  background: rgba(255,255,255,0.11);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.role-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.role-card.admin::before   { background: linear-gradient(90deg, #f87105, #ffb347); }
.role-card.teacher::before { background: linear-gradient(90deg, #f87105, #ffb347); }
.role-card.student::before { background: linear-gradient(90deg, #009682, #00c9ae); }
.role-card.parent::before  { background: linear-gradient(90deg, #a855f7, #c084fc); }

.role-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}
.admin   .role-icon { background: rgba(248,113,5,0.2);    color: #ffb347; }
.teacher .role-icon { background: rgba(248,113,5,0.2);    color: #ffb347; }
.student .role-icon { background: rgba(0,150,130,0.2);    color: #00c9ae; }
.parent  .role-icon { background: rgba(168,85,247,0.2);   color: #c084fc; }

.role-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin: 0 0 12px;
}
.role-card p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin: 0 0 24px;
  text-align: center;
}
.role-link {
  display: inline-block;
  padding: 9px 24px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  border: 1.5px solid;
}
.admin   .role-link { border-color: #ffb347; color: #ffb347; }
.teacher .role-link { border-color: #ffb347; color: #ffb347; }
.student .role-link { border-color: #00c9ae; color: #00c9ae; }
.parent  .role-link { border-color: #c084fc; color: #c084fc; }

.role-card:hover .role-link { background: rgba(255,255,255,0.1); }

/* ===== FOOTER ===== */
#footer {
  background: #111827 !important;
  color: rgba(255,255,255,0.6);
  padding: 30px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-copy a {
  color: #f87105;
  text-decoration: none;
  font-weight: 600;
}
.footer-copy a:hover { color: #ffb347; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  transition: all 0.2s;
  text-decoration: none;
}
.social-links a:hover { background: #f87105; border-color: #f87105; color: #fff; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  background: #f87105;
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(248,113,5,0.4);
  transition: all 0.2s;
  z-index: 999;
}
.back-to-top:hover {
  background: #d96000;
  transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero { padding: 40px 0 35px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* Row equal-height columns */
.equal-height { display: flex; flex-wrap: wrap; }
.equal-height > [class*="col-"] {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}
.equal-height .feature-card,
.equal-height .role-card { flex: 1; }
