/* ------- Reset ligero / utilidades ------- */
:root {
  --maxw: 1100px;
  --pad: 20px;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  display: block;
}

/* ------- HERO ------- */
.hero {
  position: relative;
  background-image: url("../images/app/caladecaballo.jpg");
  background-size: cover;
  background-position: center 0%;
  color: #fff;
  text-align: center;
  padding: 120px 20px; /* espacio para desktop */
  overflow: hidden;
}
.hero::before {
  /* Capa negra semi-transparente que cubre TODO */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3); /* ajusta 0.5–0.75 según necesites */
  z-index: 0;
}
.hero-title,
.hero-subtitle {
  position: relative; /* quedan encima de la capa */
  z-index: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.hero-title {
  font-size: clamp(28px, 5vw, 56px);
  margin: 0 0 8px 0;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 22px);
  margin: 0 auto;
  max-width: 900px;
  opacity: 0.95;
}

/* ------- MAIN LAYOUT ------- */
.servicios-main {
  max-width: var(--maxw);
  margin: 40px auto;
  padding: 0 var(--pad);
}

/* ------- Secciones ------- */
.section-title {
  font-size: 28px;
  margin: 10px 0 20px;
  font-weight: 700;
  text-align: center;
}

/* ------- Grid de servicios ------- */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.servicio-card {
  grid-column: span 12;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  padding: 18px;
}
.servicio-card h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
}
.servicio-card p {
  margin: 0 0 10px 0;
  line-height: 1.5;
}
.servicio-card .price {
  font-weight: 700;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .servicio-card {
    grid-column: span 6;
  }
}
@media (min-width: 1024px) {
  .servicio-card {
    grid-column: span 4;
  }
}

/* ------- Trainer ------- */
.trainer-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 50px;
}
.trainer-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.trainer-bio h2 {
  margin: 0 0 10px 0;
  font-size: 24px;
}
.bio-text {
  line-height: 1.7;
}
@media (min-width: 900px) {
  .trainer-section {
    grid-template-columns: 1fr 1.2fr;
  }
}

/* ------- Formulario de contacto ------- */
.contact-form {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  padding: 20px;
}
.form-group {
  margin-bottom: 14px;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  outline: none;
}
.form-control:focus {
  border-color: #111827;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
}
.form-submit {
  text-align: right;
  margin-top: 12px;
}
.btn {
  display: inline-block;
  border: none;
  background: #111827;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}
.btn:hover {
  filter: brightness(1.06);
}

.alumnos-section {
    margin-top: 50px;
}

/* ------- Modo oscuro base (opcional si tu header ya lo maneja) ------- */
@media (prefers-color-scheme: dark) {
  body {
    background: #0b0b0b;
    color: #eaeaea;
  }
  .servicio-card,
  .contact-form {
    background: #171717;
  }
  .form-control {
    background: #0f0f0f;
    color: #eaeaea;
    border-color: #2a2a2a;
  }
  .form-control:focus {
    border-color: #7a7aff;
    box-shadow: 0 0 0 4px rgba(122, 122, 255, 0.12);
  }
}
