/* ===========================
   style.css — Versión Final
   =========================== */

/* Reset / básicos */
* { box-sizing: border-box; }
html,body { height:100%; margin:0; font-family:"Segoe UI", Tahoma, Geneva, Verdana, sans-serif; background:#f4f8fb; color:#222; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
a { color: inherit; text-decoration: none; }

/* Header */
.site-header { position: sticky; top:0; z-index:1200; background: linear-gradient(90deg,#0056b3,#007bff); color:#fff; box-shadow:0 6px 18px rgba(0,0,0,0.08); }
.header-inner { max-width:1200px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:12px 16px; }
.brand { display:flex; align-items:center; gap:12px; }
.brand-flag { width:42px; height:auto; display:block; border-radius:6px; }
.site-header h1 { font-size:1.15rem; margin:0; font-weight:700; }
.main-nav a { color:white; margin:0 8px; padding:6px 10px; border-radius:6px; font-weight:600; transition:background .2s, color .2s; }
.main-nav a:hover { background: rgba(255,255,255,0.12); color:#ffd700; }

/* Main sections */
main { max-width:1200px; margin:24px auto; padding:0 16px 50px; }

/* Intro */
.section-intro { display:flex; gap:24px; align-items:flex-start; flex-wrap:wrap; padding:18px 0; }
.intro-left { flex:1 1 420px; min-width:260px; }
.intro-right { flex:1 1 420px; min-width:300px; display:flex; flex-direction:column; gap:12px; align-items:center; }
h2 { color:#042f66; margin:0 0 12px 0; font-size:1.9rem; }
.lead { color:#334155; margin-bottom:14px; font-size:1.05rem; }
.features { list-style:none; padding:0; margin:12px 0 18px 0; display:flex; gap:10px; flex-wrap:wrap; }
.features li { background: #fff; padding:8px 12px; border-radius:8px; box-shadow:0 4px 12px rgba(0,0,0,0.04); font-weight:600; color:#0450a6; display:flex; gap:8px; align-items:center; }
.start-actions { display:flex; gap:12px; align-items:center; margin-top:8px; flex-wrap:wrap; }
.btn { display:inline-flex; gap:8px; align-items:center; justify-content:center; padding:10px 16px; border-radius:8px; cursor:pointer; border: none; font-weight:700; }
.btn.primary { background:#ff7a18; color:white; box-shadow:0 6px 18px rgba(255,122,24,0.18); }
.btn.primary:hover { transform: translateY(-3px); }
.btn.outline { background:transparent; color:white; border:2px solid rgba(255,255,255,0.18); }
.small.muted { color: rgba(255,255,255,0.9); margin-top:8px; font-size:0.9rem; }

/* Hero image and video */
.hero-img { width:100%; max-width:520px; border-radius:12px; box-shadow:0 10px 30px rgba(2,6,23,0.08); object-fit:cover; }
.video-wrap { width:100%; max-width:520px; border-radius:10px; overflow:hidden; box-shadow:0 8px 20px rgba(0,0,0,0.08); }

/* Section titles */
.section { background: transparent; margin: 28px 0; }
.section h2 { margin-bottom: 10px; text-align:center; }

/* Form / preguntas */
.vocational-form { margin-top:10px; }
.pregunta { background:#fff; border-radius:12px; padding:16px; margin-bottom:14px; box-shadow:0 6px 18px rgba(2,6,23,0.04); display:block; transition: transform .12s ease, box-shadow .12s ease; }
.pregunta:hover { transform:translateY(-4px); box-shadow:0 14px 40px rgba(2,6,23,0.07); }
.qnum { font-weight:800; color:#06326a; margin-bottom:8px; }
.alternativas label { display:block; padding:10px 12px; margin-bottom:8px; border-radius:8px; background:#f7fbff; cursor:pointer; font-weight:600; transition: background .15s, transform .12s; border:2px solid transparent; }
.alternativas label:hover { background:#eef6ff; transform: translateY(-2px); }
.alternativas input[type="radio"] { margin-right:10px; }

/* Estilos alternos para preguntas (para romper monotonía) */
.estilo-a { border-left:6px solid #ff7a18; }
.estilo-b { border-left:6px solid #00a3ff; }

/* Center and buttons */
.center { text-align:center; }
.form-actions { margin-top:14px; display:flex; justify-content:center; gap:12px; }

/* Oculto (usar para mostrar/ocultar secciones con JS) */
.oculto { display:none !important; }

/* Resultados */
.section-resultados .card { background:#fff; padding:18px; border-radius:12px; box-shadow:0 8px 26px rgba(2,6,23,0.06); margin-bottom:16px; }
#universities-gallery.grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap:14px; margin-top:16px; }

/* Card (gallery/testimonials) */
.card.hover-zoom { display:block; overflow:hidden; border-radius:10px; background:#fff; text-align:center; box-shadow:0 6px 20px rgba(2,6,23,0.05); transition: transform .18s ease, box-shadow .18s ease; }
.card.hover-zoom img { width:100%; height:120px; object-fit:contain; padding:18px; background:#fff; }
.card.hover-zoom .card-body { padding:10px 12px; }
.card.hover-zoom:hover { transform:translateY(-8px) scale(1.02); box-shadow:0 18px 40px rgba(2,6,23,0.09); }

/* Testimonials / gallery grid */
.grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.testimonials .testimonial img { width:100%; height:160px; object-fit:cover; border-top-left-radius:10px; border-top-right-radius:10px; }

/* Gallery hover enlarge (for recommended universities) */
.gallery .card { display:block; border-radius:10px; overflow:hidden; background:#fff; transition: transform .18s ease, box-shadow .18s ease; text-align:left; }
.gallery .card img { width:100%; height:140px; object-fit:contain; background:white; padding:18px; }
.gallery .card .card-body { padding:12px; }
.gallery .card:hover { transform:scale(1.04); box-shadow:0 20px 50px rgba(0,0,0,0.12); }

/* Trivia */
#trivia.card { margin-top:18px; }

/* Contact form */
.contact-form { max-width:700px; margin:auto; background:white; padding:16px; border-radius:10px; box-shadow:0 8px 24px rgba(2,6,23,0.05); }
.contact-form .form-row { display:flex; gap:8px; margin-bottom:10px; }
.contact-form input, .contact-form textarea { width:100%; padding:10px 12px; border-radius:8px; border:1px solid #e6eefc; font-size:1rem; }
.contact-form textarea { min-height:120px; resize:vertical; }

/* Footer */
.site-footer { margin-top:28px; background:#0b4f8a; color:#fff; padding:18px; text-align:center; border-top:4px solid rgba(255,255,255,0.04); }
.site-footer .muted { opacity:0.9; font-size:0.9rem; }

/* Confetti placeholder style (for small fallback) */
.confetiFallback { position:fixed; left:0; top:0; pointer-events:none; width:100%; height:100%; z-index:3000; }

/* Responsive */
@media (max-width:900px) {
  .section-intro { flex-direction:column-reverse; align-items:center; }
  .hero-img, .video-wrap { max-width:100%; }
  .header-inner { flex-direction:column; gap:8px; align-items:center; }
  .main-nav { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; }
  .contact-form .form-row { flex-direction:column; }
}
