/*
Theme Name: mejoratunem-desdecero
Theme URI: https://mejoratunem.cl
Author: Samira Paz
Description: Tema hecho a mano
Version: 1.0
*/

/* =======================
   GENERALES
========================== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f9fafb;
  color: #333;
}

/* =======================
   HEADER
========================== */
.site-header {
  background-color: #f5f6fa;
  border-bottom: 2px solid #1F497D;
  padding: 12px 0;
}
.contenedor-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-completo {
  display: flex;
  align-items: center;
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 70px;
  margin-right: 12px;
}
.logo-texto {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1F497D;
}
.menu-principal ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
.menu-principal li {
  margin-left: 30px;
}
.menu-principal a {
  color: #1F497D;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}
.menu-principal a:hover {
  color: #facc15;
}

/* =======================
   HERO
========================== */
/* HERO SECTION FULL WIDTH */
.hero {
  text-align: center; 
  width: 100%;         
  padding: 100px 20px; 
  background: linear-gradient(180deg, #f9fafb 0%, #eef2f7 100%);
  box-shadow: inset 0 -2px 6px rgba(0,0,0,0.05);
}

.hero .container {
  max-width: 900px;   
  margin: 0 auto;     
}

.hero img {
  display: block;
  margin: 0 auto 20px; 
  max-width: 180px;    
}

.hero h1 {
  font-size: 2.8rem;   
  margin-bottom: 20px;
  font-weight: 800;
  color: #1F2937;
}

.hero p {
  font-size: 1.99rem;  
  line-height: 1.7;
  margin-bottom: 30px;
  color: #374151;
}

.hero .btns {
  display: flex;
  gap: 18px;
  justify-content: center; 
  flex-wrap: wrap; 
}

.hero .btns a {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

.hero .btns a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}
/* 🔧 Corrección de scroll horizontal */
html, body {
  overflow-x: hidden;
}

/* Asegura que hero nunca se pase del ancho */
.hero {
  max-width: 100%;
  overflow-x: hidden;
  padding: 4rem 1rem; /* 1rem lateral para que no choque con bordes */
  text-align: center;
}

.hero .container {
  max-width: 900px;  /* Controla el ancho del contenido */
  margin: 0 auto;
  padding: 0 1rem;
}

.hero p {
  font-size: 1.2rem;  /* Texto más grande y legible */
  line-height: 1.6;
}
/* =======================
   PRESENTACIÓN
========================== */

 /* ====== Sección Tu Profesora ====== */
.presentacion {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
  border: 2px solid #90caf9; /* azul claro */
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Contenedor general */
.presentacion-contenedor {
  display: grid;
  grid-template-columns: 1fr 1.3fr; /* imagen más pequeña que el texto */
  gap: 2rem;
  align-items: start;
}

/* Imagen */
.presentacion-imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Texto */
.presentacion-texto h2 {
  color: #1F497D;
  margin-top: 1 rem;
  margin-bottom: 1rem;
  padding-left: 15px;             /* espacio para la línea */
  border-left: 6px solid #1F497D; /* línea azul al costado */
  line-height: 1.3;
}

.presentacion-texto p {
  margin-bottom: 1rem;
  line-height: 1.6;
  text-align: justify;
}

.subtitulo {
  font-weight: bold;
  color: #f39c12;
  margin-bottom: 0.5rem;
}

/* Firma */
.presentacion-firma {
  text-align: right;   /* alinea a la derecha */
  margin-top: 0.5rem;  /* cerca del texto */
  margin-right: 10px;  /* pequeño respiro del borde */
}

.presentacion-firma img {
  max-width: 160px;
  height: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .presentacion-contenedor {
    grid-template-columns: 1fr; /* foto arriba, texto abajo */
  }
  .presentacion-imagen {
    text-align: center;
  }
  .presentacion-firma {
    text-align: center;
  }
}

/* =======================
   APRENDIZAJES
========================== */
.aprendizajes {
  padding: 60px 20px;
  background: #f9fafb;
}

.contenedor-aprendizajes {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 40px;
}
/* Estilo para el título principal de la sección Aprendizajes */
.aprendizajes h2 {
  font-size: 2.4rem;              /* más grande y destacado */
  font-weight: 800;               /* negrita fuerte */
  color: #1F497D;                 /* azul fuerte de la paleta */
  margin-bottom: 20px;
  padding-left: 15px;             /* espacio para la línea */
  border-left: 6px solid #1F497D; /* línea azul al costado */
  line-height: 1.3;
}

/* Columna izquierda */
.columna-izquierda {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.columna-izquierda h2 {
  color: #1F497D;
  margin-bottom: 20px;
}

.columna-izquierda p.intro {
  text-align: justify;
  margin-bottom: 15px;
}

.btn-principal {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  background-color: #123C7C;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
  margin: 20px auto;
}

.btn-principal:hover {
  background-color: #FFD43B;
  color: #123C7C;
}

/* Testimonios */
.testimonio {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-left: 4px solid #0d3b66;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: left;
}

.testimonio img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonio-contenido blockquote {
  font-style: italic;
  margin: 0 0 15px;
  text-align: justify;
}

.testimonio-footer {
  margin-top: 10px;
}

.testimonio-footer .estrellas {
  margin: 0;
  color: #FFD700;
}

.testimonio-footer .nombre {
  margin: 5px 0 0;
  font-weight: bold;
  color: #0d3b66;
}

/* Columna derecha */
.columna-derecha {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

/* Tarjetas con fondo oscuro */
.card {
  background: #888; /* grisáceo */
  color: #FFF;      /* texto blanco */
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card h3, 
.card h4 {
  color: #FFD700; /* títulos amarillos */
  margin-bottom: 12px;
}

.card ul {
  padding-left: 20px;
}

.card li {
  margin-bottom: 12px;
  line-height: 1.5;
}

/* =======================
   ¿QUÉ INCLUYE TU INSCRIPCIÓN?
========================== */
.inscripcion {
  background: #888; /* Fondo gris oscuro */
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.inscripcion h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
}

.tarjetas-inscripcion {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.tarjeta {
  background: white;
  color: #333;
  border-radius: 12px;
  padding: 25px 20px;
  width: 300px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Íconos dentro de las tarjetas */
.tarjeta .icono {
  font-size: 36px;
  background: #009688; /* Verde de la paleta */
  color: white;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin: 0 auto 15px auto; /* 🔹 Centrado */
}

/* Título de cada tarjeta */
.tarjeta h3 {
  text-align: center;    /* 🔹 Centra el título */
  margin-bottom: 15px;
  color: #003366;        /* Azul de la paleta */
  font-size: 1.2rem;
  font-weight: bold;
}

/* Lista dentro de cada tarjeta */
.tarjeta ul {
  padding-left: 20px;
}

/* =======================
   PERFECTO PARA TI
========================== */
.perfecto-para-ti {
  background: #f9f9f9; /* Fondo claro */
  padding: 60px 20px;
}

.contenedor-perfecto {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.columna-imagen img {
  max-width: 400px;
  height: auto;
}

.columna-texto {
  flex: 1;
}

.columna-texto h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.columna-texto h2 span {
  color: #009688; /* Verde de la paleta */
  font-weight: bold;
}

.columna-texto ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 25px;
}

.columna-texto li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.btn-secundario {
  display: inline-block;
  padding: 12px 24px;
  background: #009688; /* Verde */
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-secundario:hover {
  background: #00796B; /* Verde más oscuro */
}


/* =======================
   PREGUNTAS FRECUENTES
========================== */
/* ===== FAQ ===== */
.faq {
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.faq-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-family: 'Poppins', sans-serif;
  color: #002147; /* azul de la paleta */
}

.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-q {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem;
  font-family: 'Poppins', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-q::-webkit-details-marker {
  display: none; /* oculta el triángulo default */
}

.faq-sign::before {
  content: "+";
  font-size: 1.2rem;
  color: #002147;
}

details[open] .faq-sign::before {
  content: "−";
}

.faq-a {
  padding: 0 1rem 1rem;
  line-height: 1.5;
  font-family: 'Poppins', sans-serif;
  text-align: justify;
  color: #444;
}

.faq-toggle {
  display: block;
  margin: 1.5rem auto 0;
  padding: 0.8rem 1.5rem;
  border: none;
  background: #00b894; /* verde check */
  color: #fff;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.faq-toggle:hover {
  background: #00916e;
}

.faq-intro {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 25px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Muestra solo 3 al inicio */
.faq.faq--collapsed .faq-item:nth-of-type(n+4) {
  display: none;
}

/* ================== CTA ================== */
.cta {
  background: url('https://mejoratunem.cl/wp-content/uploads/2025/09/up.png') no-repeat center center;
  background-size: cover; /* Ajusta la imagen para cubrir toda la sección */
  padding: 350px 20px;
  text-align: center;
  position: relative;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7); /* capa blanca semitransparente para resaltar texto */
}

.cta-contenido {
  position: relative; /* para que el texto quede sobre la capa ::before */
  max-width: 700px;
  margin: 0 auto;
  z-index: 1;
}

.cta h2 {
  font-size: 2.5rem;
  color: #000;
  margin-bottom: 15px;
}

.cta .subtexto {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.btn-cta {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 30px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  background-color: #009688; /* Verde de la paleta */
  border-radius: 10px;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background-color: #00796B; /* Verde más oscuro en hover */
  transform: translateY(-3px);
}


/* ====== FOOTER CONTACTO ====== */
/* ================== FOOTER CONTACTO ================== */
.mtn-contact {
  --blue: #1F497D;
  --blueBtn: #2E86C1;
  --blueBtnH: #246FB0;
  --yellow: #FFD700;
  --text: #0F172A;

  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  padding: 40px 0;
  background: #f9fafb;
}

.mtn-contact * {
  box-sizing: border-box;
}

/* Encabezado */
.mtn-head {
  max-width: 1200px;
  margin: 0 auto 20px;
  text-align: center;
  padding: 0 12px;
}
.mtn-head h2 {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 28px);
}
.mtn-head p {
  margin: 0;
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
}

/* GRID */
.mtn-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  gap: 28px;
  justify-content: center;
  grid-template-columns: repeat(3, 340px); /* proporción fija */
}
@media (max-width: 1024px) {
  .mtn-grid { grid-template-columns: repeat(2, 340px); }
}
@media (max-width: 720px) {
  .mtn-grid { grid-template-columns: 1fr; }
}

/* Tarjetas */
.mtn-card {
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 14px;
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
}

.mtn-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--yellow);
  border-radius: 12px 12px 0 0;
}

.mtn-card h3 {
  margin: 8px 0;
  color: var(--blue);
  font-weight: 800;
  font-size: 18px;
}

.mtn-center {
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Campos */
.mtn-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--blue);
  margin: 2px 0;
}

.mtn-input,
.mtn-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.6px solid #CBD5E1;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}

.mtn-input::placeholder,
.mtn-textarea::placeholder {
  color: #6b7280;
}

.mtn-input:focus,
.mtn-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 73, 125, .16);
  outline: 0;
}

.mtn-textarea {
  min-height: 92px;
  resize: vertical;
}

/* Botones */
.mtn-btn {
  margin-top: auto;
  height: 46px;
  width: 100%;
  border: none;
  border-radius: 12px;
  background: var(--blueBtn);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease, transform .15s ease, box-shadow .15s ease, border .15s ease;
  text-decoration: none;
}

.mtn-btn:hover {
  background: var(--blueBtnH);
  transform: translateY(-1px);
  border: 2px solid var(--yellow);
  box-shadow: 0 0 12px rgba(255, 215, 0, .55);
}

/* Responsive accesible */
@media (max-width: 640px) {
  .mtn-input,
  .mtn-textarea {
    font-size: 16px;
  }
  .mtn-btn {
    height: 52px;
  }
}