/* ==========================================
   HERO — ASESORÍA JURÍDICA
   ========================================== */

.hero-somos {
  position: relative;
  width: 100%;
  height: 45vh;
  overflow: hidden;
}

.hero-somos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-somos .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  text-align: center;
  padding: 0 20px;
}

.hero-somos h1 {
  font-size: var(--fs-xl);
  margin-bottom: 8px;
}

.hero-somos p {
  font-size: var(--fs-md);
}

/* Responsive HERO */
@media (max-width: 768px) {
  .hero-somos {
    height: 35vh;
  }
}


/* ==========================================
   INTRO (texto-somos)
   ========================================== */

.texto-somos {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 25px;
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
}

.texto-somos p {
  margin-bottom: 16px;
}

.texto-somos ul {
  margin: 6px 0 0 22px;
  padding-left: 10px;
  list-style: disc;
}

.texto-somos li {
  margin-bottom: 8px;
}


/* ==========================================
   ICONO GENÉRICO
   ========================================== */

.icon {
  display: inline-block;
  margin-right: 4px;
}


/* ==========================================
   SERVICIOS JURÍDICOS
   ========================================== */

.servicios-juridicos {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 20px 30px;
}

.servicios-juridicos h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0A6FB5;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.servicio-card {
  background: #f9fbff;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.servicio-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.servicio-card p {
  margin: 0;
  line-height: 1.7;
  color: #555;
}

/* ==========================================
   BLOQUE AGENDA SESIÓN
   ========================================== */

.bloque-agenda-juridica {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 28px 20px 34px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.bloque-agenda-juridica h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bloque-agenda-juridica p {
  margin-bottom: 18px;
  line-height: 1.7;
}

/* Formulario */
.form-asesoria {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-top: 10px;
}

.campo {
  display: flex;
  flex-direction: column;
}

.campo label {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #333;
}

.campo input,
.campo select,
.campo textarea {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  font-family: inherit;
}

.campo textarea {
  resize: vertical;
}

/* campos de ancho completo */
.campo:nth-child(4),
.campo:nth-child(5) {
  grid-column: 1 / 3;
}

.campo-check {
  grid-column: 1 / 3;
  font-size: 0.9rem;
}

.campo-check label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-asesoria .btn-primary {
  grid-column: 1 / 3;
  justify-self: flex-start;
  margin-top: 4px;
}

.nota-form {
  grid-column: 1 / 3;
  font-size: 0.9rem;
  color: #555;
  margin-top: 6px;
}


/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 900px) {
  .servicios-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .texto-somos {
    padding: 30px 16px 20px;
  }

  .servicios-juridicos {
    padding: 18px 16px 26px;
  }

  .bloque-agenda-juridica {
    margin: 0 10px 32px;
    padding: 22px 16px 28px;
  }

  .form-asesoria {
    grid-template-columns: 1fr;
  }

  .campo:nth-child(4),
  .campo:nth-child(5),
  .campo-check,
  .form-asesoria .btn-primary,
  .nota-form {
    grid-column: 1 / 2;
  }

  .form-asesoria .btn-primary {
    width: 100%;
    text-align: center;
    justify-self: stretch;
  }
}



/* ==========================================
   RESPUESTA BAJO EL FORMULARIO
   ========================================== */

.respuesta-juridica {
  margin-top: 25px;
  padding: 25px 20px;
  background: #f0f7ff;
  border-left: 5px solid #0A6FB5;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.respuesta-juridica h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #0A6FB5;
}

.respuesta-juridica p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 15px;
}

.volver-btn {
  display: inline-block;
  margin-top: 10px;
}
