/* ============================================================
   SECCIONES GENERALES DE LA HOME — EstudiaenEspaña
   Ruta: /wp-content/themes/escuela/css/home/home-sections.css

   Cubre: "Que significa estudiar en España..." + "Vias de acceso"
   (Seccion 1 del export de Divi). Reutiliza las clases globales
   .boton / .incribete ya existentes en style.css para los botones,
   en vez de duplicar su estilo.

   Valores replicados EXACTOS de los ajustes del modulo de Divi
   original (header_2_font_size, background_color, etc.) para que
   no cambie nada visualmente al migrar.
   ============================================================ */

.home-section {
  font-family: 'Lato', sans-serif;
}

.home-section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px;
}

.home-section h2 {
  font-weight: 800;
  color: #283474;
  font-size: 40px;
  line-height: 1.5em;
  margin: 0 0 20px;
}

.home-section-text {
  font-family: 'Lato', sans-serif;
  font-size: 20px;
  line-height: 1.4em;
  color: #333;
  margin: 0 0 30px;
}

.home-section-text a {
  color: #283474;
  font-weight: 700;
  text-decoration: underline;
}

/* ===== KICKER (etiqueta pequeña sobre el H2, patrón de .pqs-kicker) ===== */
.home-kicker {
  display: inline-block;
  background: #eef0fa;
  border: 1px solid #d6daf2;
  color: #283474;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin: 0 0 14px;
}

/* ===== BLOQUE "QUÉ SIGNIFICA" — texto + vídeo en 2 columnas
   (patrón de .pqs-como-grid, ya usado en /quienes-somos/) ===== */
.home-como-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 24px;
}

.home-como-text p {
  font-size: 17px;
  line-height: 1.65;
  color: #444;
  margin: 0 0 16px;
}

.home-como-strip {
  font-weight: 900;
  color: #283474;
  font-size: 15px !important;
  background: #EFF7FF;
  padding: 12px 16px;
  border-left: 4px solid #F39200;
  border-radius: 4px;
}

@media (max-width: 860px) {
  .home-como-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== LISTA DE PASOS NUMERADOS ("¿Cómo funciona?") ===== */
.home-pasos {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  counter-reset: none;
}

.home-pasos li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #EFF7FF;
}

.home-pasos li:last-child {
  border-bottom: none;
}

.home-pasos-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #283474;
  color: #ffffff;
  font-weight: 900;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-pasos-text {
  font-size: 17px;
  line-height: 1.5;
  color: #444;
  padding-top: 6px;
}

.home-pasos-text a {
  color: #283474;
  font-weight: 700;
  text-decoration: underline;
}

/* ===== TARJETAS DE COSTE ("¿Cuánto cuesta?", patrón .pqs-stat-card) ===== */
.home-coste-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0 16px;
}

.home-coste-card {
  border-radius: 18px;
  padding: 28px 20px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 12px 28px rgba(20, 26, 60, 0.18);
}

.home-coste-card--ue {
  background: #283474;
}

.home-coste-card--noue {
  background: #F39200;
}

.home-coste-num {
  display: block;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1em;
  margin-bottom: 8px;
}

.home-coste-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3em;
  opacity: 0.95;
}

.home-coste-nota {
  font-size: 14px !important;
  color: #777 !important;
  font-style: italic;
}

@media (max-width: 640px) {
  .home-coste-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== TARJETAS DE PERFIL (Vias de acceso) ===== */
.home-perfil-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.home-perfil-card {
  background: #ffffff;
  border-left: 4px solid #F39200;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(40, 52, 116, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.home-perfil-imagen {
  position: relative;
}

.home-perfil-imagen img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 8px;
  display: block;
  margin-bottom: 16px;
}

/* ===== TARJETAS DE PAÍS — foto completa + overlay navy (patrón
   del propio hero), diferenciado a propósito de .home-perfil-card
   para no repetir el mismo blanco+borde naranja por tercera vez ===== */
.home-pais-card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(20, 26, 60, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-pais-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(20, 26, 60, 0.22);
}

.home-pais-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.home-pais-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 14px 14px;
  background: linear-gradient(180deg, rgba(40,52,116,0) 0%, rgba(40,52,116,0.85) 65%, rgba(40,52,116,0.95) 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-pais-nombre {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.home-pais-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: #F39200;
  border: 1px solid #F39200;
  padding: 5px 10px;
  border-radius: 20px;
  width: fit-content;
  margin-top: 6px;
  transition: background 0.2s ease;
}

.home-pais-card:hover .home-pais-cta {
  background: #d97e00;
  border-color: #d97e00;
}

.home-perfil-titulo {
  color: #283474;
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
}

.home-perfil-descripcion {
  color: #585860;
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 20px;
  flex-grow: 1;
}

.home-perfil-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  background-color: #F39200;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
  margin-top: auto;
}

.home-perfil-btn:hover {
  background-color: #e08500;
  color: #ffffff !important;
}

/* ===== BANNER "NO TENGO CLARO MI PERFIL" — captación de leads
   (patrón de .pqs-mid-cta-banner, ya usado en /quienes-somos/) ===== */
.home-no-perfil {
  background: linear-gradient(135deg, #EFF7FF 0%, #e1f0fc 100%);
  border: 2px dashed #b1d7f7;
  border-radius: 18px;
  padding: 28px;
  margin: 40px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.home-no-perfil p {
  margin: 0;
  color: #283474;
  font-size: 17px;
  font-weight: 700;
}

.home-no-perfil-btn {
  background: #F39200;
  color: #ffffff !important;
  font-weight: 900;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.home-no-perfil-btn:hover {
  background: #e08500;
}

@media (max-width: 640px) {
  .home-no-perfil {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 980px) {
  .home-perfil-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== REJILLA DE PAÍSES (4 columnas, reutiliza .home-perfil-card) ===== */
.home-paises-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 980px) {
  .home-paises-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .home-paises-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SECCIÓN 3 — Por qué elegirnos / Testimonios / FAQ / CTA final
   ============================================================ */

/* ===== TARJETAS DE RAZÓN (patrón .pqs-valor-card reutilizado) ===== */
.home-razon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.home-razon-card {
  background: #ffffff;
  border-left: 4px solid #F39200;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(40, 52, 116, 0.08);
  padding: 22px 20px;
}

.home-razon-card h3 {
  font-size: 18px;
  color: #283474;
  margin: 0 0 8px;
  line-height: 1.3;
}

.home-razon-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #585860;
  margin: 0;
}

@media (max-width: 980px) {
  .home-razon-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .home-razon-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ESTADÍSTICA DESTACADA (99% / 100%) ===== */
.home-stat-destacada {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #585860;
  line-height: 1.5em;
  max-width: 720px;
  margin: 24px auto;
}

.home-stat-num {
  display: block;
  font-size: 56px;
  font-weight: 900;
  color: #F39200;
  line-height: 1.1;
}

/* ===== TESTIMONIOS (patrón de tarjeta reutilizado, foto rectangular) ===== */
.home-testimonios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.home-testimonio-card {
  background: #ffffff;
  border-left: 4px solid #F39200;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(40, 52, 116, 0.08);
  padding: 14px;
  text-align: center;
}

.home-testimonio-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin-bottom: 12px;
}

.home-testimonio-nombre {
  font-weight: 700;
  color: #333333;
  font-size: 15px;
  line-height: 1.3;
  margin: 0 0 4px;
}

.home-testimonio-nota {
  font-weight: 700;
  color: #4e4e4e;
  font-size: 14px;
  margin: 0 0 2px;
}

.home-testimonio-pais {
  color: #777;
  font-size: 14px;
  margin: 0;
}

@media (max-width: 980px) {
  .home-testimonios-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .home-testimonios-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== TEXTO Y BOTÓN DE RESULTADOS ===== */
.home-resultados-texto {
  text-align: center;
  font-size: 18px;
  line-height: 1.6em;
  color: #444;
  max-width: 780px;
  margin: 0 auto 28px;
}

.home-cta-btn {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background-color: #F39200;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 18px;
  padding: 16px 34px;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.home-cta-btn:hover {
  background-color: #d97e00;
  transform: translateY(-2px);
}

/* ===== FAQ (acordeón) — formato REAL ya usado en el curso:
   tarjeta blanca, borde naranja grueso a la izquierda (esquinas
   redondeadas), icono "+" navy plano, sin sombra ===== */
.home-faq-list {
  margin-top: 28px;
}

.home-faq-item {
  border-left: 5px solid #F39200;
  border-radius: 12px;
  background: #ffffff;
  margin-bottom: 14px;
  overflow: hidden;
}

.home-faq-pregunta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 20px 22px;
  font-family: 'Lato', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #585860;
  line-height: 1.4em;
}

.home-faq-icono {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #283474;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.home-faq-item[data-abierto="true"] .home-faq-icono {
  transform: rotate(45deg);
}

.home-faq-respuesta {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.home-faq-respuesta p {
  font-size: 17px;
  line-height: 1.6em;
  color: #585860;
  margin: 0 22px 22px;
}

.home-faq-respuesta a {
  color: #283474;
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .home-faq-pregunta {
    font-size: 16px;
    padding: 16px 18px;
  }
  .home-faq-respuesta p {
    font-size: 15px;
    margin: 0 18px 18px;
  }
}

/* ===== CTA FINAL (2 columnas: lista + formulario) ===== */
.home-cta-final-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
  align-items: start;
}

.home-cta-final-pregunta {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px;
}

.home-cta-final-lista {
  margin: 0 0 20px;
  padding-left: 22px;
}

.home-cta-final-lista li {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.7em;
  color: #333;
}

.home-cta-final-experiencia {
  font-size: 18px;
  line-height: 1.6em;
  color: #333;
  margin: 0;
}

.home-cta-final-form {
  background: #EFF7FF;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 8px 20px rgba(40, 52, 116, 0.08);
}

.home-cta-final-form-titulo {
  font-weight: 700;
  color: #283474;
  font-size: 24px;
  line-height: 1.4em;
  margin: 0 0 16px;
}

/* Sobrescribe la regla global .wpcf7-list-item-label {color:#fff}
   de style.css (pensada para fondos oscuros) — en nuestra tarjeta
   el fondo es claro, así que el texto debe ser oscuro para leerse */
.home-cta-final-form .wpcf7-list-item-label {
  color: #585860 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.home-cta-final-form .wpcf7-list-item-label a {
  color: #283474;
  text-decoration: underline;
}

@media (max-width: 860px) {
  .home-cta-final-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .home-section h2 {
    font-size: 26px;
  }
  .home-section-text {
    font-size: 17px;
  }
}