
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --turquesa: #5ecfcf;
    --rosa: #f07baa;
    --crema: #fff9f5;
    --texto: #3a3a3a;
    --gris: #888;
  }
  html { scroll-behavior: smooth; }
  body { font-family: 'Nunito', sans-serif; background: var(--crema); color: var(--texto); }

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,249,245,0.95); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid rgba(94,207,207,0.2);
  }
  nav img { height: 54px; }
  nav ul { list-style: none; display: flex; gap: 2rem; }
  nav ul a { text-decoration: none; color: var(--texto); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
  nav ul a:hover { color: var(--turquesa); }

  /* HERO */
  .hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(160deg, #fff9f5 60%, #e8f9f9 100%);
    position: relative; overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(240,123,170,0.1) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(94,207,207,0.12) 0%, transparent 60%);
    pointer-events: none;
  }
  .hero img.logo-hero { width: 224px; margin-bottom: 1.5rem; position: relative; }
  .hero h1 {
    font-family: 'Pacifico', cursive;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    color: var(--turquesa);
    line-height: 1.15;
    margin-bottom: 0.75rem;
    position: relative;
    max-width: 900px;
    text-wrap: balance;
  }
  .hero h1 span { color: var(--rosa); }
  .hero p.tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gris);
    max-width: 520px;
    margin: 1.5rem auto 2.5rem;
    line-height: 1.6;
    position: relative;
  }
  .hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; position: relative; }
  .btn-primary {
    background: var(--turquesa); color: #fff;
    padding: 0.9rem 2rem; border-radius: 50px;
    text-decoration: none; font-weight: 700; font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(94,207,207,0.35);
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(94,207,207,0.45); }
  .btn-secondary {
    background: transparent; color: var(--rosa);
    padding: 0.9rem 2rem; border-radius: 50px;
    text-decoration: none; font-weight: 700; font-size: 1rem;
    border: 2px solid var(--rosa);
    transition: transform 0.2s, background 0.2s, color 0.2s;
  }
  .btn-secondary:hover { background: var(--rosa); color: #fff; transform: translateY(-2px); }

  /* HERO COLLAGE */
  .hero-collage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 560px;
    margin: 3rem auto 0;
    position: relative;
  }
  .hero-collage img {
    width: 100%; aspect-ratio: 1/1; object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  .hero-collage img:nth-child(2) { border-radius: 50%; }
  .hero-collage img:nth-child(5) { border-radius: 50%; }

  /* SECTION BASE */
  section { padding: 5rem 2rem; }
  .section-title {
    font-family: 'Pacifico', cursive;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--turquesa);
    text-align: center;
    margin-bottom: 0.5rem;
  }
  .section-sub {
    text-align: center; color: var(--gris);
    font-size: 1rem; margin-bottom: 3rem;
  }

  /* COMO FUNCIONA */
  .como { background: #fff; }
  .pasos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem; max-width: 900px; margin: 0 auto;
  }
  .paso {
    text-align: center; padding: 2rem 1.5rem;
    border-radius: 20px; background: var(--crema);
    border: 1px solid rgba(94,207,207,0.2);
  }
  .paso-num {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--turquesa); color: #fff;
    font-family: 'Pacifico', cursive; font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
  }
  .paso h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--texto); }
  .paso p { font-size: 0.9rem; color: var(--gris); line-height: 1.5; }

  /* GALERÍA */
  .galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    max-width: 1100px; margin: 0 auto;
  }
  .galeria-grid img {
    width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover;
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
  }
  .galeria-grid img:hover { transform: scale(1.03); box-shadow: 0 12px 32px rgba(0,0,0,0.15); }

  /* NOSOTROS */
  .nosotros { background: #fff; }
  .nosotros-inner {
    max-width: 700px; margin: 0 auto; text-align: center;
  }
  .nosotros-inner p {
    font-size: 1.1rem; line-height: 1.8; color: var(--texto);
    margin-bottom: 1rem;
  }
  .firma {
    font-family: 'Pacifico', cursive;
    font-size: 1.6rem; color: var(--rosa); margin-top: 1.5rem;
  }

  /* CONTACTO */
  .contacto-cards {
    display: flex; flex-wrap: wrap; gap: 1.5rem;
    justify-content: center; max-width: 1120px; margin: 0 auto;
  }
  .contacto-card {
    flex: 1; min-width: 220px; max-width: 260px;
    background: #fff; border-radius: 20px; padding: 2rem 1.5rem;
    text-align: center; border: 1px solid rgba(94,207,207,0.2);
    text-decoration: none; color: var(--texto);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .contacto-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
  .contacto-icon {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem; font-size: 1.6rem;
  }
  .icon-wa { background: #e8f9f0; }
  .icon-ig { background: #fce8f3; }
  .icon-map { background: #e8f3ff; }
  .icon-mail { background: #fff4e6; }
  .contacto-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
  .contacto-card p { font-size: 0.9rem; color: var(--gris); line-height: 1.4; }

  /* FOOTER */
  footer {
    background: var(--texto); color: rgba(255,255,255,0.7);
    text-align: center; padding: 2rem;
    font-size: 0.9rem;
  }
  footer span { color: var(--rosa); }
  /* Corazon dibujado en SVG en lugar de emoji: el 🩷 es de Unicode 15
     y muchos sistemas aun no tienen glifo, salia un cuadrado vacio. */
  .corazon { fill: var(--rosa); vertical-align: -2px; margin-left: 2px; }

  /* WHATSAPP FLOTANTE */
  .wa-float {
    position: fixed; bottom: 28px; right: 28px; z-index: 999;
    width: 60px; height: 60px; border-radius: 50%;
    background: #25d366;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: pulse 2.5s infinite;
  }
  .wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.6); }
  .wa-float svg { width: 34px; height: 34px; fill: #fff; }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.8); }
  }

  /* LIGHTBOX */
  .lightbox {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.9);
    align-items: center; justify-content: center;
  }
  .lightbox.active { display: flex; }
  .lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 12px; object-fit: contain; }
  .lightbox-close {
    position: absolute; top: 20px; right: 24px;
    color: #fff; font-size: 2.5rem; cursor: pointer; line-height: 1;
    background: none; border: none;
  }

  @media (max-width: 600px) {
    nav ul { display: none; }
    .hero-collage { grid-template-columns: repeat(2, 1fr); }
    .hero-collage img:last-child { display: none; }
  }

  /* ---- GALERIA POR CATEGORIAS: mosaico bento ----
     Los tiles son verticales o cuadrados, nunca apaisados:
     las tartas se fotografian en vertical y un tile ancho las decapita. */
  .cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 165px;
    grid-auto-flow: dense;
    gap: 14px;
    max-width: 1100px; margin: 0 auto;
  }
  .cat-card {
    position: relative; display: block; overflow: hidden;
    border-radius: 22px; text-decoration: none;
    background: var(--cat-color, #f2f2f2);
    grid-row: span 2;
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s;
  }
  /* Cada tile grande adopta la forma de su foto:
     alto  = foto vertical (tarta de varios pisos)
     ancho = foto apaisada */
  .cat-card.bento-alto  { grid-column: span 2; grid-row: span 4; }
  .cat-card.bento-ancho { grid-column: span 2; grid-row: span 2; }
  .cat-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.16); }
  .cat-card img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
    display: block;
    transition: transform 0.55s cubic-bezier(.2,.8,.2,1);
  }
  .cat-card:hover img { transform: scale(1.06); }
  .cat-card .cat-card-body {
    position: absolute; inset: auto 0 0 0;
    padding: 1.6rem 1rem 0.9rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.82));
    color: #fff;
  }
  .cat-card .cat-card-body h3 {
    font-size: 1.05rem; font-weight: 700; color: #fff; margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  }
  .cat-card .cat-card-body p {
    font-size: 0.8rem; color: rgba(255,255,255,0.94); line-height: 1.4;
    margin: 0; opacity: 0; max-height: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: opacity 0.35s, max-height 0.35s, margin 0.35s;
  }
  .cat-card:hover .cat-card-body p { opacity: 1; max-height: 48px; margin-top: 0.2rem; }

  @media (max-width: 900px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; }
  }

  /* Movil: dos columnas iguales, todas verticales, descripcion siempre visible */
  @media (max-width: 700px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 105px; gap: 12px; }
    .cat-card, .cat-card.bento-alto, .cat-card.bento-ancho { grid-column: span 1; grid-row: span 2; }
    .cat-card .cat-card-body { padding: 1.4rem 0.8rem 0.75rem; }
    .cat-card .cat-card-body h3 { font-size: 0.92rem; }
    .cat-card .cat-card-body p { opacity: 1; max-height: 48px; margin-top: 0.2rem; font-size: 0.74rem; }
  }
  @media (prefers-reduced-motion: reduce) {
    .cat-card, .cat-card img, .cat-card .cat-card-body p { transition: none; }
  }

  .migas { max-width: 1100px; margin: 0 auto 1.5rem; font-size: 0.9rem; color: var(--gris); }
  .migas a { color: var(--turquesa); text-decoration: none; font-weight: 600; }
  .migas a:hover { text-decoration: underline; }

  .cat-intro {
    max-width: 700px; margin: 0 auto 2.5rem; text-align: center;
  }
  .cat-intro p { font-size: 1.05rem; line-height: 1.8; color: var(--texto); }
  .cat-aviso {
    max-width: 700px; margin: 2.5rem auto 0;
    background: #fff; border-left: 4px solid var(--rosa); border-radius: 0;
    padding: 1rem 1.25rem; font-size: 0.95rem; color: var(--gris); line-height: 1.6;
  }
  .volver-galeria { text-align: center; margin-top: 3rem; }

  /* Fotos de categoria: bloques sin recortar, altura natural */
  .galeria-bloques {
    columns: 3; column-gap: 18px;
    max-width: 1100px; margin: 0 auto;
  }
  .galeria-bloques img {
    width: 100%; height: auto; display: block;
    margin: 0 0 18px; break-inside: avoid;
    border-radius: 16px; cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .galeria-bloques img:hover { transform: scale(1.02); box-shadow: 0 12px 32px rgba(0,0,0,0.15); }
  @media (max-width: 900px) { .galeria-bloques { columns: 2; } }
  @media (max-width: 560px) { .galeria-bloques { columns: 1; } }

  .hero h1 { color: #2f9494; }
  .hero h1 span { color: #d43d7c; }
