/* =========================================================================
   PERSONALIZADO XOVE VIVEIRO (01/10/2026)
   Estilos exclusivos de este cliente. NO forma parte de la plantilla maestra.
   Se enlaza desde templates/web/inicio.html (y paginas propias del cliente).
   Al actualizar la plantilla, este archivo NO debe sobrescribirse ni borrarse.
   Todas las clases empiezan por "xv-" para no chocar con las compartidas.
   ========================================================================= */

/* -------------------------------------------------------------------------
   SERVICIOS: tarjetas con foto, titulo, subtitulo y texto visible
   ------------------------------------------------------------------------- */

.xv-servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 32px;
}

.xv-servicio {
  display: flex;
  flex-direction: column;
}

.xv-servicio-foto {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
}

.xv-servicio-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.xv-servicio:hover .xv-servicio-foto img {
  transform: scale(1.04);
}

.xv-servicio-cuerpo {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: -48px 14px 0;
  padding: 28px 24px 26px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(13, 27, 42, 0.08);
  text-align: center;
}

.xv-servicio-cuerpo h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--web-color-header);
  line-height: 1.25;
  margin-bottom: 8px;
}

.xv-servicio-cuerpo .xv-servicio-subtitulo {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--web-color-acento);
  margin-bottom: 16px;
}

.xv-servicio-cuerpo p {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #666;
  margin-bottom: 10px;
}

.xv-servicio-cuerpo p:last-of-type {
  margin-bottom: 0;
}

.xv-servicio-enlace {
  margin-top: auto;
  padding-top: 20px;
  align-self: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--web-color-acento);
  text-decoration: none;
}

.xv-servicio-enlace::after {
  content: " \2192";
  display: inline-block;
  transition: transform 0.25s ease;
}

.xv-servicio-enlace:hover::after {
  transform: translateX(4px);
}

/* Tablet: 2 columnas */
@media (max-width: 960px) {
  .xv-servicios-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }
}

/* Movil: 1 columna */
@media (max-width: 480px) {
  .xv-servicios-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .xv-servicio-cuerpo {
    margin: -40px 10px 0;
    padding: 24px 20px 22px;
  }
}

/* -------------------------------------------------------------------------
   ENCARGOS DE FLORES (usa el diseno de .web-24h, solo se anade el boton)
   ------------------------------------------------------------------------- */

.xv-flores-accion {
  margin-top: 32px;
}

/* -------------------------------------------------------------------------
   SEGURO DE DECESOS: bloque informativo con fondo blanco
   ------------------------------------------------------------------------- */

.xv-decesos {
  background: #ffffff;
  padding: 100px 32px;
}

.xv-decesos-contenido {
  max-width: 960px;
  margin: 0 auto;
}

.xv-decesos-etiqueta {
  display: block;
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--web-color-acento);
  margin-bottom: 10px;
}

.xv-decesos h2 {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--web-color-header);
  margin-bottom: 44px;
}

.xv-decesos-aviso {
  border-left: 4px solid var(--web-color-acento);
  padding-left: 28px;
}

.xv-decesos-aviso p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #555;
  margin-bottom: 22px;
}

.xv-decesos-aviso p:last-child {
  margin-bottom: 0;
}

.xv-decesos-aviso strong {
  color: var(--web-color-header);
}

.xv-decesos-aviso a[href^="tel:"] {
  color: var(--web-color-acento);
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .xv-decesos {
    padding: 64px 20px;
  }

  .xv-decesos-aviso {
    padding-left: 18px;
  }
}

/* -------------------------------------------------------------------------
   PAGINA SERVICIOS GENERALES (/servicios-generales)
   ------------------------------------------------------------------------- */

.xv-sg {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 32px 100px;
}

.xv-sg-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.xv-sg-etiqueta {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--web-color-acento);
  margin-bottom: 10px;
}

.xv-sg-intro h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--web-color-header);
  margin-bottom: 18px;
}

.xv-sg-intro p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
}

.xv-sg-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 48px;
}

.xv-sg-lista li {
  position: relative;
  padding: 0 0 18px 34px;
  border-bottom: 1px solid #ececec;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #555;
}

.xv-sg-lista li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--web-color-acento);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat exclude, linear-gradient(#000 0 0);
}

.xv-sg-costes {
  margin: 64px auto 0;
  max-width: 860px;
  padding: 36px 40px;
  background: #f7f7f5;
  border-left: 4px solid var(--web-color-acento);
  border-radius: 4px;
}

.xv-sg-costes h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--web-color-header);
  margin-bottom: 14px;
}

.xv-sg-costes p {
  font-size: 1rem;
  line-height: 1.75;
  color: #555;
  margin-bottom: 12px;
}

.xv-sg-costes p:last-child {
  margin-bottom: 0;
}

.xv-sg-llamada {
  margin-top: 64px;
  text-align: center;
}

.xv-sg-llamada p {
  font-size: 1.1rem;
  color: var(--web-color-header);
  font-weight: 600;
  margin-bottom: 20px;
}

.xv-sg-llamada-acciones {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.xv-sg-telefono {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--web-color-acento);
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .xv-sg-lista {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .xv-sg {
    padding: 64px 20px 72px;
  }

  .xv-sg-costes {
    padding: 28px 22px;
  }
}
