/* =====================
   ESTILOS PRIVACIDAD.HTML - CONTENEDORES ELEGANTES CON BORDE ANIMADO
===================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to bottom right, #0f2027, #203a43, #1E90FF);
  color: #f5f5f5;
  line-height: 1.6;
  padding-top: 100px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: backgroundPulse 15s ease-in-out infinite;
}

/* =====================
   ANIMACIONES DE FONDO
===================== */
@keyframes backgroundPulse {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  background: rgba(135, 206, 235, 0.25);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(50, 205, 50, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.logo {
  background: #ffffff;
  padding: 2px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.logo img {
  height: 70px;
  width: auto;
  filter: drop-shadow(0 0 15px #1E90FF)
          drop-shadow(0 0 30px rgba(30,144,255,0.5));
  transition: transform 0.5s ease, filter 0.5s ease;
  cursor: pointer;
}

.logo img:hover {
  transform: scale(1.2) rotate(-5deg);
  filter: drop-shadow(0 0 25px #FF4C4C)
          drop-shadow(0 0 40px rgba(255,76,76,0.7));
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 35px;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  color: #f5f5f5;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(90deg, #6edf6e, #1E90FF, #FF69B4);
  transition: width 0.3s ease-in-out;
  border-radius: 2px;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  color: #f5f5f5;
}

/* =====================
   CONTENEDORES PRINCIPALES
===================== */
section {
  flex: 1;
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* =====================
   CARD PRIVACY CON BORDE ANIMADO
===================== */
.card-privacy {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 25px;
  padding: 40px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  z-index: 1;
}

/* Borde animado alrededor del contenedor */
.card-privacy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 25px;
  padding: 2px; /* grosor del borde */
  background: linear-gradient(270deg, #1E90FF, #32CD32, #FF4C4C, #1E90FF);
  background-size: 600% 600%;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 2;
  animation: borderGradient 6s linear infinite;
}
.privacy-section {
  display: flex;
  flex-direction: column;
  gap: 40px; /* separación entre los cards */
  max-width: 900px;
  margin: 0 auto;
}

/* Fondo interno inmutable */
.card-privacy::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 23px; /* borde interior */
  background: rgba(255, 255, 255, 0.05); /* fondo fijo */
  z-index: 1;
}

@keyframes borderGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =====================
   TITULOS CON BRILLO
===================== */
section h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 25px;
  text-align: center;
  text-shadow: 
    0 0 5px #1E90FF,
    0 0 10px #1E90FF,
    0 0 15px #32CD32,
    0 0 20px #FF4C4C;
  animation: glow 2s ease-in-out infinite alternate;
}

section h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 0 0 5px #32CD32, 0 0 10px #1E90FF;
  animation: glowSmall 2.5s ease-in-out infinite alternate;
}

/* =====================
   TEXTOS
===================== */
section p, section ul {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #e0e0e0;
  margin-bottom: 15px;
  text-align: left;
}

section ul {
  list-style: disc;
  margin-left: 25px;
}

section a {
  color: #32CD32;
  text-decoration: underline;
  transition: color 0.4s, text-shadow 0.4s;
}

section a:hover {
  color: #1E90FF;
  text-shadow: 0 0 8px #32CD32, 0 0 12px #1E90FF;
}

/* =====================
   ANIMACIONES
===================== */
@keyframes glow {
  0% { text-shadow: 0 0 5px #1E90FF, 0 0 10px #1E90FF, 0 0 15px #32CD32, 0 0 20px #FF4C4C; }
  50% { text-shadow: 0 0 10px #1E90FF, 0 0 20px #1E90FF, 0 0 25px #32CD32, 0 0 30px #FF4C4C; }
  100% { text-shadow: 0 0 5px #1E90FF, 0 0 10px #1E90FF, 0 0 15px #32CD32, 0 0 20px #FF4C4C; }
}

@keyframes glowSmall {
  0% { text-shadow: 0 0 3px #32CD32, 0 0 6px #1E90FF; }
  50% { text-shadow: 0 0 6px #32CD32, 0 0 12px #1E90FF; }
  100% { text-shadow: 0 0 3px #32CD32, 0 0 6px #1E90FF; }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =====================
   FOOTER
===================== */
.footer {
  width: 100%;
  background: linear-gradient(135deg, #0f2027, #203a43, #1E90FF);
  color: #f5f5f5;
  text-align: center;
  padding: 8px 0;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -3px 20px rgba(0, 0, 0, 0.3);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  margin-top: auto;
}

.footer span {
  font-weight: 700;
  background: linear-gradient(90deg, #6edf6e, #1E90FF, #e4514a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s infinite alternate;
}

@keyframes shine {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.5); }
  100% { filter: brightness(1); }
}

/* =====================
   MEDIA QUERIES
===================== */
@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(0, 0, 50, 0.95);
    gap: 20px;
    padding: 20px 0;
    display: none;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  section {
    padding: 30px 20px;
  }

  section h2 {
    font-size: 2rem;
  }

  section h3 {
    font-size: 1.4rem;
  }

  section p, section ul {
    font-size: 1rem;
  }
}
