/* ===== BASE ===== */
section {
  margin-top: 5rem;
}
.tipo-card img {
  width: 100%;
  height: 220px; /* clave */
  object-fit: cover;
  border-radius: 8px;
}
.tipo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* ===== HERO (SI LO USAI DESPUÉS) ===== */
.hero-matrimonios {
  width: 100%;
  height: 55vh;
  overflow: hidden;
  position: relative;
}

/* ===== CONTENIDO INICIAL ===== */
.content {
  text-align: center;
}
.content {
  padding: 3rem 1rem 0;
}

/* ESTE ES EL CORAZÓN DEL DISEÑO */
.content-narrow {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.content-narrow h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.content-narrow p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
/* ===== TRANSICIÓN SUAVE (CLAVE) ===== */
.services-wrapper {
  margin-top: 4rem;
  padding: 5rem 0;
  background: linear-gradient(to bottom, #ffffff 0%, #f7f7f7 100%);
}

/* ===== CARDS (MUCHO MÁS PRO) ===== */
.services h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 500;
}

.service-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.service-card p {
  font-size: 14px;
  color: #666;
  text-align: center;
}

/* ===== GALERÍA (ESTO ES LO QUE TE FALTABA) ===== */
.gallery {
  margin-top: 5rem;
}

.gallery h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.gallery-subtitle {
  text-align: center;
  color: #777;
  font-size: 14px;
  margin-bottom: 2.5rem;
}

/* MÁS RESPIRACIÓN VISUAL */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

/* EFECTO PREMIUM */
.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  background: #eee;
  position: relative;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(1.05);
}

/* ===== CTA (AHORA SÍ DECENTE) ===== */
.cta-section {
  margin-top: 5rem;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #111 0%, #222 100%);
  color: #fff;
  border-radius: 14px;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.cta-section p {
  font-size: 15px;
  color: #ccc;
  margin-bottom: 2rem;
}

/* BOTÓN CON PRESENCIA */
.botonx {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.botonx:hover {
  background: #000;
  color: #fff;
  border: 1px solid #fff;
}

/* ===== VOLVER ===== */
.volver-btn {
  display: inline-block;
  margin-top: 3rem;
  color: #444;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  padding-bottom: 3px;
  transition: 0.3s;
}

.volver-btn:hover {
  color: #000;
  border-color: #000;
}