/* =============================================
   CHISPAS DE FELICIDAD — Estilos globales
   ============================================= */

/* --- Tipografías --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Pacifico&display=swap');

/* --- Variables de color --- */
:root {
  --rosa:      #f9c5d0;
  --rosa-osc:  #f0a0b5;
  --turquesa:  #b2e8e2;
  --turq-osc:  #7dd4cc;
  --morado:    #d4b8e8;
  --morado-osc:#b896d4;
  --amarillo:  #fef3b4;
  --amar-osc:  #fce87a;
  --blanco:    #fffdf8;
  --gris-suave:#f0ede8;
  --texto:     #4a3f5c;
  --texto-claro:#7a6f8a;
}

/* --- Reset básico --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--blanco);
  color: var(--texto);
  line-height: 1.6;
  min-height: 100vh;
}

/* --- Barra de navegación --- */
.navbar {
  background: rgba(255, 253, 248, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--rosa);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.7rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  box-shadow: 0 2px 12px rgba(180,150,210,0.10);
}

.navbar-logo {
  font-family: 'Pacifico', cursive;
  font-size: 1.25rem;
  color: var(--morado-osc);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-logo span {
  color: var(--rosa-osc);
}

.navbar-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: nowrap;
  align-items: center;
}

.navbar-links a {
  text-decoration: none;
  color: var(--texto);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.navbar-links a:hover {
  background: var(--morado);
}

.navbar-links a.activo {
  background: var(--morado);
}

/* --- Hamburguesa móvil --- */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--morado-osc);
  border-radius: 3px;
  margin: 5px 0;
  transition: 0.3s;
}

/* --- Titulares globales --- */
h1, h2, h3 {
  line-height: 1.2;
}

.titulo-seccion {
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--morado-osc);
  margin-bottom: 0.4rem;
}

.subtitulo-seccion {
  color: var(--texto-claro);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* --- Tarjetas genéricas --- */
.tarjeta {
  background: var(--blanco);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(180, 150, 210, 0.12);
  border: 2px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.tarjeta:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(180, 150, 210, 0.22);
  border-color: var(--morado);
}

/* --- Botones --- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.btn-rosa    { background: var(--rosa);     color: var(--texto); }
.btn-turq    { background: var(--turquesa); color: var(--texto); }
.btn-morado  { background: var(--morado);   color: var(--texto); }
.btn-amar    { background: var(--amarillo); color: var(--texto); }

/* --- Sección hero genérica --- */
.hero {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
}

/* --- Contenedor central --- */
.contenedor {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.8rem;
  color: var(--texto-claro);
  border-top: 2px solid var(--gris-suave);
  margin-top: 3rem;
}

footer .corazon { color: var(--rosa-osc); }

/* --- Animaciones --- */
@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes aparecer {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.flotar  { animation: flotar 3s ease-in-out infinite; }
.aparecer { animation: aparecer 0.6s ease both; }

/* --- Chips de etiquetas --- */
.chip {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0.2rem;
}

/* --- Responsive --- */
@media (max-width: 760px) {
  .menu-btn { display: block; }

  .navbar-links {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--blanco);
    border-bottom: 2px solid var(--rosa);
    padding: 0.8rem 1.5rem 1.2rem;
    gap: 0.15rem;
  }

  .navbar-links.abierto { display: flex; }

  .navbar-links a {
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
  }
}
