/* ============================================
   CURSOS DEL OESTE — CSS Nativo Mobile-First
   Estilo: Material Design / Android Nativo
   ============================================ */

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

/* ---------- Variables ---------- */
:root {
  --primary: #1565c0;
  --primary-light: #1e88e5;
  --primary-dark: #0d47a1;
  --primary-bg: #e3f2fd;
  --cyan-accent: #00bcd4;
  --green-500: #4caf50;
  --green-600: #43a047;
  --red-500: #ef5350;
  --yellow-400: #ffca28;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-400: #bdbdbd;
  --gray-500: #9e9e9e;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  --white: #ffffff;
  --blue-900: #0d1b2a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.1), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.08);
  --shadow-xl: 0 20px 40px rgba(0,0,0,.15);
  --radius: 12px;
  --radius-full: 9999px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- Dark Mode ---------- */
[data-theme="dark"] {
  --primary-bg: #1e2a3a;
  --gray-50: #121212;
  --gray-100: #1e1e1e;
  --gray-200: #2d2d2d;
  --gray-300: #3d3d3d;
  --gray-400: #4d4d4d;
  --gray-500: #6d6d6d;
  --gray-600: #8d8d8d;
  --gray-700: #adadad;
  --gray-800: #cdcdcd;
  --gray-900: #f0f0f0;
  --white: #1a1a1a;
  --blue-900: #0a1520;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed; top: 80px; right: 1rem; z-index: 100;
  width: 44px; height: 44px;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.theme-toggle:hover { transform: scale(1.1); }
.theme-toggle svg { width: 22px; height: 22px; fill: var(--gray-700); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input { font-family: inherit; border: none; outline: none; }
button { cursor: pointer; }

/* ---------- Utilidades ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: var(--radius); font-weight: 700;
  font-size: .95rem; transition: var(--transition); position: relative;
  overflow: hidden; border: none; cursor: pointer; text-decoration: none;
}
.btn-primary {
  background: var(--primary); color: var(--white);
  box-shadow: 0 4px 14px rgba(21,101,192,.35);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(21,101,192,.45); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-success {
  background: var(--green-500); color: var(--white);
  box-shadow: 0 4px 14px rgba(76,175,80,.35);
}
.btn-success:hover { background: var(--green-600); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* Ripple */
.btn .ripple {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,.35);
  transform: scale(0); animation: ripple-anim .6s ease-out;
  pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* ---------- HEADER / NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200); transition: var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 1rem;
}
.nav-brand { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.nav-logo {
  width: 40px; height: 40px; background: var(--primary); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: var(--white);
  font-size: 1.2rem;
}
.nav-logo svg { width: 24px; height: 24px; fill: var(--white); }
.nav-brand-text { display: flex; flex-direction: column; }
.nav-brand-name { font-weight: 900; font-size: 1.1rem; line-height: 1.1; color: var(--gray-900); }
.nav-brand-sub { font-size: .65rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .08em; }

.nav-links { display: none; }
.nav-links.active {
  display: flex; flex-direction: column; position: absolute;
  top: 64px; left: 0; right: 0; background: var(--white);
  border-top: 1px solid var(--gray-200); box-shadow: var(--shadow-lg);
  padding: .5rem 1rem 1.5rem;
}
.nav-links a, .nav-links button {
  display: block; padding: .9rem .8rem; font-size: 1rem; font-weight: 500;
  color: var(--gray-700); border-radius: 8px; background: none; width: 100%;
  text-align: left; transition: var(--transition);
}
.nav-links a:hover, .nav-links button:hover { background: var(--gray-100); color: var(--primary); }
.nav-link-alumnos { color: var(--primary) !important; font-weight: 700 !important; background: var(--primary-bg) !important; }

.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: none;
  color: var(--gray-700); font-size: 1.5rem; border-radius: 50%;
  transition: var(--transition);
}
.nav-toggle:active { background: var(--gray-200); }

/* Hamburger icon */
.hamburger { width: 24px; height: 18px; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.hamburger span {
  display: block; height: 2px; background: var(--gray-700); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 80px 0 3rem; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,27,42,.88) 0%, rgba(21,101,192,.75) 100%);
}
.hero-content {
  position: relative; z-index: 2; max-width: 1200px;
  margin: 0 auto; padding: 0 1rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; background: rgba(30,136,229,.2);
  backdrop-filter: blur(8px); border: 1px solid rgba(30,136,229,.3);
  border-radius: var(--radius-full); color: #bbdefb; font-weight: 600;
  font-size: .85rem; margin-bottom: 1.5rem;
}
.hero-badge .pulse {
  width: 8px; height: 8px; background: var(--green-500);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 900;
  color: var(--white); line-height: 1.1; margin-bottom: 1.2rem;
}
.hero .gradient-text {
  background: linear-gradient(135deg, #42a5f5, #26c6da);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { color: #cfd8dc; font-size: 1.1rem; margin-bottom: 2rem; max-width: 600px; line-height: 1.7; }
.hero-btns { display: flex; flex-direction: column; gap: .8rem; }

/* ---------- Secciones generales ---------- */
section { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .label {
  display: block; color: var(--primary); font-weight: 700;
  text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; margin-bottom: .4rem;
}
.section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 900;
  color: var(--gray-900); line-height: 1.2;
}
.section-header .bar {
  width: 48px; height: 4px; background: var(--primary);
  border-radius: 2px; margin: 1rem auto 0;
}
.section-header p { color: var(--gray-600); margin-top: .8rem; max-width: 600px; margin-left: auto; margin-right: auto; }
/* Left aligned */
.section-header-left { text-align: left; margin-bottom: 2rem; }
.section-header-left .bar { margin-left: 0; }

/* ---------- NOSOTROS ---------- */
.about { background: var(--white); }
.about-grid { display: grid; gap: 2.5rem; }
.about-img-wrap { position: relative; }
.about-img {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xl);
}
.about-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-quote {
  display: none; position: absolute; bottom: -20px; right: -10px;
  background: var(--primary); color: var(--white); padding: 1.2rem 1.5rem;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 260px;
}
.about-quote p { font-weight: 700; font-size: .95rem; line-height: 1.4; }
.about-quote cite { font-size: .8rem; opacity: .85; display: block; margin-top: .4rem; font-style: normal; }
.about-text p { color: var(--gray-600); margin-bottom: 1rem; font-size: 1rem; }
.about-text strong { color: var(--gray-900); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.about-stat-num { font-size: 2.2rem; font-weight: 900; color: var(--primary); line-height: 1; }
.about-stat-label { font-size: .75rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; margin-top: .3rem; }

/* ---------- CURSOS ---------- */
.courses { background: var(--blue-900); color: var(--white); position: relative; overflow: hidden; }
.courses-deco {
  position: absolute; top: -40px; right: -40px; width: 300px; height: 300px;
  opacity: .04; pointer-events: none;
}
.courses-deco svg { width: 100%; height: 100%; fill: var(--white); }
.courses .section-header h2 { color: var(--white); }
.courses .section-header p { color: var(--gray-400); }
.courses-grid { display: grid; gap: 1.5rem; }
.course-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); min-height: 380px; display: flex;
  flex-direction: column; justify-content: flex-end;
}
.course-card-bg {
  position: absolute; inset: 0;
}
.course-card-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.course-card:hover .course-card-bg img { transform: scale(1.08); }
.course-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.4) 50%, transparent 100%);
}
.course-card-body { position: relative; z-index: 2; padding: 1.5rem; }
.course-card-level {
  display: inline-block; padding: .25rem .7rem; background: var(--primary);
  color: var(--white); font-size: .7rem; font-weight: 800; border-radius: var(--radius-full);
  margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .05em;
}
.course-card h3 { font-size: 1.4rem; font-weight: 800; color: var(--white); margin-bottom: .5rem; }
.course-card-features { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.course-card-features li {
  display: flex; align-items: center; gap: .4rem; color: #cfd8dc; font-size: .85rem;
}
.course-card-features li::before {
  content: '★'; color: var(--yellow-400); font-size: .7rem; flex-shrink: 0;
}
.courses-footer {
  margin-top: 2.5rem; text-align: center;
}
.courses-footer-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.08); color: var(--gray-400);
  padding: .7rem 1.2rem; border-radius: var(--radius-full); font-size: .9rem;
}
.courses-footer-badge svg { width: 20px; height: 20px; fill: #42a5f5; flex-shrink: 0; }

/* ---------- SERVICIOS ---------- */
.services { background: var(--primary-bg); }
.services-grid { display: grid; gap: 1.5rem; }
.service-card {
  background: var(--white); padding: 2rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card-icon {
  width: 52px; height: 52px; background: var(--primary-bg); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem;
  color: var(--primary);
}
.service-card-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--gray-900); margin-bottom: .8rem; }
.service-card ul { display: flex; flex-direction: column; gap: .6rem; }
.service-card li {
  display: flex; align-items: flex-start; gap: .4rem; color: var(--gray-600); font-size: .9rem;
}
.service-card li::before {
  content: '›'; color: var(--primary); font-weight: 700; font-size: 1.1rem;
  line-height: 1.3; flex-shrink: 0;
}

/* ---------- ZONA ALUMNOS ---------- */
.student-zone { background: var(--gray-100); border-top: 1px solid var(--gray-200); }
.login-box {
  background: var(--white); padding: 2.5rem 1.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-width: 420px; margin: 0 auto; text-align: center;
}
.login-icon {
  width: 64px; height: 64px; background: var(--primary-bg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem;
  color: var(--primary);
}
.login-icon svg { width: 32px; height: 32px; }
.login-box h3 { font-size: 1.2rem; font-weight: 800; color: var(--gray-900); margin-bottom: .3rem; }
.login-box .login-desc { color: var(--gray-500); font-size: .85rem; margin-bottom: 1.5rem; }
.login-form { display: flex; flex-direction: column; gap: .8rem; }
.input-field {
  width: 100%; padding: .85rem 1rem; border: 2px solid var(--gray-300);
  border-radius: 8px; font-size: .95rem; color: var(--gray-900);
  transition: var(--transition); background: var(--white);
}
.input-field:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21,101,192,.15); }
.input-field::placeholder { color: var(--gray-400); }
.input-code { text-align: center; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.login-error { color: var(--red-500); font-size: .85rem; font-weight: 600; display: none; }
.login-error.visible { display: block; }

/* Panel desbloqueado */
.student-panel {
  background: var(--white); padding: 2rem 1.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-width: 720px; margin: 0 auto;
  display: none;
}
.student-panel.visible { display: block; animation: fadeUp .4s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.student-panel-header {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  color: var(--green-500); font-weight: 700; margin-bottom: 1.5rem; font-size: .95rem;
}
.student-panel-header .dot {
  width: 10px; height: 10px; background: var(--green-500); border-radius: 50%;
  animation: pulse 2s infinite;
}
.materials-grid { display: grid; gap: 1rem; }
.material-card {
  padding: 1.2rem; border: 1px solid var(--gray-200); border-radius: 10px;
  transition: var(--transition); text-align: left;
}
.material-card:hover { background: var(--gray-50); }
.material-card-header { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.material-card-header svg { width: 22px; height: 22px; flex-shrink: 0; }
.material-card h4 { font-size: .95rem; font-weight: 800; color: var(--gray-900); }
.material-card p { font-size: .8rem; color: var(--gray-500); margin-bottom: .6rem; }
.material-card a {
  color: var(--primary); font-weight: 700; font-size: .85rem;
  display: inline-flex; align-items: center; gap: .3rem;
}
.material-card a:hover { text-decoration: underline; }
.student-logout {
  margin-top: 1.5rem; background: none; border: none; color: var(--gray-400);
  font-size: .85rem; font-weight: 600; cursor: pointer; padding: .5rem;
}
.student-logout:hover { color: var(--gray-600); }
.student-info { text-align: center; margin-bottom: 1rem; }
.student-info .name { font-weight: 700; color: var(--gray-900); }
.student-info .expires { font-size: .8rem; color: var(--gray-500); }

/* ---------- COMUNIDAD ---------- */
.community { background: var(--white); }
.community-desc { color: var(--gray-600); text-align: center; font-size: 1.05rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-bottom: 2.5rem; }
.social-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.5rem; border-radius: var(--radius); font-weight: 700;
  font-size: 1rem; color: var(--white); transition: var(--transition);
  box-shadow: var(--shadow-md);
}
.social-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.social-btn svg { width: 22px; height: 22px; fill: currentColor; }
.social-tiktok { background: #010101; }
.social-instagram { background: linear-gradient(135deg, #833ab4, #e1306c, #f77737); }
.social-youtube { background: #e53935; }

.testimonials-grid { display: grid; gap: 1rem; }
.testimonial {
  background: var(--gray-50); padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.testimonial-stars { display: flex; gap: 2px; color: var(--yellow-400); margin-bottom: .6rem; font-size: .85rem; }
.testimonial blockquote { color: var(--gray-700); font-style: italic; font-size: .95rem; margin-bottom: .8rem; line-height: 1.5; }
.testimonial-author { font-weight: 800; color: var(--gray-900); font-size: .9rem; }
.testimonial-role { color: var(--primary); font-size: .8rem; font-weight: 600; }

/* ---------- FOOTER ---------- */
.footer { background: var(--primary-dark); color: var(--white); padding: 4rem 0 2rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: .8rem; }
.footer .footer-desc { color: #90caf9; margin-bottom: 2rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.contact-icon {
  width: 48px; height: 48px; background: rgba(255,255,255,.08); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: #90caf9;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-item strong { display: block; color: var(--white); font-weight: 700; }
.contact-item span { font-size: .85rem; color: #90caf9; }
.footer-links {
  background: rgba(255,255,255,.05); padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
}
.footer-links h4 { font-size: 1.1rem; font-weight: 800; margin-bottom: 1rem; }
.footer-links ul { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.5rem; }
.footer-links a {
  color: #90caf9; display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem;
}
.footer-links a:hover { color: var(--white); }
.footer-links a svg { width: 14px; height: 14px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; margin-top: 1.5rem; }
.footer-bottom p { font-size: .8rem; color: #64b5f6; }
.footer-bottom p + p { font-size: .7rem; color: #42a5f5; margin-top: .3rem; }

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed; bottom: 1.2rem; left: 1.2rem; z-index: 90;
  width: 60px; height: 60px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 25px rgba(37,211,102,.5); color: var(--white);
  transition: var(--transition); animation: float-bounce 2s ease-in-out infinite;
}
.whatsapp-float:hover { background: #128C7E; transform: scale(1.1); }
.whatsapp-float svg { width: 32px; height: 32px; fill: var(--white); }
@keyframes float-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 90;
  width: 50px; height: 50px; background: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(21,101,192,.4); color: var(--white);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-4px); }
.back-to-top svg { width: 24px; height: 24px; fill: var(--white); }

/* ---------- STICKY HEADER ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200); transition: var(--transition);
}
.nav.scrolled { 
  box-shadow: var(--shadow-md); 
  padding: .5rem 0;
}
.nav.scrolled .nav-inner { height: 60px; }

/* ---------- SERVICIOS SECTION ---------- */
.servicios-section {
  background: var(--white);
  padding: 5rem 0;
}
.servicios-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.servicio-card {
  background: var(--gray-50);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.servicio-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.servicio-card-icon {
  width: 56px; height: 56px; background: var(--primary-bg);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}
.servicio-card-icon svg { width: 28px; height: 28px; }
.servicio-card h3 {
  font-size: 1.3rem; font-weight: 800; color: var(--gray-900);
  margin-bottom: .6rem;
}
.servicio-card p {
  color: var(--gray-600);
  font-size: .95rem;
  line-height: 1.6;
}
.servicio-card ul {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.servicio-card li {
  display: flex; align-items: center; gap: .5rem;
  color: var(--gray-700); font-size: .9rem;
}
.servicio-card li::before {
  content: '✓'; color: var(--green-500); font-weight: 700;
}

/* ---------- HERRAMIENTAS RECOMENDADAS ---------- */
.herramientas-section {
  background: var(--blue-900);
  padding: 5rem 0;
  color: var(--white);
}
.herramientas-section h2 { color: var(--white); }
.herramientas-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.herramienta-card {
  background: rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,.1);
}
.herramienta-card:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-4px);
}
.herramienta-icon {
  font-size: 2.5rem;
  margin-bottom: .8rem;
}
.herramienta-card h4 {
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: .4rem;
}
.herramienta-card p {
  font-size: .85rem;
  color: var(--gray-400);
}

/* ---------- GALERÍA / TRABAJOS REALES ---------- */
.galeria-section {
  background: var(--gray-100);
  padding: 5rem 0;
}
.galeria-grid {
  display: grid;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  grid-template-columns: repeat(2, 1fr);
}
.galeria-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
}
.galeria-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.galeria-item:hover img {
  transform: scale(1.08);
}
.galeria-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
  display: flex; align-items: flex-end;
  padding: 1rem;
}
.galeria-item-overlay span {
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
}

/* ---------- TESTIMONIOS SOCIAL PROOF ---------- */
.testimonials-section {
  background: var(--white);
  padding: 5rem 0;
}
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}
.testimonial-card {
  background: var(--gray-50);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
}
.testimonial-header {
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: 1rem;
}
.testimonial-avatar {
  width: 48px; height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 800; font-size: 1.2rem;
}
.testimonial-info h4 {
  font-size: 1rem; font-weight: 700;
  color: var(--gray-900);
}
.testimonial-info span {
  font-size: .8rem; color: var(--gray-500);
}
.testimonial-stars {
  color: #FFD700;
  font-size: 1rem;
  margin-bottom: .6rem;
}
.testimonial-text {
  color: var(--gray-700);
  font-size: .95rem;
  line-height: 1.6;
  font-style: italic;
}
.testimonial-source {
  display: flex; align-items: center; gap: .4rem;
  margin-top: 1rem;
  font-size: .8rem;
  color: var(--gray-500);
}
.testimonial-source svg { width: 16px; height: 16px; }

/* ---------- Scroll animations ---------- */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- HERO SIMPLIFICADO (TÍO CHICATO) ---------- */
.hero-simple {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 1rem 3rem;
  scroll-margin-top: 70px;
}
/* Micro-interactions */
.hero-simple:hover { transform: scale(1.01); }
.hero-simple-title { animation: fadeInUp 0.8s ease-out; }
.hero-simple-text { animation: fadeInUp 0.8s ease-out 0.2s both; }
.hero-simple .btn-success { animation: fadeInUp 0.8s ease-out 0.4s both; }

.curso-visual-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.servicio-card:hover { transform: translateY(-4px); }
.herramienta-card:hover { transform: scale(1.05); }
.testimonial-card:hover { transform: translateX(4px); }
.galeria-item:hover { transform: scale(1.05); }

.btn { position: relative; overflow: hidden; transition: all 0.3s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Student Zone / Login ---------- */
.student-zone {
  background: var(--gray-100);
  padding: 4rem 0;
}
.student-login {
  max-width: 400px; margin: 0 auto;
  background: var(--white); padding: 2rem;
  border-radius: 16px; box-shadow: var(--shadow-lg);
}
.student-login input {
  width: 100%; padding: 1rem;
  border: 2px solid var(--gray-200); border-radius: 8px;
  font-size: 1rem; margin-bottom: 1rem;
  transition: border-color 0.3s;
}
.student-login input:focus { border-color: var(--primary); outline: none; }
.student-panel { display: none; }
.student-panel.active { display: block; animation: fadeInUp 0.5s ease-out; }
.student-welcome {
  background: var(--primary); color: var(--white);
  padding: 1.5rem; border-radius: 12px; margin-bottom: 2rem;
}
.student-courses {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
}
.student-course {
  background: var(--white); padding: 1.5rem;
  border-radius: 12px; border: 1px solid var(--gray-200);
}
.student-course h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.student-course p { color: var(--gray-600); font-size: 0.9rem; }
.student-course .status {
  display: inline-block; padding: 0.25rem 0.75rem;
  border-radius: 20px; font-size: 0.75rem; font-weight: 600;
  margin-top: 0.5rem;
}
.status.pendiente { background: #fff3e0; color: #e65100; }
.status.confirmado { background: #e8f5e9; color: #2e7d32; }
.hero-simple-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-simple-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-simple-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,27,42,.9) 0%, rgba(21,101,192,.85) 100%);
}
.hero-simple-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-simple-title {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-simple-text {
  color: #cfd8dc;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.btn-giant {
  padding: 1.2rem 2.5rem;
  font-size: 1.4rem;
  font-weight: 800;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(76,175,80,.5);
}
.btn-giant:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(76,175,80,.6);
}
.btn-giant svg {
  flex-shrink: 0;
}

/* ---------- CURSOS VISUALES ---------- */
.cursos-visual {
  background: var(--blue-900);
  padding: 5rem 0;
}
.cursos-visual-grid {
  display: grid;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.curso-visual-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 280px;
}
.curso-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.curso-visual-card:hover img {
  transform: scale(1.08);
}
.curso-visual-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, transparent 100%);
}
.curso-visual-level {
  display: inline-block;
  padding: .3rem .8rem;
  background: var(--primary);
  color: var(--white);
  font-size: .75rem;
  font-weight: 800;
  border-radius: 8px;
  margin-bottom: .5rem;
}
.curso-visual-info h3 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: .4rem;
}
.curso-visual-info p {
  color: #cfd8dc;
  font-size: 1.1rem;
}

/* ---------- PROFESOR SECTION ---------- */
.profesor-section {
  background: var(--white);
  padding: 5rem 0;
}
.profesor-grid {
  display: grid;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  align-items: center;
}
.profesor-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.profesor-img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.profesor-info {
  text-align: center;
}
.profesor-info h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.profesor-nombre {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .5rem;
}
.profesor-sub {
  font-size: 1.1rem;
  color: var(--gray-600);
}

/* ---------- REDES SOCIALES ---------- */
.redes-section {
  background: var(--gray-100);
  padding: 5rem 0;
  text-align: center;
}
.redes-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 2rem;
}
.redes-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.redes-links .social-btn {
  padding: 1rem 2rem;
  font-size: 1.2rem;
}

/* ---------- CONTACTO SECTION ---------- */
.contacto-section {
  background: var(--primary-dark);
  padding: 5rem 0;
  text-align: center;
}
.contacto-section h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
}
.contacto-section p {
  color: #90caf9;
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
}

/* ---------- FOOTER MINIMAL ---------- */
.footer-minimal {
  background: var(--gray-900);
  padding: 2rem 0;
  text-align: center;
}
.footer-minimal p {
  color: var(--gray-500);
  font-size: .9rem;
}
.footer-minimal p + p {
  margin-top: .3rem;
}

/* ============================================
   RESPONSIVE BREAKPOINTS — SIMPLE VERSION
   ============================================ */

@media (min-width: 768px) {
  .cursos-visual-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .profesor-grid {
    grid-template-columns: 1fr 1fr;
  }
  .profesor-info {
    text-align: left;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .hero-simple {
    min-height: 100vh;
  }
  .cursos-visual {
    padding: 6rem 0;
  }
  .curso-visual-card {
    min-height: 320px;
  }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .nav-inner { height: 72px; }
  .nav-toggle { display: none; }
  .nav-links {
    display: flex !important; flex-direction: row; align-items: center;
    position: static; background: none; border: none; box-shadow: none;
    padding: 0; gap: .3rem;
  }
  .nav-links a, .nav-links button {
    padding: .5rem .8rem; font-size: .9rem; width: auto;
  }
  .nav-link-alumnos { padding: .45rem 1rem !important; border-radius: 8px !important; }

  .hero-btns { flex-direction: row; }

  .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  .about-quote { display: block; }

  .courses-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }

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

  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }

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

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  section { padding: 6rem 0; }
  .hero { min-height: 100vh; }
  .nav-inner { height: 80px; }
  .nav-links { gap: .5rem; }
  .about-img { transform: rotate(2deg); transition: transform .5s ease; }
  .about-img:hover { transform: rotate(0); }
  
  /* Nuevas secciones responsive */
  .servicios-grid { grid-template-columns: repeat(3, 1fr); }
  .herramientas-grid { grid-template-columns: repeat(4, 1fr); }
  .galeria-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
