/* =========================================
   Thinkly – Stylesheet
   Paleta: #1B4079 | #4D7C8A | #7F9C96
   ========================================= */

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

:root {
  --navy:     #1B4079;
  --teal:     #4D7C8A;
  --sage:     #7F9C96;
  --navy-dk:  #132f5a;
  --navy-lt:  #2a5298;
  --sage-lt:  #a8c5c0;
  --sage-bg:  #eef3f2;
  --white:    #ffffff;
  --text:     #1a2436;
  --text-muted: #5a6a7e;
  --border:   #dce4e8;
  --radius:   12px;
  --radius-lg: 20px;
  --shadow:   0 4px 24px rgba(27,64,121,.10);
  --shadow-md: 0 8px 40px rgba(27,64,121,.15);
  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: .22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- HEADER ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(27,64,121,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { color: var(--sage-lt); font-size: 1.5rem; }
.logo-text { font-family: var(--font-head); font-size: 1.25rem; color: var(--white); letter-spacing: -.3px; }
.logo-text strong { color: var(--sage-lt); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: rgba(255,255,255,.8); text-decoration: none;
  font-size: .9rem; font-weight: 500; letter-spacing: .3px;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--sage-lt); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--teal); color: var(--white);
  box-shadow: 0 4px 16px rgba(77,124,138,.35);
}
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(27,64,121,.35); }
.btn-large { padding: 14px 36px; font-size: 1rem; }

/* ---- HERO ---- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 50%, var(--teal) 100%);
  padding: 100px 0 90px;
  min-height: 480px; display: flex; align-items: center;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.shape-1 { width: 520px; height: 520px; top: -160px; right: -100px; }
.shape-2 { width: 300px; height: 300px; bottom: -80px; left: 5%; background: rgba(127,156,150,.15); }
.hero-content { position: relative; z-index: 1; max-width: 620px; }
.hero-eyebrow {
  display: inline-block; padding: 5px 14px; border-radius: 30px;
  background: rgba(127,156,150,.2); border: 1px solid rgba(168,197,192,.3);
  color: var(--sage-lt); font-size: .82rem; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 18px;
}
.accent { color: var(--sage-lt); }
.hero-sub { color: rgba(255,255,255,.75); font-size: 1.1rem; margin-bottom: 36px; max-width: 480px; }

/* ---- HOW SECTION ---- */
.how-section { padding: 80px 0; background: var(--sage-bg); }
.section-title {
  font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700; color: var(--navy); text-align: center; margin-bottom: 10px;
}
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 48px; font-size: .97rem; }
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px;
}
.step-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--white); margin: 0 auto 18px;
}
.step-card h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step-card p { font-size: .88rem; color: var(--text-muted); }

/* ---- RAMAS SECTION ---- */
.ramas-section { padding: 80px 0; }
.ramas-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px;
}
.rama-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px 20px 28px; text-align: center;
  border: 2px solid var(--border); cursor: pointer;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.rama-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--teal));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.rama-card:hover::before { transform: scaleX(1); }
.rama-card:hover {
  border-color: var(--teal); transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.rama-icon-wrap {
  width: 70px; height: 70px; border-radius: 20px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--white); margin: 0 auto 16px;
  transition: transform var(--transition);
}
.rama-card:hover .rama-icon-wrap { transform: scale(1.08); }
.rama-card h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.rama-card p { font-size: .83rem; color: var(--text-muted); margin-bottom: 14px; }
.rama-badge {
  display: inline-block; padding: 3px 12px; border-radius: 20px;
  background: var(--sage-bg); color: var(--teal);
  font-size: .78rem; font-weight: 700;
}
.rama-badge.coming { background: #fff3e0; color: #f08c00; }

/* ---- MODALS ---- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(15,28,52,.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px 36px; max-height: 90vh; overflow-y: auto;
  width: 100%; max-width: 540px;
  box-shadow: 0 20px 80px rgba(15,28,52,.3);
  position: relative; animation: modalIn .28s ease;
}
.modal-box.wide { max-width: 860px; }
.modal-box.small { max-width: 420px; text-align: center; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; font-size: 1.6rem;
  color: var(--text-muted); cursor: pointer; line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--navy); }
.modal-title { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.modal-sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 28px; }
.btn-back {
  background: none; border: none; color: var(--teal);
  font-size: .88rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 20px; padding: 0; transition: color var(--transition);
}
.btn-back:hover { color: var(--navy); }

/* ---- CURSOS LIST ---- */
.cursos-list { display: flex; flex-direction: column; gap: 10px; }
.curso-item {
  padding: 14px 20px; border-radius: var(--radius);
  border: 1.5px solid var(--border); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 500; font-size: .95rem;
  transition: all var(--transition);
}
.curso-item:hover {
  border-color: var(--teal); background: var(--sage-bg);
  color: var(--navy); transform: translateX(4px);
}
.curso-item i { color: var(--teal); font-size: .85rem; }

/* ---- TUTORES GRID ---- */
.tutores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 22px; }
.tutor-card {
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 18px; text-align: center; cursor: pointer;
  transition: all var(--transition);
}
.tutor-card:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tutor-foto {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 12px;
  border: 3px solid var(--sage-lt);
}
.tutor-foto-placeholder {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--white); margin: 0 auto 12px;
  border: 3px solid var(--sage-lt);
}
.tutor-nombre { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.tutor-especialidad { font-size: .82rem; color: var(--text-muted); margin-bottom: 10px; }
.tutor-precio {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  background: linear-gradient(90deg, var(--navy), var(--teal));
  color: var(--white); font-size: .85rem; font-weight: 700;
}
.tutor-rating { color: #f4b942; font-size: .85rem; margin-bottom: 6px; }

/* ---- PERFIL TUTOR ---- */
.perfil-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start;
}
.perfil-foto-wrap { text-align: center; }
.perfil-foto {
  width: 160px; height: 160px; border-radius: 50%;
  object-fit: cover; border: 4px solid var(--sage-lt);
  display: block; margin: 0 auto 16px;
}
.perfil-foto-placeholder {
  width: 160px; height: 160px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--white); margin: 0 auto 16px;
  border: 4px solid var(--sage-lt);
}
.perfil-precio-grande {
  display: inline-block; padding: 8px 20px; border-radius: 30px;
  background: linear-gradient(90deg, var(--navy), var(--teal));
  color: var(--white); font-size: 1.1rem; font-weight: 700;
  margin-bottom: 16px;
}
.perfil-nombre { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.perfil-titulo { color: var(--teal); font-weight: 600; margin-bottom: 14px; font-size: .95rem; }
.perfil-rating { color: #f4b942; font-size: 1rem; margin-bottom: 20px; }
.perfil-bio { color: var(--text-muted); font-size: .93rem; line-height: 1.7; margin-bottom: 24px; }
.perfil-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.perfil-tag {
  padding: 4px 14px; border-radius: 20px;
  background: var(--sage-bg); color: var(--teal);
  font-size: .8rem; font-weight: 600; border: 1px solid var(--sage-lt);
}
.perfil-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.perfil-info-item {
  background: var(--sage-bg); border-radius: var(--radius);
  padding: 12px 16px;
}
.perfil-info-item label { font-size: .75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: 4px; }
.perfil-info-item span { font-weight: 600; color: var(--navy); font-size: .93rem; }
.btn-solicitar { width: 100%; justify-content: center; font-size: 1rem; padding: 14px; }

/* ---- FORMULARIO ---- */
.form-cal-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
}
.form-section-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 18px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: .9rem; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(77,124,138,.15);
}
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-label {
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 400; cursor: pointer; color: var(--text);
}
.radio-label input[type="radio"] { accent-color: var(--teal); }
.form-submit-wrap { text-align: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ---- CALENDARIO ---- */
.calendar-section { }
.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
#cal-mes-label { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .95rem; }
.cal-nav {
  background: none; border: 1.5px solid var(--border); border-radius: 8px;
  width: 32px; height: 32px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); transition: all var(--transition);
}
.cal-nav:hover { background: var(--sage-bg); border-color: var(--teal); }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  margin-bottom: 16px;
}
.cal-day-label { text-align: center; font-size: .72rem; font-weight: 700; color: var(--text-muted); padding: 4px 0; }
.cal-day {
  text-align: center; padding: 8px 4px; border-radius: 8px;
  font-size: .82rem; cursor: default; border: 1.5px solid transparent;
}
.cal-day.empty { }
.cal-day.pasado { color: var(--border); }
.cal-day.disponible {
  cursor: pointer; background: var(--sage-bg); color: var(--navy); font-weight: 600;
  border-color: var(--sage-lt);
}
.cal-day.disponible:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.cal-day.seleccionado { background: var(--navy); color: var(--white); border-color: var(--navy); }
.cal-day.no-disponible { color: var(--border); }
.horarios-wrap { margin-top: 8px; }
.horarios-wrap h4 { font-size: .88rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.horarios-list { display: flex; flex-wrap: wrap; gap: 8px; }
.horario-btn {
  padding: 6px 14px; border-radius: 20px; font-size: .82rem; font-weight: 600;
  border: 1.5px solid var(--teal); color: var(--teal); background: none; cursor: pointer;
  transition: all var(--transition);
}
.horario-btn:hover, .horario-btn.selected { background: var(--teal); color: var(--white); }
.seleccion-resumen {
  margin-top: 14px; padding: 12px 16px; border-radius: var(--radius);
  background: linear-gradient(90deg, var(--navy), var(--teal));
  color: var(--white); font-size: .88rem; font-weight: 600;
}
.seleccion-resumen i { margin-right: 6px; }

/* ---- CONFIRMACIÓN ---- */
.confirm-icon { font-size: 4rem; color: var(--teal); margin-bottom: 16px; }
.confirm-icon i { display: block; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy-dk); padding: 40px 0;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-copy { color: rgba(255,255,255,.5); font-size: .85rem; }
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); text-decoration: none; font-size: .95rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--teal); color: var(--white); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .form-cal-layout { grid-template-columns: 1fr; }
  .perfil-layout { grid-template-columns: 1fr; }
  .perfil-foto-wrap { display: flex; flex-direction: column; align-items: center; }
  .perfil-info-grid { grid-template-columns: 1fr; }
  .modal-box { padding: 28px 20px; }
  .tutores-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); }
}

@media (max-width: 480px) {
  .hero { padding: 70px 0 60px; }
  .ramas-grid { grid-template-columns: 1fr 1fr; }
}
