/* ============================================
   OPOSITA PARA EDUCACIÓN - Estilos principales
   Colores marca: Púrpura #6B2D8B / Celeste #0077B6
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #6B2D8B; text-decoration: none; transition: color 0.3s; }
a:hover { color: #0077B6; }

/* --- TIPOGRAFÍA --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: #6B2D8B;
  line-height: 1.3;
}
h1 { font-size: 2.8rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.4rem; margin-bottom: 1rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }

/* --- CONTENEDOR --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   HEADER / NAVEGACIÓN
   ============================================ */
.site-header {
  background: #fff;
  border-bottom: 3px solid #6B2D8B;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-area {
  display: flex;
  align-items: center;
  
}

.logo-area img {
  height: 50px;
  width: auto;
}



/* Navegación */
.main-nav { display: flex; align-items: center; gap: 0.25rem; }

.main-nav a {
  padding: 0.5rem 0.85rem;
  color: #444;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
  color: #6B2D8B;
  background: #f3ecf8;
}

/* Botones header */
.header-actions { display: flex; align-items: center; gap: 1.5rem; }

.btn-aula {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: #6B2D8B;
  color: #fff !important;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-aula:hover { background: #7d3fa0; transform: translateY(-1px); }

.btn-instagram {
  display: inline-flex;
  align-items: center;
  color: #6B2D8B;
  font-size: 1.4rem;
  transition: color 0.3s;
}

.btn-instagram:hover { color: #E1306C; }

/* Menú hamburguesa (móvil) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #6B2D8B;
  cursor: pointer;
  padding: 0.25rem;
}

/* ============================================
   HERO / CABECERA PRINCIPAL
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #6B2D8B 0%, #4a1d6b 50%, #0077B6 100%);
  color: #fff;
  padding: 5rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../img/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  font-style: italic;
}

.btn-cta {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: #fff;
  color: #6B2D8B;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 30px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-cta:hover {
  background: #f3ecf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  color: #6B2D8B;
}

/* ============================================
   SECCIONES
   ============================================ */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: #f8f5fa;
}

.section--dark {
  background: linear-gradient(135deg, #6B2D8B, #4a1d6b);
  color: #fff;
}

.section--dark h2,
.section--dark h3 { color: #fff; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header p {
  color: #666;
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================
   TARJETAS / CARDS
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(107,45,139,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #f0e8f5;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(107,45,139,0.15);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 { font-size: 1.2rem; }

.card-body ul {
  list-style: none;
  padding: 0;
}

.card-body li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.card-body li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #0077B6;
  font-weight: 700;
}

/* ============================================
   LISTA DE ESPECIALIDADES
   ============================================ */
.especialidades-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  list-style: none;
}

.especialidades-list li {
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: 8px;
  border-left: 4px solid #6B2D8B;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s;
}

.especialidades-list li:hover {
  border-left-color: #0077B6;
  transform: translateX(4px);
}

/* ============================================
   TESTIMONIOS
   ============================================ */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.testimonio {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(107,45,139,0.08);
  border-top: 4px solid #6B2D8B;
  position: relative;
}

.testimonio::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: #e0d0eb;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  line-height: 1;
}

.testimonio-text {
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
}

.testimonio-author {
  font-weight: 600;
  color: #6B2D8B;
}

.testimonio-detail {
  font-size: 0.85rem;
  color: #888;
}

/* ============================================
   CONDICIONES / PRECIOS
   ============================================ */
.precio-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(107,45,139,0.08);
  border: 1px solid #f0e8f5;
}

.precio-card h3 {
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f0e8f5;
  margin-bottom: 1.25rem;
}

.precio-card .precio {
  font-size: 2rem;
  font-weight: 700;
  color: #6B2D8B;
}

.precio-card .precio small {
  font-size: 0.9rem;
  font-weight: 400;
  color: #888;
}

/* ============================================
   FORMULARIO DE CONTACTO
   ============================================ */
.form-contacto {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(107,45,139,0.08);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group label .required { color: #c0392b; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0d0eb;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s;
  background: #fdfcfe;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6B2D8B;
  box-shadow: 0 0 0 3px rgba(107,45,139,0.1);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-radio-group {
  display: flex;
  gap: 1.5rem;
  padding-top: 0.25rem;
}

.form-radio-group label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.form-radio-group input[type="radio"] {
  width: auto;
  accent-color: #6B2D8B;
}

.btn-enviar {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: #6B2D8B;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}

.btn-enviar:hover { background: #7d3fa0; }
.btn-enviar:disabled { background: #bbb; cursor: not-allowed; }

.form-msg {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
}

.form-msg--ok { background: #d4edda; color: #155724; display: block; }
.form-msg--error { background: #f8d7da; color: #721c24; display: block; }

/* ============================================
   PREPARADORES
   ============================================ */
.preparador-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(107,45,139,0.08);
}

.preparador-card img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #6B2D8B;
}

.preparador-info { flex: 1; }

/* ============================================
   LEGAL / POLÍTICA DE PRIVACIDAD
   ============================================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.legal-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.legal-content h3 { color: #555; font-size: 1.1rem; }

.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content li { margin-bottom: 0.4rem; }

/* ============================================
   NOTA IMPORTANTE
   ============================================ */
.nota {
  background: #f3ecf8;
  border-left: 4px solid #6B2D8B;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.nota p { margin: 0; color: #555; }
.nota strong { color: #6B2D8B; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #2d1245;
  color: #cbb8d9;
  padding: 2.5rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-links { display: flex; gap: 1.5rem; align-items: center; }
.footer-links a { color: #cbb8d9; transition: color 0.3s; }
.footer-links a:hover { color: #fff; }

.footer-copy {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #997aab;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 3.5rem 1rem; }
  .hero h1 { font-size: 1.8rem; }

  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid #eee; box-shadow: 0 4px 10px rgba(0,0,0,0.1); padding: 1rem; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.75rem 1rem; }
  .menu-toggle { display: block; }

  .header-actions { gap: 0.5rem; }
  .btn-aula { padding: 0.45rem 0.8rem; font-size: 0.8rem; }

  .preparador-card { flex-direction: column; align-items: center; text-align: center; }
  .preparador-card img { width: 140px; height: 140px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .form-contacto { padding: 1.5rem; }
}

/* --- Reducir animaciones si lo prefiere el usuario --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
