/* =========================
   Style - Index CSS
   Autor: Jose Sandoval - Teótl Web Design
   Fecha: 2025-10-17
   Descripción: Estilos responsivos de index
========================= */


/* Hero */
.hero {
  background: url('imagenes/Curso\ una\ vida\ equilibrada.jpg') center/cover no-repeat;
  height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 20px;
}

.hero-text {
  background: #293021d4;
  padding: 30px;
  border-radius: var(--radio-borde);
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--color-texto-invertido);
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 30px;
}

.btn {
  background: var(--color-texto);
  color: var(--color-primario);
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}

.btn:hover {
  background: #fcbf49;
  color: rgb(9, 9, 9);
}

/* Servicios */
.services {
  padding: 60px 10%;
  background: #f9f9f9;
  text-align: center;
}

.services h2 {
  margin-bottom: 40px;
  font-size: 2rem;
  color: #2a6a47;
}

.service-container {
  display: flex;
  gap: 20px;
  
  justify-content: space-between;
  
}

.service-card {
  background: var(--color-fondo);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  flex: 1 1 250px;
  width: 30%;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(16,24,40,0.12);
}
.service-container .service-card img {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  margin-bottom: 15px;
  object-fit: cover;
}
.service-card h3 {
  margin-bottom: 15px;
  color: var(--color-texto-invertido);
  font-size: 1.4rem; 
  border-bottom: 1px solid var(--color-acento);
  padding-bottom: 8px;
}
.service-card p {
  font-size: 1rem;
  color: white;
  line-height: 1.5;
  font-size: 18px;
}

/* Bienvenida */
.bienvenida {
  width: 100%;
  padding: 60px 15%;
  background: var(--color-acento);
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.bienvenida img {
  
  width: 100%;
  height: 300px;
  display: block;
  border-radius: 15px 0px 0px 15px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.bienvenida .bienvenida-card {
  background: rgb(239, 236, 236);
  flex: 0 0 65%;
  height: 300px;
  border-radius: 0px 15px 15px 0px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.bienvenida-card {
  padding: 30px;
  text-align: left;
}
.bienvenida-card h3 {
  margin-bottom: 20px;
  color: var(--color-texto);
  font-size: 1.6rem; 
  border-bottom: 1px solid var(--color-primario);
  padding-bottom: 10px;
}
.bienvenida-card p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  font-size: 18px;
}

/* Testimonios */
    .testimonials {
      width:100%;
      max-width: var(--max-width);
      margin: 25px;
    }

    .testimonials__header{
      display:flex;
      flex-direction: column;
      align-items:center;
      justify-content:space-between;
      gap: 16px;
      margin-bottom: 18px;
      padding-top: 20px;
    }

    .testimonials__title {
      margin:0;
      font-size: clamp(1.2rem, 2.4vw, 1.6rem);
      line-height:2;
    }
    .testimonials__subtitle {
      color: var(--muted);
      font-size: 1.2rem;
      text-align: center;
    }

    /* ---------- GRID DE CARDS ---------- */
    .testimonials__grid {
      width: 85%;
      display: grid;
      gap: 2em;
      grid-template-columns: 1fr 1fr 1fr;
    }

    .testimonial {
      background: var(--card);
      border-radius: var(--radius);
      padding: 18px;
      box-shadow: var(--shadow);
      display: flex;
      gap: 14px;
      align-items: flex-start;
      transition: transform .22s ease, box-shadow .22s ease;
    }
    .testimonial:hover{
      transform: translateY(-6px);
      box-shadow: 0 12px 28px rgba(16,24,40,0.12);
    }

    .testimonial__avatar{
      flex: 0 0 56px;
      width: 56px;
      height: 56px;
      border-radius: 999px;
      overflow: hidden;
      display: grid;
      place-items:center;
      background: linear-gradient(135deg, #e6fffb, #ecfeff);
      border: 2px solid rgba(14,165,164,0.08);
    }
    .testimonial__avatar svg {  
      width: 44px; 
      height:44px; 
      display:block 
    }

    .testimonial__body {
      flex: 1 1 auto;
      min-width: 0;
    }

    .testimonial__text {
      margin: 0 0 10px 0;
      font-size: 0.96rem;
      color: #0f172a;
      line-height: 1.45;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .testimonial__meta {
      display:flex;
      align-items:center;
      gap:10px;
      justify-content:space-between;
    }

    .person {
      display:flex;
      gap:10px;
      align-items:center;
    }
    .person__name { 
      font-weight:600; 
      font-size:0.95rem; margin:0; 
    }
    .person__role { 
      font-size:0.82rem; 
      color:var(--muted); 
      margin:0; 
    }

    /* estrellas */
    .rating { 
      display:flex; 
      gap:4px; 
      align-items:center 
    }
    .rating svg { 
      width:16px; 
      height:16px; 
      display:block 
    }

    /* cita visual opcional */
    .quote-mark {
      opacity: 0.08;
      font-size: 68px;
      line-height:1;
      margin-left: auto;
      pointer-events:none;
      user-select:none;
    }

    /* pequeños detalles para accesibilidad */
    .sr-only {
      position:absolute;
      width:1px;height:1px;
      padding:0;margin:-1px;overflow:hidden;
      clip:rect(0,0,0,0);border:0;
    }

    /* variante destacada (por si quieres un testimonial grande) */
    .testimonial--featured {
      grid-column: span 1;
    }


    /* =========================
   RESPONSIVE DESIGN
========================= */

/* Tablet */
@media (max-width: 992px) {
   .service-container {
    flex-direction: column;
    align-items: center;
  }
  .service-card {
   width: 80%;
    margin-bottom: 20px;
  }

  /* Bienvenida */
      .bienvenida { 
       padding: 30px 5%; 
       flex-direction: column
  
      }
      .bienvenida img {
        border-radius: 10px 10px 0px 0px;
        object-fit: cover;
        width: 80%;
        height: 300px;
      }
      .bienvenida .bienvenida-card {
        border-radius: 0px 0px 10px 10px;
        height: 300px;
        width: 80%;
      }
      .testimonials__grid { 
        grid-template-columns: repeat(1, minmax(0,1fr)); 
      }
    }
    


/* Móvil */
    /* responsive */
    @media (max-width:640px) {
      /* hero */
      .hero-text h1 { font-size:2.2rem; }
      .hero-text p { font-size:1.2rem; }

      /* Servicios */

    

    }

    

