

/* ======== CONTENIDO ======== */
.encabezado {
  position: relative;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
}

.encabezado img {
  width: 100%;
  height: 350px;
  object-fit: cover; 
  display: block;
}

.encabezado h2 {
    position: absolute;
    inset: 0; /* ocupa todo el contenedor */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3em;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    background-color: rgba(0,0,0,0.4); /* negro semitransparente */
    border-radius: 0; /* sin bordes */
    padding: 0;
}

.text1 {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
    font-size: 18px;
}

.servicios {
  padding: 40px 20px;
  background-color: #f5f5f5;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas iguales */
  gap: 20px;
  max-width: 1000px;      /* Ancho máximo del contenido */
  margin: 0 auto;          /* Centra horizontalmente la cuadrícula */
  align-items: stretch;    /* Todos los recuadros con misma altura */
}

.servicio {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.servicio img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 15px;
}

.servicio h3 {
  margin-bottom: 10px;
  font-size: 1.5em;
}

.servicio p {
  margin-bottom: 15px;
  font-size: 1em;
  flex-grow: 1; /* Hace que el párrafo empuje el botón abajo */
}

/* Botón de las tarjetas de servicio.
   - Colores y animaciones se editan aquí. */
.servicio button {
  --c1: #195DAC;
  --c2: #2F73C2;

padding: 8px 22px;   /* más pequeño */
font-size: 15px; 
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #195DAC;
  background: transparent;

  border: 2px solid var(--c1);
  border-radius: 14px;

  cursor: pointer;
  transition: 0.35s ease;
  position: relative;
  overflow: hidden;

  box-shadow: 0 0 0 rgba(0,0,0,0);
}

/* Efecto brillo en el botón. */
.servicio button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
      120deg, 
      transparent 0%, 
      rgba(255,255,255,0.25) 50%, 
      transparent 100%
  );
  transition: 0.5s;
}

/* Hover del botón. */
.servicio button:hover {
  border-color: var(--c2);
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(25, 93, 172, 0.35);
}

.servicio button:hover::before {
  left: 100%;
}


