@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Playfair+Display:wght@600&display=swap');

:root {
  --morado-principal: #926399;
  --rosa-brillante: #ff4081;
  --rosa-oscuro: #f50057;
  --fondo-claro: #fff;
  --texto-principal: #333;
  --blanco: #fff;
  --fondo-degradado-claro: linear-gradient(145deg, #fce4ec, #f3e5f5);
  --fondo-seccion-claro: linear-gradient(to bottom right, #ffffff, #fdf1fa, #f1e4f9);
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--fondo-degradado-claro);
  color: var(--texto-principal);
  line-height: 1.7;
  font-size: 16px;
  letter-spacing: 0.2px;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

header {
  background-color: var(--morado-principal);
  color: var(--blanco);
  padding: 2rem 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}

@keyframes zoomBrillo {
  0%, 100% {
    transform: scale(1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4), 0 0 10px var(--rosa-brillante), 0 0 20px var(--rosa-brillante);
  }
  50% {
    transform: scale(1.05);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 15px var(--rosa-brillante), 0 0 30px var(--rosa-brillante);
  }
}

h1, h2 {
  font-family: 'Playfair Display', serif;
  text-align: center;
  margin: 2.5rem auto 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 12px var(--rosa-brillante), 0 0 25px var(--rosa-brillante);
  transition: all 0.3s ease;
  max-width: 900px;
  font-weight: 700;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--rosa-brillante);
  animation: zoomBrillo 3s ease-in-out infinite;
}

h1 {
  font-size: 3rem;
  color: var(--blanco);
}

h2 {
  font-size: 2.2rem;
  color: var(--morado-principal);
}

.hamburguesa {
  position: fixed;
  top: 20px;
  left: 2px;
  font-size: 1rem;
  background: var(--morado-principal);
  border: none;
  color: var(--blanco);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  z-index: 1100;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  font-weight: 600;
}

.hamburguesa:hover {
  background: var(--rosa-brillante);
}

nav {
  position: fixed;
  top: 0;
  left: -220px;
  width: 200px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  transition: left 0.3s ease;
  z-index: 1050;
}

nav.mostrar {
  left: 0;
}

nav a {
  background: var(--rosa-brillante);
  color: var(--blanco);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  font-size: 1rem;
}

nav a:hover {
  transform: scale(1.05);
  background: var(--rosa-oscuro);
}

.seccion {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background: var(--fondo-seccion-claro);
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0,0,0,0.05);
}

.bloque {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideIn 1s ease forwards;
}

.bloque:nth-child(1) { animation-delay: 0.3s; }
.bloque:nth-child(2) { animation-delay: 0.6s; }
.bloque:nth-child(3) { animation-delay: 0.9s; }
.bloque:nth-child(4) { animation-delay: 1.2s; }

.bloque:nth-child(even) {
  flex-direction: row-reverse;
}

@keyframes flotarYrotar {
  0% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(2deg) translateY(-3px); }
  50% { transform: rotate(0deg) translateY(0); }
  75% { transform: rotate(-2deg) translateY(-3px); }
  100% { transform: rotate(0deg) translateY(0); }
}

.bloque img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
  animation: flotarYrotar 4s ease-in-out infinite;
}

.bloque img:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 0 6px var(--rosa-brillante));
}

.bloque img:active {
  box-shadow: 0 0 20px var(--rosa-brillante), 0 0 40px var(--morado-principal), 0 0 60px white;
  transform: scale(0.97) rotate(-1deg);
}

.texto {
  flex: 1;
  text-align: justify;
  font-size: 1.05rem;
  color: #444;
  min-width: 280px;
  font-family: 'Poppins', sans-serif;
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.bloque {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.bloque.visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeSlideIn 1s ease forwards;
}

.decorativas {
  position: fixed;
  top: 10px;
  left: 100px;
  display: flex;
  gap: 12px;
  z-index: 1100;
  align-items: center;
}

.circulo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  border: 2px solid var(--morado-principal);
}

.circulo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.titulo-inmujer {
  color: var(--blanco);
  font-weight: bold;
  font-size: 1.3rem;
  animation: brilloInmujer 2.5s infinite ease-in-out;
  transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
  cursor: pointer;
}

.titulo-inmujer:hover {
  color: var(--rosa-brillante);
  transform: scale(1.1);
  text-shadow: 0 0 12px var(--rosa-brillante), 0 0 24px var(--rosa-oscuro), 0 0 36px #fff;
}

@keyframes brilloInmujer {
  0%, 100% {
    text-shadow: 0 0 4px var(--rosa-brillante), 0 0 8px var(--rosa-oscuro);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 14px var(--rosa-brillante), 0 0 28px var(--rosa-oscuro), 0 0 32px white;
  }
}
/* Modo oscuro para tarjetas con fondo degradado */
body.active .tarjeta {
  background: transparent; /* transparente para dejar ver ::before */
  border: 3px solid transparent;
  color: #eee;
  box-shadow:
    0 8px 20px rgba(118, 39, 223, 0.6);
  transition: box-shadow 0.4s ease, color 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Fondo degradado difuso detrás con ::before */
body.active .tarjeta::before {
  content: "";
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  background: linear-gradient(145deg,
    #5d2a6c 20%,
    #bf408d 50%,
    #3a1d5c 80%);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.85;
  filter: blur(10px);
  transition: opacity 0.4s ease, filter 0.4s ease;
}

/* Hover modo oscuro */
body.active .tarjeta:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow:
    0 12px 25px rgba(118, 39, 223, 0.8),
    0 0 15px #ff80df,
    0 0 25px #ff80df;
}

body.active .tarjeta:hover::before {
  opacity: 1;
  filter: blur(12px);
}

/* Títulos h3 en modo oscuro */
body.active .tarjeta h3 {
  color: #f0d9ff;
  text-shadow:
    0 0 4px #bf408d;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

body.active .tarjeta:hover h3 {
  transform: scale(1.1);
  text-shadow:
    0 0 8px #ff80df,
    0 0 14px #ff80df,
    0 0 20px #ff80df;
}

/* Línea decorativa debajo de h3 */
body.active .tarjeta h3::after {
  background-color: #ff80df;
}

/* Párrafo texto */
body.active .tarjeta p {
  color: #ddd;
  transition: color 0.3s ease;
}
/* Tarjetas */
.tarjetas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: auto;
}

.tarjeta {
  background: var(--fondo-claro);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  padding: 1.5rem;
  width: 240px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  border: 3px solid transparent;
  background-clip: padding-box;
  z-index: 1;
}

.tarjeta::before {
  content: "";
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  background: linear-gradient(45deg, 
    var(--morado-principal) 20%, 
    var(--rosa-brillante) 50%, 
    var(--fondo-claro) 80%);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.75;
  filter: blur(6px);
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.tarjeta:hover::before {
  opacity: 1;
  filter: blur(8px);
}

.tarjeta:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow:
    0 12px 25px rgba(0,0,0,0.3),
    0 0 15px var(--rosa-brillante),
    0 0 25px var(--rosa-brillante);
}

.tarjeta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--morado-principal);
  margin-bottom: 0.8rem;
  position: relative;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  text-shadow: 0 0 1px var(--morado-principal);
}

.tarjeta h3::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background-color: var(--rosa-brillante);
  border-radius: 2px;
}

.tarjeta:hover h3 {
  transform: scale(1.1);
  text-shadow:
    0 0 4px var(--rosa-brillante),
    0 0 10px var(--rosa-brillante),
    0 0 15px var(--rosa-brillante);
}

.tarjeta p {
  font-size: 0.95rem;
  color: #333;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(20,20,20,0.7);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(6px);
}

.modal-content {
  background: linear-gradient(145deg,#898ac4,#b13bff,#a2aadb,#926399);
  padding: 2rem;
  border-radius: 20px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  position: relative;
  animation: fadeModal 0.4s ease;
  text-align: center;
}

.modal-content h2 {
  color: #6617ee;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.modal-content p {
  color: rgb(23,22,22);
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: linear-gradient(45deg, var(--morado-principal), var(--rosa-brillante));
  color: var(--blanco);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.1);
}

@keyframes fadeModal {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Carrusel de frases */
.carrusel {
  width: 100%;
  max-width: 600px;
  height: 150px;
  margin: 40px auto;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  background: var(--fondo-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--morado-principal);
  box-sizing: border-box;
}

.carrusel-frase {
  opacity: 0;
  position: absolute;
  transition: opacity 1s ease-in-out;
  max-width: 90%;
}

.carrusel-frase.activa {
  opacity: 1;
  position: relative;
}

/* Responsive */
@media (max-width: 600px) {
  .tarjetas {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 1rem;
  }

  .tarjeta {
    width: 90%;
    padding: 1rem;
    max-width: 320px;
  }

  .carrusel {
    max-width: 90%;
    height: 130px;
    font-size: 1rem;
  }
}
