:root {
  /* 🎨 Paleta de colores */
  --color-fondo-principal: #e7edf0;
  --color-logo-arriba: #E3CECF;
  --color-header-boton: #98c1d9;
  --color-texto-titulos: #333;
  --color-texto-hover: #666;
  --color-tarjeta-contacto: #d2edfd;
  --color-enlace: #ffffff;
  --color-enlace-hover: #333;
  --color-boton-principal: #3d5a80;
  --color-boton-hover: #eac5c6;
  --color-tarjeta-fondo: #ffffff;
  --sombra-general: rgba(0, 0, 0, 0.3);
}

/* Estilos generales */
body {
  background-color: var(--color-fondo-principal);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 100;
  margin-top: 0.3rem;
  margin-bottom: 0px;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h2 a {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--color-texto-titulos);
  text-decoration: none;
}
h2 a:hover { color: var(--color-texto-hover); }

body, p, a, input, button {
  font-family: 'Raleway', serif;
  font-weight: 400;
}

/* 📌 DIVS de contenido */
.contenido {
  display: none;
  position: absolute;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}
.contenedor { text-align: center; }
.contenedor img {
  max-width: 100%;
  height: auto;
  width: 250px;
}
@media (max-width: 480px) {
  .contenedor img { width: 220px; }
}

/* 🎯 Botones */
.icono img {
  filter: drop-shadow(0 5px 2px var(--sombra-general));
  animation: respirar 4s infinite ease-in-out;
  margin-bottom: .8rem;
  transition: transform 0.3s, filter 0.3s, background-color 0.3s;
  width: 220px;
}
@keyframes respirar {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}
.icono img:active,
.icono img:focus {
  transform: scale(1.1) translateX(-20px);
  filter: drop-shadow(0 0 15px var(--sombra-general));
  margin-right: 4rem;
}

/* Encabezado con logo */
.img-boton-arriba {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-header-boton);
  display: flex;
  justify-content: start;
  align-items: center;
}
.img-boton-arriba img,
.img-logo-arriba img {
  max-width: 100%;
  max-height: 100%;
}
.img-logo-arriba {
  background-color: var(--color-logo-arriba);
}

/* Capas */
.z-1 { z-index: 1; } .z-2 { z-index: 2; } .z-3 { z-index: 3; }
.z-4 { z-index: 4; } .z-5 { z-index: 5; } .z-6 { z-index: 6; }
.z-7 { z-index: 7; } .z-8 { z-index: 8; } .z-9 { z-index: 9; }
.z-10 { z-index: 10; }

/* Tarjeta presentación */
.contenedor_tarjeta {
  position: relative;
  width: 100%;
  height: 100vh;
}
#div_tarjeta_img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
}
#div_tarjeta_img img,
#div_tarjeta_base img {
  max-width: 100%;
  max-height: 100%;
}
#div_tarjeta_base {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 2rem;
}

/* Botón contacto */
#div_tarjeta_contacto-boton {
  position: absolute;
  top: 110px;
  left: 5px;
  width: 100%;
}
#div_tarjeta_contacto-boton img {
  max-width: 10rem;
  margin: 1rem;
}

/* Datos */
#div_tarjeta_datos {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  padding: 20px 20px 20px 80px;
  color: var(--color-tarjeta-contacto);
}
#div_tarjeta_datos h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 10px;
}
#div_tarjeta_datos div {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  margin-bottom: 8px;
}
#div_tarjeta_datos a {
  color: var(--color-enlace);
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}
#div_tarjeta_datos a:hover {
  color: var(--color-enlace-hover);
  transform: scale(1.05);
}

/* Iconos de acción */
.icono_contacto {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.icono_contacto div {
  flex: 1;
  text-align: center;
}
.icono_contacto img {
  max-width: 50px;
  border-radius: 50%;
  box-shadow: 5px 4px 6px var(--sombra-general);
  transition: box-shadow 0.3s ease;
}
.icono_contacto img:active {
  box-shadow: -8px -3px 6px var(--sombra-general);
}

/* Botón atrás */
.icono_atras {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 50px;
}
.icono_atras img {
  max-width: 50px;
  border-radius: 50%;
  box-shadow: 5px 4px 6px var(--sombra-general);
}
.icono_atras.agenda_atras { top: 60px; }
.position img:active {
  box-shadow: -8px -3px 6px var(--sombra-general);
}
.alto { height: 30px; }

/* Descarga */
#div_descargar_texto {
  text-align: center;
  width: 80%;
  margin: 0 auto;
}
.contenedor #div_descargar_texto img {
  max-width: 100%;
  height: auto;
}
.img_texto { max-width: 300px; }
#div_descargar_iconos {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
#div_descargar_iconos img {
  width: 120px;
}
.icono_boton {
  filter: drop-shadow(0 5px 2px var(--sombra-general));
  animation: respirar 4s infinite ease-in-out;
  margin-bottom: 2.5rem;
  transition: transform 0.3s, filter 0.3s;
}

/* Promociones */
.custom-card-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px;
  margin-top: 15rem;
}
.custom-card {
  width: 100%;
  max-width: 20rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-tarjeta-fondo);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}
.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.custom-card-img-container {
  width: 100%;
  overflow: hidden;
}
.custom-card-img-container img {
  width: 100% !important;
}
.custom-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.custom-card-body {
  padding: 5px 15px 25px 15px;
  text-align: center;
}
.custom-card-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
}
.custom-card-text {
  font-size: 1rem;
  color: #444;
  margin-bottom: 20px;
}
.custom-btn {
  font-family: 'Roboto', sans-serif;
  display: block;
  padding: 12px 20px;
  background: var(--color-boton-principal);
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  border-radius: 5px;
  transition: background 0.3s ease-in-out;
  font-weight: bold;
  width: 100%;
  max-width: 9rem;
}
.custom-btn:hover {
  background: var(--color-boton-hover);
  color: var(--color-enlace-hover);
}
