body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa;
  color: #212529;
}

.header-principal {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.header-texto h1 {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
  font-size: 1.8rem;
  z-index: 2;
}

.imagen-header {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 2rem 2rem;
  animation: fadeIn 2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.frase-rotativa {
  text-align: center;
  padding: 1rem 1.5rem;
  background-color: #ffffff;
  margin-top: -2rem;
}

.frase-rotativa h2 {
  font-weight: normal;
  font-size: 1.2rem;
  color: #495057;
}

.contenido-principal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
}

.tarjeta, .tarjeta-inteligente {
  background-color: #ffffff;
  width: 90%;
  max-width: 600px;
  border-radius: 1.2rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.tarjeta:hover, .tarjeta-inteligente:hover {
  transform: scale(1.02);
}

.tarjeta h3, .tarjeta-inteligente h3 {
  margin-top: 0;
  color: #0077b6;
}

.tarjeta-inteligente.antes { background-color: #0077b6; color: white; }
.tarjeta-inteligente.hoy {
  background: linear-gradient(135deg, #c8d6e5, #dce6f1);
  color: #1e2a38;
  border-left: 6px solid #6487a7;
  box-shadow: 0 0 18px rgba(100, 135, 167, 0.15);
  backdrop-filter: blur(4px);
}
.tarjeta-inteligente.despues { background-color: #2a9d8f; color: white; }

.boton-centro {
  margin-top: 1rem;
  background-color: #ffffff;
  color: #000000;
  padding: 1rem;
  border-radius: 0.75rem;
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.logo-fijo {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 999;
}

.logo-fijo img {
  width: 65px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0,0,0,0.25);
}



.header-texto-bottom h1 {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
  font-size: 1.6rem;
  z-index: 2;
}

.frase-bienvenida {
  text-align: center;
  padding: 1rem 1.5rem;
  background-color: #ffffff;
  font-size: 1.3rem;
  font-weight: 500;
  color: #333;
}

.frase-impacto {
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0.8rem 0;
}

.frase-extra {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1.2rem;
}

.boton-centro-llamativo {
  background-color: white;
  color: #000;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 0.75rem;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.tarjeta-inteligente {
  border-radius: 2rem;
  padding: 2rem;
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 0 12px rgba(255,255,255,0.1), 0 0 24px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.tarjeta-inteligente:hover {
  transform: scale(1.02);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.25);
}

.tarjeta-inteligente.antes {
  background: radial-gradient(circle at top left, #0d3b66, #0077b6);
  color: white;
  box-shadow: inset 0 0 12px rgba(255,255,255,0.1), 0 0 24px rgba(0,119,182,0.6);
}

.tarjeta-inteligente.hoy {
  background: linear-gradient(135deg, #c8d6e5, #dce6f1);
  color: #1e2a38;
  border-left: 6px solid #6487a7;
  box-shadow: 0 0 18px rgba(100, 135, 167, 0.15);
  backdrop-filter: blur(4px);
}

.tarjeta-inteligente.despues {
  background: radial-gradient(circle at bottom left, #1b4332, #2a9d8f);
  color: white;
  box-shadow: inset 0 0 12px rgba(255,255,255,0.1), 0 0 24px rgba(42,157,143,0.5);
}



.frase-impacto {
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0.8rem 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.frase-extra {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1.2rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.boton-centro-llamativo {
  background-color: white;
  color: #000;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 0.75rem;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.tarjeta-inteligente {
  border-radius: 2rem;
  padding: 2rem;
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255,255,255,0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tarjeta-inteligente:hover {
  transform: scale(1.02);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.25);
}

/* Artístico por fase */
.tarjeta-inteligente.antes {
  background: conic-gradient(from 45deg, #0d3b66, #7fb3d5, #0d3b66);
  color: white;
  box-shadow:
    inset 0 0 24px rgba(255,255,255,0.1),
    0 0 32px rgba(13, 59, 102, 0.6),
    0 0 4px rgba(255,255,255,0.1);
}

.tarjeta-inteligente.hoy {
  background: linear-gradient(135deg, #c8d6e5, #dce6f1);
  color: #1e2a38;
  border-left: 6px solid #6487a7;
  box-shadow: 0 0 18px rgba(100, 135, 167, 0.15);
  backdrop-filter: blur(4px);
}

.tarjeta-inteligente.despues {
  background: radial-gradient(circle at bottom left, #1b4332, #2a9d8f, #52b788);
  color: white;
  box-shadow:
    inset 0 0 24px rgba(255,255,255,0.1),
    0 0 32px rgba(42,157,143,0.5),
    0 0 4px rgba(255,255,255,0.2);
}



.frase-impacto {
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0.8rem 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.frase-extra {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1.2rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.boton-centro-llamativo {
  background-color: white;
  color: #000;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 0.75rem;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

/* Botón de Clara como emblema */
.icono-clara-emblema {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  position: absolute;
  top: -20px;
  right: -20px;
  border: 2px solid white;
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
  background-color: #f0f8ff;
  animation: halo 5s infinite ease-in-out;
}

@keyframes halo {
  0%, 100% { box-shadow: 0 0 10px rgba(255,255,255,0.3); }
  50% { box-shadow: 0 0 20px rgba(255,255,255,0.6); }
}



@media screen and (max-width: 600px) {
  .tarjeta-secundaria {
    margin: 1rem auto !important;
    width: 90% !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .contenedor-infiltraciones {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .bloque-infiltracion {
    width: 100%;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .tarjeta-legal {
    font-size: 13px !important;
    padding: 12px !important;
    margin: 10px auto !important;
    max-width: 95% !important;
    line-height: 1.5 !important;
    word-break: break-word !important;
  }

  .tarjeta-legal label {
    flex-direction: column;
    align-items: flex-start;
  }

  .tarjeta-legal input[type="checkbox"] {
    margin-bottom: 10px;
  }
}


/* Ajustes específicos para centrar la tarjeta del historial */
.tarjeta-secundaria {
  margin: 0 auto;
  max-width: 90%;
}

.contenedor-infiltraciones {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.bloque-infiltracion {
  background-color: #1e1e1e;
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.tarjeta-inteligente.neutral {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.tarjeta-inteligente.neutral h3 {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}