@charset "UTF-8";
/* =========================================
   SALUD DEPORTIVA - PREGUNTAS FRECUENTES
========================================= */

.sd-faq-section {
  --faq-green: #afca0b;

  width: 100%;
  position: relative;
  padding: 90px 25px;
  background-image: url("../images/porque contratar un entrenador personal.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
	background-attachment: scroll;
	position: relative;
	isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
}

.sd-faq-section *,
.sd-faq-section *::before,
.sd-faq-section *::after {
  box-sizing: border-box;
	
}

/* ==========================================
   CAPA PARA OSCURECER LA IMAGEN
========================================== */

.sd-faq-section::before {
    content: "";
    position: absolute;
    inset: 0;
	z-index: -1;
	pointer-events: none;
    background: rgba(0, 0, 0, 0.70);
    
}

.sd-faq-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  
}

/* ENCABEZADO SUPERIOR CENTRADO */

.sd-faq-header {
  display: block;
  width: 100%;
  max-width: 1250px;
  margin: 0 auto 55px;
  text-align: center;
  position: relative;
}

.sd-faq-label {
  display: inline-block;
  color: var(--faq-green);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.sd-faq-header h2 {
  display: block;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
}

.sd-faq-header h2 span {
  display: block;
  color: var(--faq-green);
  margin-top: 5px;
}

.sd-faq-header p {
  max-width: 650px;
  margin: 18px auto 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

/* DISTRIBUCIÓN DE DOS COLUMNAS */

.sd-faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  width: 100%;
  align-items: start;
}

/* TARJETAS */

.sd-faq-item {
  position: relative;
  width: 100%;
  background: #111;
  border: 1px solid rgba(166, 255, 0, 0.15);
  border-radius: 13px;
  overflow: hidden;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.sd-faq-item:hover {
  border-color: var(--faq-green);
  box-shadow:
    0 0 12px rgba(166, 255, 0, 0.15),
    0 0 28px rgba(166, 255, 0, 0.08);
  transform: translateY(-3px);
}

.sd-faq-item.is-open {
  border-color: var(--faq-green);
  box-shadow: 0 0 18px rgba(166, 255, 0, 0.12);
}

/* BOTÓN DE PREGUNTA */

.sd-faq-question {
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.sd-faq-number {
  flex-shrink: 0;
  color: var(--faq-green);
  font-size: 13px;
  font-weight: 800;
}

.sd-faq-question-text {
  flex: 1;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

/* ICONO + Y - */

.sd-faq-toggle {
  position: relative;
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(166, 255, 0, 0.65);
  border-radius: 50%;
}

.sd-faq-toggle::before,
.sd-faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: var(--faq-green);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.sd-faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.sd-faq-item.is-open .sd-faq-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* RESPUESTAS DEL ACORDEÓN */

.sd-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.sd-faq-item.is-open .sd-faq-answer {
  grid-template-rows: 1fr;
}

.sd-faq-answer-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 20px;
  color: #aaa;
  font-size: 14px;
  line-height: 1.4;
  transition: padding 0.35s ease;
}

.sd-faq-item.is-open .sd-faq-answer-inner {
  padding: 0 20px 22px 48px;
}

/* TABLETS Y CELULARES: UNA COLUMNA */

@media (max-width: 900px) {
  .sd-faq-section {
    padding: 75px 22px;
  }

  .sd-faq-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .sd-faq-header {
    margin-bottom: 40px;
  }
}

/* CELULARES */

@media (max-width: 600px) {
  .sd-faq-section {
    padding: 60px 16px;
  }

  .sd-faq-header {
    margin-bottom: 32px;
  }

  .sd-faq-header h2 {
    font-size: 30px;
  }

  .sd-faq-header p {
    font-size: 16px;
  }

  .sd-faq-question {
    min-height: 75px;
    padding: 16px 13px;
    gap: 10px;
  }

  .sd-faq-question-text {
    font-size: 13px;
  }

  .sd-faq-number {
    font-size: 11px;
  }

  .sd-faq-answer-inner {
    font-size: 13px;
  }

  .sd-faq-item.is-open .sd-faq-answer-inner {
    padding: 0 15px 18px 36px;
  }
}
	
/* ==========================================
   AJUSTE PARA CELULARES
========================================== */

@media (max-width: 600px) {

    .sd-faq-section {

        background-position: center center;

        background-size: cover;

        background-attachment: scroll;

    }

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {
  .sd-faq-section *,
  .sd-faq-section *::before,
  .sd-faq-section *::after {
    transition-duration: 0.01ms !important;
  }
}
