/* =====================
   BASE
===================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =====================
   SECCIONES
===================== */

.services-section {
  padding: 2rem 0;
}

/* =====================
   GRIDS
===================== */

.services-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.services-grid-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;

  display: grid;
  grid-template-columns: 1fr;
}

/* =====================
   TARJETAS
===================== */

.card {
  position: relative;

  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);

  display: flex;
  flex-direction: column;

  cursor: pointer;
}

.card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Imagen */
.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;

  position: relative;
  z-index: 2;
}

/* =====================
   LINK INVISIBLE
===================== */

.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* =====================
   CONTENIDO TARJETA
===================== */

.card-body {
  position: relative;
  z-index: 2;

  padding: 1.2rem;
  text-align: center;
}

.card-body p {
  margin: 0.4rem 0;
  font-size: 0.9rem;
  color: #555;
  text-align: left;
}

/* Listas con ✓ sin viñeta */
.card-body ul {
  list-style: none;
  margin: 0.8rem 0;
  padding-left: 0;
  text-align: left;
  font-size: 0.85rem;
}

.card-body li {
  margin-bottom: 0.3rem;
}

/* =====================
   TÍTULO + WHATSAPP
===================== */

.card-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  margin: 0.4rem 0;
  font-size: 1.1rem;
  justify-content: center;
}

/* Icono WhatsApp pequeño (ORO) */
.wa-icon {
  display: inline-flex;
  align-items: center;

  position: relative;
  z-index: 3;
}

.wa-icon img {
  width: 1em;
  height: 1em;
}

/* =====================
   TARJETA ANCHA
===================== */

.card-wide {
  display: grid;
  grid-template-columns: 1fr 2fr;
}

.card-wide .card-body {
  text-align: left;
}

/* =====================
   INSTITUCIONAL
===================== */

.institutional {
  background: #f7f7f7;
  padding: 2rem;
}

.institutional p {
  max-width: 900px;
  margin: 0 auto 1rem;
}

/* =====================
   RESPONSIVE
===================== */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================
   CLICK TARJETA + WHATSAPP
===================== */

/* El link invisible captura el click */
.card-link {
  pointer-events: auto;
}

/* La imagen no bloquea el click */
.card img {
  pointer-events: none;
}

/* El contenido permite click (para que el link funcione) */
.card-body {
  pointer-events: auto;
}

/* WhatsApp siempre clicable */
.wa-icon,
.wa-icon * {
  pointer-events: auto;
}


.seo-hidden {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bloque-diferencia {
  max-width: 900px;
  margin: 3rem auto;
  padding: 1.5rem 2rem;
  text-align: center;
  background: #f9fafb;
  border-radius: 8px;
}

.bloque-diferencia h2 {
  margin-bottom: 0.5rem;
}

.bloque-diferencia p {
  margin: 0.5rem 0;
  color: #555;
}