/* Configuración global */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

/* Logo circular */
.logo {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin: 0 auto 1rem;
}

/* Header: azul degradado con título imponente */
header {
  background: linear-gradient(135deg, #073975, #001f3f);
  padding: 3rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(45deg);
  animation: slideGlow 8s linear infinite;
}

@keyframes slideGlow {
  0% {
    transform: translate(-100%, -100%) rotate(45deg);
  }

  100% {
    transform: translate(100%, 100%) rotate(45deg);
  }
}

header h1 {
  font-size: 4rem;
  text-transform: uppercase;
  letter-spacing: 6px;
  font-weight: 700;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
  color: #fff;
  opacity: 0;
  animation: fadeInUp 1s forwards;
}

header p {
  font-size: 1.25rem;
  color: #d1dce8;
  opacity: 0;
  animation: fadeInUp 1s 0.5s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sección de contenido con fondo blanco */
.content-section {
  background-color: #fff;
  padding: 2rem 0;
}

/* Estilos para las tarjetas */
.card-custom {
  border: none;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.card-blue-claro {
  background: rgb(11, 94, 215);
  color: #fff;
}

.card-blue {
  background: #003893;
  color: #fff;
}

.card-red {
  background: #e63946;
  color: #fff;
}

.location-image img {
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.location-image img:hover {
  transform: scale(1.05);
}

/* Sección de alianza exclusiva */
.exclusive {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin: 2rem 0;
  border: 1px solid #ddd;
}

.exclusive h3 {
  margin-bottom: 1rem;
}

/* Sección de videos */
.video-section {
  background-color: #f8f9fa;
  padding: 3rem 0;
}

/* Footer */
footer {
  background: #fff;
  color: #001c3c;
  padding: 2rem 1rem;
  text-align: center;
}

footer .social-media a {
  margin: 0 0.5rem;
  text-decoration: none;
  color: inherit;
  font-size: 1.2rem;
}

footer .social-media p {
  margin: 0.5rem 0;
}


/* ESTILO DE BOTONES LATERALES */
/* Botones fijos */
#toggleSocial,
#toggleSponsor {
  width: 123px;
  text-align: left;
  font-size: 14px;
  padding-left: 2rem;
  z-index: 1000;
}

/* Panel deslizable */
#socialPanel {
  position: fixed;
  top: 0;
  right: -340px;
  width: 340px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  box-sizing: border-box;
  transition: right .3s ease;
  z-index: 1001;
  overflow-y: auto;
}

#socialPanel.open {
  right: 0;
}

/* Close button */
.close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  top: .5rem;
  right: .75rem;
}

/* Social lists */
.social-list {
  list-style: none;
  padding: 0;
}

.social-list li {
  margin-bottom: .75rem;
}

.social-list a {
  text-decoration: none;
  color: #333;
  font-size: .95rem;
  display: flex;
  align-items: center;
  transition: color .2s;
}

.social-list a i {
  width: 1.2rem;
  text-align: center;
}

.social-list a:hover {
  color: #28a745;
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1002;
}

.modal-overlay.open {
  display: flex;
}

.modal-window {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-window h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.modal-window p {
  font-size: .95rem;
  color: #555;
}

.modal-window .btn {
  flex: 1;
}

/* ESTILO DE BOTONES LATERALES */

/* ===== Botón flotante y barra lateral ===== */
#sm-floating-seal .sm-btn {
  position: fixed;
  bottom: 60px;
  right: 20px;
  background: #003f70;
  /* tono más corporativo */
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 10001;
  transition: transform 0.2s;
}

#sm-floating-seal .sm-btn:hover {
  transform: scale(1.1);
}

#sm-floating-seal .sm-side-bar {
  position: fixed;
  bottom: 22%;
  right: 20px;
  transform: rotate(90deg) translateY(-50%);
  background: #005b99;
  color: #fff;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.5px;
  border-radius: 4px 4px 0 0;
  cursor: default;
  z-index: 10000;
}

/* ===== Modal de sello maestro ===== */
#sm-seal-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sm-seal-modal .sm-content {
  position: relative;
  background: #ffffff;
  padding: 32px 24px;
  border-radius: 8px;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* Pseudo-elemento para la marca de agua repetida detrás */
#sm-seal-modal .sm-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://bancodelagua.com/app/assets/templates/homepage/image/clientes/1.png');
  background-repeat: repeat;
  background-size: 80px auto;
  opacity: 0.05;
  /* muy translúcida */
  z-index: 0;
}

/* Aseguramos que todo el contenido esté por encima */
#sm-seal-modal .sm-content>* {
  position: relative;
  z-index: 1;
}

/* Botón de cerrar */
#sm-seal-modal .sm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

/* Títulos y texto */
#sm-seal-modal h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #003f70;
  text-align: center;
}

#sm-seal-modal p.sm-intro {
  font-size: 15px;
  text-align: center;
  color: #444;
  margin-bottom: 20px;
}

.sm-seal-section {
  margin: 16px 0;
}

.sm-seal-section h4 {
  margin: 8px 0;
  font-size: 18px;
  color: #005b99;
}

.sm-seal-section p {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

#sm-seal-modal p.sm-footer {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 24px;
}