/* COLORES FÁCILES */
:root {
  --lila-claro: #eadcf5;
  --lila: #c7b0e3;
  --morado: #6b4b8a;
  --rosa: #e7b6c8;
  --texto: #333;
}

/* FONDO GENERAL */
body {
  margin: 0;
  min-height: 100vh;
  background-image: url("fondo.jpg"); /* TU IMAGEN DE FONDO */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Quicksand', sans-serif;
}

/* CAJA CENTRAL */
.pagina {
  max-width: 1100px;
  margin: 50px auto;
  background: rgba(239, 228, 248, 0.8);
  border-radius: 40px;
  box-shadow: 0 20px 40px rgba(90, 60, 140, 0.15);
  overflow: hidden;
}

/* HEADER ESTÉTICO */
header {
  background-image: url("fondo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 35px 20px;
  text-align: center;
  color: white;
  position: relative; /* solo agregamos esto */
  padding-top: 110px;
}

.perfil {
  position: absolute;
  left: 40px;
  top: 40px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-image: url("Imágenes/perfil.jpg");
  background-size: cover;
  background-position: center;
  border: 3px solid white;
}

.titulo {
  display: inline-block;
  background: #f8c8dc; /* rosa claro */
  color: #5a4a42;
  padding: 20px 45px;
  border-radius: 45px; /* mientras más alto, más redondeado */
  font-size: 26px;
  letter-spacing: 1px;
  position: absolute;
    top: 50px;   /* sube o baja */
    left: 150px;  /* mueve horizontalmente */
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 34px;
    letter-spacing: 2px;
}

.titulo:hover {
    box-shadow: 0 0 20px rgba(120, 255, 170, 0.4);
    filter: brightness(1.05);
    text-shadow: 0 0 12px rgba(200, 160, 255, 0.6);
}

.busqueda {
    position: absolute;
    top: 10px;      /* mueve arriba/abajo */
    right: 15px;    /* mueve izquierda/derecha */
  padding: 14px 25px;
  width: 220px;
  border-radius: 40px;
  border: none;
  background: #fffdf9;
  color: #5a4a42;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  outline: none;
}

/* MENÚ */
.menu {
  display: flex;
  gap: 10px;
  padding: 15px 30px 20px 30px;
  background: #6e4c93;
}

.menu button {
  flex: 1;
  padding: 14px;
  background: #8d6ab8;
  border: none;
  border-radius: 25px;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.contenido {
  display: grid;
  grid-template-columns: 280px 1fr 280px; /* laterales fijos */
  gap: 20px;
  padding: 25px 30px 35px 30px;
  align-items: start;
}

.col {
  background: var(--lila-claro);
  padding: 20px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.centro {
  background: #f0e4f9;
}

/* TÍTULOS */
h2, h3 {
  background: var(--lila);
  padding: 10px;
  border-radius: 15px;
  text-align: center;
}

/* CAJAS */
.caja {
  background: var(--rosa);
  padding: 16px;
  border-radius: 26px;
}
.caja ul,
.caja ol {
  padding-left: 18px;
  margin: 0;
}

.caja li {
  margin: 6px 0;
  text-align: center;
}


/* POSTS */
.post {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
}
.centro .post + .post {
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 12px;
  padding-top: 18px;
}

.post img {
  width: 170px;
  height: 130px;
  object-fit: cover;
  border-radius: 25px;
  box-shadow:
    0 8px 18px rgba(120, 90, 170, 0.2);
}

.texto {
  background: var(--rosa);
  padding: 20px;
  border-radius: 30px;
}

/* COMENTARIOS */
.comentarios {
  align-self: flex-end;
  background: #b7d3dd;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  margin-top: 6px;
}

/* GALERÍA */
.galeria {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 6px;
}

.galeria img {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #e6d4f5;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contenido {
    grid-template-columns: 1fr;
  }

h2, h3 {
  background: var(--lila);
  padding: 12px;
  border-radius: 25px;
  text-align: center;
  font-weight: normal;
}

/* Ritmo vertical uniforme */
.col > * {
  margin: 0;               /* reset */
}

.col {
  background: #f6ecfb;
  padding: 22px;
  border-radius: 35px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid rgba(130, 100, 170, 0.2);
}

/* Títulos siempre separan secciones */
.col h2,
.col h3 {
  background: #d9c5ef;
  padding: 12px;
  border-radius: 25px;
  text-align: center;
  font-weight: 500;
}

/* Tamaños base de bloques */
.col h2, .col h3 {
  min-height: 42px;          /* títulos uniformes */
  display: flex;
  align-items: center;
  justify-content: center;
}

.caja, .texto {
  min-height: 90px;          /* cajas con cuerpo */
}

.post img {
  min-height: 120px;         /* imágenes con peso visual */
}

/* Tarjetas */
.col,
.caja,
.texto,
.post img,
.titulo {
  box-shadow:
    0 8px 18px rgba(106, 76, 147, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.05);
}
/* Bordes delicados */
.col {
  border: 1px solid rgba(106, 76, 147, 0.18);
}

.caja, .texto {
  border: 1px solid rgba(255, 255, 255, 0.6);
}
/* Separadores invisibles */
.col > * + * {
  position: relative;
}

.col > * + *::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 15%;
  width: 70%;
  height: 1px;
  background: rgba(106, 76, 147, 0.15);
}
.centro {
  box-shadow:
    0 12px 28px rgba(106, 76, 147, 0.18),
    0 4px 10px rgba(0, 0, 0, 0.06);
}
/* Transiciones suaves */
* {
  transition: 
    box-shadow 0.4s ease,
    transform 0.4s ease,
    background-color 0.4s ease;
}

/* Destello mágico */
.col::after,
.caja::after,
.texto::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at top left,
    rgba(255,255,255,0.6),
    transparent 40%
  );
  opacity: 0;
  pointer-events: none;
}

.col:hover::after,
.caja:hover::after,
.texto:hover::after {
  opacity: 0.6;
}
.col, .caja, .texto {
  position: relative;
}
.menu button:hover {
  box-shadow:
    0 0 10px rgba(200,170,255,0.8),
    0 0 20px rgba(180,140,255,0.6);
  transform: translateY(-2px);
}
@keyframes flotacion {
  0% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
  100% { transform: translateY(0); }
}

.col:hover,
.caja:hover {
  animation: flotacion 8.0s ease-in-out infinite;
}
/* ESTRELLAS BLANCO–CREMA INTELIGENTES */
.sparkle {
  position: fixed;
  pointer-events: none;
  font-size: 12px;
  color: #ffffff;
  mix-blend-mode: screen;
  text-shadow:
    0 0 4px rgba(255,255,255,0.9),
    0 0 8px rgba(255,240,200,0.7);
  animation: sparkleFade 0.9s ease-out forwards;
  z-index: 9999;
}

@keyframes sparkleFade {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-15px) scale(0.5);
    opacity: 0;
  }
}