/* =====================================================================
   Mer Crochet · Sistema de marca
   Paleta cálida · Light · Minimalista · Bordes finos y redondeados
   ===================================================================== */

:root {
  /* Paleta */
  --rosa:        #bb6670;
  --rosa-oscuro: #a4555f;
  --rosa-claro:  #d98f97;
  --rosa-suave:  #f3dadd;
  --carbon:      #2c2f31;
  --carbon-soft: #565b5e;
  --crema:       #eedcc8;
  --crema-tueste:#e3c9ad;
  --hueso:       #fbf7f1;
  --blanco:      #ffffff;

  /* Tipografía */
  --font-titulo: 'Dancing Script', cursive;
  --font-cuerpo: 'Poppins', system-ui, sans-serif;

  /* Forma / espacio */
  --radio:    16px;
  --radio-sm: 10px;
  --radio-pill: 999px;
  --borde: 1px solid rgba(44, 47, 49, 0.10);
  --sombra: 0 6px 24px rgba(44, 47, 49, 0.08);
  --sombra-hover: 0 12px 34px rgba(187, 102, 112, 0.18);
  --maxw: 1180px;
  --gap: 24px;
  --transicion: 0.28s cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset suave ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-cuerpo);
  color: var(--carbon);
  background: var(--hueso);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Tipografía ---------- */
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.15; font-weight: 600; }
.cursiva {
  font-family: var(--font-titulo);
  font-weight: 700;
  color: var(--rosa);
  line-height: 1;
}
.seccion-titulo {
  font-family: var(--font-titulo);
  font-weight: 700;
  color: var(--rosa);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  text-align: center;
  margin-bottom: .1em;
}
.seccion-sub {
  text-align: center;
  color: var(--carbon-soft);
  max-width: 560px;
  margin: 0 auto 2.6rem;
  font-size: .98rem;
}

/* ---------- Layout ---------- */
.contenedor { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.seccion { padding: clamp(56px, 9vw, 96px) 0; }
.seccion--crema { background: var(--crema); }
.seccion--suave { background: linear-gradient(180deg, var(--hueso), var(--rosa-suave) 160%); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--radio-pill);
  font-weight: 500; font-size: .95rem;
  transition: transform var(--transicion), box-shadow var(--transicion), background var(--transicion);
}
.btn svg { width: 18px; height: 18px; }
.btn--primario { background: var(--rosa); color: var(--blanco); box-shadow: 0 6px 18px rgba(187,102,112,.28); }
.btn--primario:hover { background: var(--rosa-oscuro); transform: translateY(-2px); box-shadow: var(--sombra-hover); }
.btn--ghost { background: transparent; color: var(--carbon); border: 1.5px solid rgba(44,47,49,.18); }
.btn--ghost:hover { border-color: var(--rosa); color: var(--rosa); transform: translateY(-2px); }
.btn--wa { background: var(--rosa); color: #fff; box-shadow: 0 6px 18px rgba(187,102,112,.28); }
.btn--wa:hover { background: var(--rosa-oscuro); transform: translateY(-2px); box-shadow: var(--sombra-hover); }

/* =====================================================================
   Splash / animación de carga
   ===================================================================== */
#splash {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--crema);
  transition: opacity .6s ease, visibility .6s ease;
}
#splash.oculto { opacity: 0; visibility: hidden; }
#splash img {
  width: clamp(140px, 34vw, 200px);
  border-radius: 28px;
  box-shadow: var(--sombra);
  animation: splashIn 1.1s cubic-bezier(.2,.7,.2,1) both, splashPulse 1.6s ease-in-out .8s infinite;
}
@keyframes splashIn {
  0%   { opacity: 0; transform: scale(.82); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes splashPulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.04); }
}

/* =====================================================================
   Header
   ===================================================================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,247,241,.86);
  backdrop-filter: blur(10px);
  border-bottom: var(--borde);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.header__logo img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: .95rem; font-weight: 500; color: var(--carbon); position: relative; transition: color var(--transicion); }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--rosa); border-radius: 2px; transition: width var(--transicion);
}
.nav a:hover { color: var(--rosa); }
.nav a:hover::after { width: 100%; }
.header__cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: var(--borde); align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; color: var(--carbon); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero { position: relative; overflow: hidden; padding: clamp(60px, 10vw, 110px) 0; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rosa-suave); color: var(--rosa-oscuro);
  padding: 7px 16px; border-radius: var(--radio-pill);
  font-size: .8rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; }
.hero h1 .cursiva { display: block; font-size: clamp(3.4rem, 8vw, 5.4rem); margin-top: -.05em; }
.hero p { color: var(--carbon-soft); font-size: 1.05rem; max-width: 460px; margin: 18px 0 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { position: relative; }
.hero__media img {
  border-radius: var(--radio); box-shadow: var(--sombra);
  aspect-ratio: 4/5; object-fit: cover; width: 100%;
}
.hero__media::before {
  content: ''; position: absolute; inset: -18px -18px auto auto; width: 60%; height: 60%;
  background: var(--crema); border-radius: var(--radio); z-index: -1;
}

/* =====================================================================
   Categorías (chips por tonalidad)
   ===================================================================== */
.cats { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: var(--radio-pill);
  font-weight: 500; font-size: .92rem; border: 1.5px solid transparent;
  transition: transform var(--transicion), box-shadow var(--transicion);
}
.cat-chip:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.cat-chip .punto { width: 11px; height: 11px; border-radius: 50%; }

/* =====================================================================
   Galería (grid de tarjetas)
   ===================================================================== */
.filtros { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.filtro {
  padding: 9px 18px; border-radius: var(--radio-pill);
  font-size: .9rem; font-weight: 500; color: var(--carbon-soft);
  border: 1.5px solid rgba(44,47,49,.14); transition: all var(--transicion);
}
.filtro:hover { border-color: var(--rosa); color: var(--rosa); }
.filtro.activo { background: var(--rosa); color: #fff; border-color: var(--rosa); }

.grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
  background: var(--blanco); border-radius: var(--radio); overflow: hidden;
  border: var(--borde); box-shadow: var(--sombra); cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform var(--transicion), box-shadow var(--transicion);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sombra-hover); }
.card__media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--crema); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__tag {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 13px; border-radius: var(--radio-pill);
  font-size: .74rem; font-weight: 600; backdrop-filter: blur(4px);
}
.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-size: 1.08rem; font-weight: 600; }
.card__mat { font-size: .84rem; color: var(--carbon-soft); flex: 1; }
.card__mat span { color: var(--rosa-oscuro); font-weight: 500; }
.card__wa {
  margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; border-radius: var(--radio-sm);
  background: var(--rosa-suave); color: var(--rosa-oscuro);
  font-weight: 600; font-size: .88rem; transition: all var(--transicion);
}
.card__wa svg { width: 16px; height: 16px; }
.card__wa:hover { background: var(--rosa); color: #fff; }

/* =====================================================================
   Sobre mí / Cursos (teasers)
   ===================================================================== */
.media-bloque { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.media-bloque img { border-radius: var(--radio); box-shadow: var(--sombra); aspect-ratio: 1/1; object-fit: cover; }
.media-bloque p { color: var(--carbon-soft); }
.firma { font-family: var(--font-titulo); font-size: 1.8rem; color: var(--rosa); }

/* =====================================================================
   Footer
   ===================================================================== */
.footer { background: var(--carbon); color: rgba(255,255,255,.82); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer__logo img { height: 56px; margin-bottom: 14px; }
.footer h4 { color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: 16px; letter-spacing: .02em; }
.footer a { color: rgba(255,255,255,.72); font-size: .92rem; transition: color var(--transicion); }
.footer a:hover { color: var(--rosa-claro); }
.footer__links li { margin-bottom: 10px; }
.redes { display: flex; gap: 12px; margin-top: 6px; }
.redes a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); transition: all var(--transicion);
}
.redes a:hover { background: var(--rosa); transform: translateY(-3px); }
.redes svg { width: 20px; height: 20px; color: #fff; }
.footer__wa { margin-top: 18px; }
.footer__bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .82rem; color: rgba(255,255,255,.55);
}
.footer__bottom span { display: inline-flex; align-items: center; gap: 6px; }
.ico-inline { display: inline-flex; width: 15px; height: 15px; color: var(--rosa-claro); }
.ico-inline svg { width: 100%; height: 100%; }

/* WhatsApp flotante */
.wa-flotante {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--rosa);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(187,102,112,.42);
  transition: transform var(--transicion), background var(--transicion);
}
.wa-flotante:hover { background: var(--rosa-oscuro); }
.wa-flotante:hover { transform: scale(1.08); }
.wa-flotante svg { width: 30px; height: 30px; color: #fff; }

/* =====================================================================
   Modal / ficha de producto
   ===================================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(44,47,49,.62); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.modal-overlay.abierto { opacity: 1; visibility: visible; }
.modal {
  position: relative; background: var(--hueso);
  border-radius: var(--radio); width: 100%; max-width: 900px; max-height: 90vh;
  overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr;
  box-shadow: 0 30px 80px rgba(44,47,49,.35);
  transform: translateY(14px) scale(.98); transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.modal-overlay.abierto .modal { transform: none; }
.modal__media { background: var(--crema); min-height: 280px; }
.modal__media img { width: 100%; height: 100%; max-height: 90vh; object-fit: cover; }
.modal__body { padding: 38px 34px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.modal__tag { align-self: flex-start; padding: 6px 15px; border-radius: var(--radio-pill); font-size: .76rem; font-weight: 600; }
.modal__title { font-family: var(--font-titulo); color: var(--rosa); font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1; margin: 0; }
.modal__desc { color: var(--carbon-soft); font-size: .95rem; margin: 0; }
.modal__mat { font-size: .92rem; margin: 0; }
.modal__mat strong { color: var(--rosa-oscuro); }
.modal__wa { margin-top: auto; align-self: flex-start; }
.modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(251,247,241,.92); display: grid; place-items: center;
  box-shadow: var(--sombra); transition: background var(--transicion);
}
.modal__close:hover { background: #fff; }
.modal__close svg { width: 20px; height: 20px; color: var(--carbon); }
@media (max-width: 720px) {
  .modal { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .modal__media img { max-height: 44vh; }
  .modal__body { padding: 26px 22px; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 880px) {
  .hero__grid, .media-bloque { grid-template-columns: 1fr; gap: 36px; }
  .hero__media { order: -1; max-width: 380px; margin: 0 auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav, .header__cta .btn { display: none; }
  .menu-toggle { display: flex; }
  .nav.abierto {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--hueso);
    border-bottom: var(--borde); padding: 8px 22px 16px;
  }
  .nav.abierto a { padding: 12px 0; border-bottom: var(--borde); }
  .nav.abierto a::after { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
}
