/* =========================================================
   MOUA CREATIVE STUDIO — Estilos globales
   Colores base pedidos: amarillo #fef6b9 · rosado #c9184e
   ========================================================= */
:root {
  --yellow: #fef6b9;
  --pink: #c9184e;
  --pink-dark: #a8123f;
  --pink-soft: #fbc3d4;
  --pink-mid: #f99ebc;
  --cream: #fdf5ec;
  --ink: #2a1a20;
  --white: #ffffff;
  --radius: 28px;
  --shadow: 0 14px 34px rgba(201, 24, 78, .18);
  --font-title: "Baloo 2", "Fredoka", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-hand: "Gochi Hand", "Caveat", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--font-title); color: var(--pink); line-height: 1.05; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); letter-spacing: -1px; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.5rem; }
.hand { font-family: var(--font-hand); color: var(--pink); }
.lead { font-size: 1.1rem; max-width: 560px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--pink); color: var(--yellow);
  font-family: var(--font-body); font-weight: 700; font-size: 1.05rem;
  padding: 16px 34px; border-radius: 999px; border: 2px solid var(--pink);
  cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: var(--pink-dark); border-color: var(--pink-dark); }
.btn.alt { background: var(--yellow); color: var(--pink); border-color: var(--yellow); }
.btn.alt:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--pink); }
.btn.ghost:hover { background: var(--pink); color: var(--yellow); }
.btn.small { padding: 10px 22px; font-size: .95rem; }
.arrow { width: 22px; height: 22px; flex: none; }

/* ---------- Header ---------- */
.site-header {
    position: static;
    top: 0;
    z-index: 50;
    background: var(--yellow);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.logo { display: flex; flex-direction: column; line-height: .9; color: var(--pink); }
.logo img {
    width: 250px;
    height: auto;
    max-width: 100%;
    display: block;
}
.logo b {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -2px;
}

.logo small {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: .5rem;
    letter-spacing: 1px;
    margin-top: 2px;
}
.logo small { font-family: var(--font-title); font-weight: 700; font-size: .78rem; letter-spacing: 1px; margin-top: 2px; }
.nav-links { display: flex; gap: 34px; font-weight: 600; }
.nav-links a { padding: 6px 2px; border-bottom: 3px solid transparent; transition: border-color .2s, color .2s; }
.nav-links a:hover, .nav-links a.active { border-color: var(--pink); color: var(--pink-dark); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 28px; height: 3px; background: var(--pink); margin: 6px 0; border-radius: 3px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { background: var(--yellow); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; min-height: 620px; padding: 30px 0 60px; }
.hero h1 span { display: block; }
.hero h1 .sub { font-size: .52em; font-weight: 600; margin-top: 8px; }
.hero p.lead { margin: 22px 0 28px; }
.hero-chips { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; font-size: .95rem; }
.avatars { display: flex; }
.avatars i { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--yellow); background: var(--pink-mid); margin-left: -10px; }
.avatars i:first-child { margin-left: 0; }
.avatars i:nth-child(2) { background: var(--pink); }
.avatars i:nth-child(3) { background: #7d0f33; }
.hero-art { position: relative; height: 540px; }
.blob { position: absolute; background: var(--pink-mid); border-radius: 58% 42% 55% 45% / 50% 60% 40% 50%; }
.hero-art .blob { width: 78%; height: 78%; left: -8%; bottom: 0; }
.hero-art .media { position: absolute; inset: 0 -6% 0 14%; border-radius: 0; }
.tag-hand { position: absolute; right: 2%; top: 4%; transform: rotate(-12deg); font-size: 1.9rem; text-align: center; line-height: 1; z-index: 3; }
.squiggle { position: absolute; width: 70px; right: 6%; bottom: 22%; z-index: 3; }

/* ---------- Slot de imagen (reemplazable) ---------- */
.media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--pink-soft), var(--pink-soft) 14px, #fdd3e0 14px, #fdd3e0 28px);
  min-height: 200px; display: flex; align-items: center; justify-content: center;
}
.media::after {
  content: "📷 " attr(data-ph); position: absolute; padding: 10px 16px; text-align: center;
  font-size: .82rem; font-weight: 700; color: var(--pink-dark); background: rgba(255,255,255,.85);
  border-radius: 14px; max-width: 86%;
}
.video-media::after {
    display: none;
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.media.ratio-sq { aspect-ratio: 1 / 1; }
.media.ratio-4-5 { aspect-ratio: 4 / 5; }
.media.ratio-16-10 { aspect-ratio: 16 / 10; }

/* ---------- Secciones ---------- */
section { padding: 80px 0; position: relative; }
.section-head { margin-bottom: 44px; }
.pill {
  display: inline-block; font-family: var(--font-hand); font-size: 1.5rem; color: var(--pink);
  border: 2px solid var(--pink); border-radius: 999px; padding: 4px 26px; transform: rotate(-3deg); margin-bottom: 16px;
}
.pill.light { background: var(--yellow); border-color: var(--yellow); }

/* Servicios (franja rosada) */
.services-band { padding: 40px 0; }
.services-card { background: var(--pink-soft); border-radius: var(--radius); padding: 40px 30px 34px; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.service { text-align: center; padding: 10px 24px; border-left: 1.5px solid rgba(201,24,78,.35); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.service:first-child { border-left: 0; }
.service .icon { width: 150px; height: 110px; }
.service h3 { font-size: 1.5rem; }
.service p { font-size: 1rem; max-width: 250px; }
.circle-arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--pink); color: var(--pink);
  display: grid; place-items: center; transition: .2s; margin-top: auto;
}
.circle-arrow:hover { background: var(--pink); color: var(--yellow); transform: scale(1.08); }

/* Sobre Moua (franja magenta) */
.about-band { background: var(--pink); color: var(--yellow); overflow: hidden; }
.about-band h2, .about-band h3 { color: var(--yellow); }
.about-grid { display: grid; grid-template-columns: .9fr 1.2fr .9fr; gap: 40px; align-items: center; }
.about-photo { position: relative; }
.about-photo .blob { background: var(--yellow); inset: -20px; width: auto; height: auto; }
.about-photo .media { position: relative; border-radius: 50% 50% 40% 40% / 40% 40% 30% 30%; aspect-ratio: 4/5; }
.about-band p { margin: 18px 0 26px; max-width: 520px; }
.polaroids { position: relative; height: 430px; }
.polaroids .media { position: absolute; width: 58%; background-color: #fff; border: 8px solid #fff; border-radius: 4px; box-shadow: 0 10px 24px rgba(0,0,0,.25); aspect-ratio: 4/3; min-height: 0; }
.polaroids .media:nth-child(1) { top: 0; left: 0; transform: rotate(-4deg); }
.polaroids .media:nth-child(2) { bottom: 0; left: 8%; transform: rotate(3deg); }
.polaroids .media:nth-child(3) { top: 22%; right: 0; transform: rotate(4deg); aspect-ratio: 3/4; width: 48%; }
.polaroids .hand-note { position: absolute; top: -20px; right: 0; font-family: var(--font-hand); font-size: 1.5rem; color: var(--yellow); transform: rotate(-8deg); line-height: 1.1; }

/* Portafolio */
.portfolio-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.project-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.project-card { display: flex; flex-direction: column; gap: 6px; }
.project-card .media { aspect-ratio: 4 / 5; min-height: 0; transition: transform .25s; }
.project-card:hover .media { transform: translateY(-6px) rotate(-1deg); }
.project-card h4 { font-family: var(--font-body); font-weight: 800; color: var(--ink); font-size: 1.05rem; text-transform: uppercase; margin-top: 8px; }
.project-card span.cat { font-size: .95rem; }

/* Clientes */
.clients-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.client { background: #fff8f1; border-radius: 28px; min-height: 100px; display: grid; place-items: center; font-family: var(--font-title); font-weight: 800; font-size: 1.5rem; color: var(--ink); letter-spacing: 1px; padding: 18px; text-align: center; }
.split { display: grid; grid-template-columns: .9fr 1.2fr; gap: 50px; align-items: center; }

/* CTA contacto */
.cta-grid { display: grid; grid-template-columns: 1.1fr auto 1fr; gap: 40px; align-items: center; }
.cta-grid .divider { width: 2px; height: 180px; background: var(--pink); }
.contact-list { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.contact-list a { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; }
.contact-list svg { width: 34px; height: 34px; color: var(--pink); flex: none; }
.cards-art { position: relative; height: 260px; }
.cards-art .blob { inset: -10% -20% -10% 10%; width: auto; height: auto; }
.biz { position: absolute; background: var(--yellow); border-radius: 10px; width: 270px; height: 150px; display: grid; place-items: center; box-shadow: 0 14px 24px rgba(0,0,0,.18); font-family: var(--font-title); font-weight: 800; color: var(--pink); font-size: 3rem; letter-spacing: -2px; }
.biz:nth-child(2) { top: 30px; left: 30px; transform: rotate(-14deg); }
.biz:nth-child(3) { top: 100px; left: 130px; transform: rotate(-14deg); }

/* ---------- Páginas interiores ---------- */
.page-hero { background: var(--yellow); padding: 70px 0 90px; overflow: hidden; position: relative; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .blob { right: -80px; top: -60px; width: 340px; height: 300px; opacity: .8; }
.crumbs { font-size: .95rem; margin-bottom: 18px; }
.crumbs a { text-decoration: underline; color: var(--pink); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.value h3 { margin-bottom: 10px; }
.value .num { font-family: var(--font-hand); font-size: 2.4rem; color: var(--pink-mid); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--pink-soft); border-radius: var(--radius); padding: 26px; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--font-title); font-size: 2.6rem; font-weight: 800; color: var(--pink); display: block; }
.check-list li { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-start; }
.check-list li::before { content: "✦"; color: var(--pink); font-size: 1.2rem; line-height: 1.4; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery .media { aspect-ratio: 4/3; min-height: 0; }
.gallery .media.wide { grid-column: span 2; aspect-ratio: 16/9; }
.gallery .media.tall { aspect-ratio: 3/4; }
.meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: var(--pink); color: var(--yellow); padding: 28px; border-radius: var(--radius); margin-top: 40px; }
.meta b { display: block; font-family: var(--font-title); font-size: 1.1rem; }
.replace-note { background: #fff; border: 2px dashed var(--pink); border-radius: 20px; padding: 20px 24px; margin: 30px 0; font-size: .95rem; }
.replace-note code { background: var(--yellow); padding: 2px 8px; border-radius: 8px; color: var(--pink-dark); font-weight: 700; }
.pager { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 50px; }
.band-pink { background: var(--pink); color: var(--yellow); text-align: center; }
.band-pink h2 { color: var(--yellow); margin-bottom: 20px; }

/* Formulario */
form.contact-form { display: grid; gap: 16px; background: #fff; padding: 34px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form label { font-weight: 700; font-size: .95rem; color: var(--pink-dark); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 14px 18px; border-radius: 18px; border: 2px solid var(--pink-soft);
  font-family: var(--font-body); font-size: 1rem; background: var(--cream); margin-top: 6px;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--pink); }
.form-note { font-size: .88rem; opacity: .75; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 140px; background: var(--pink); color: var(--yellow); border-top-left-radius: 90px 60px; padding: 48px 0 56px; }
.site-footer::before { content: ""; position: absolute; left: 0; top: -60px; width: 28%; height: 70px; background: var(--pink-mid); border-top-right-radius: 120px 60px; z-index: 0; }
.site-footer::after { content: ""; position: absolute; right: 0; top: -90px; width: 28%; height: 100px; background: var(--pink-mid); border-top-left-radius: 160px 90px; z-index: 0; }
.footer-grid { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.site-footer .logo { color: #fff; }
.site-footer .logo img {
    width: 160px;
    height: auto;
    max-width: 100%;
    display: block;
}
.foot-sep { width: 2px; height: 58px; background: var(--yellow); opacity: .8; }
.foot-links { display: flex; gap: 28px; font-weight: 700; flex-wrap: wrap; }
.foot-links a:hover { text-decoration: underline; }
.socials { display: flex; gap: 22px; }
.socials svg { width: 32px; height: 32px; fill: var(--yellow); transition: transform .2s; }
.socials a:hover svg { transform: translateY(-3px) scale(1.1); }
.copy { font-size: .95rem; }
.foot-blob { position: absolute; right: 0; bottom: 0; width: 220px; height: 120px; background: var(--yellow); border-top-left-radius: 220px 120px; opacity: .9; }

/* ---------- Chatbot ---------- */
.chat-panel {
  position: fixed; right: 22px; bottom: 22px; width: 370px; max-width: calc(100vw - 30px); height: 540px; max-height: calc(100vh - 110px);
  background: #fff; border-radius: 28px; box-shadow: 0 24px 60px rgba(42,26,32,.35); display: none; flex-direction: column; overflow: hidden; z-index: 100;
  border: 3px solid var(--pink);
}
.chat-panel.open { display: flex; animation: pop .25s ease; }
@keyframes pop { from { transform: translateY(20px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.chat-head { background: var(--pink); color: var(--yellow); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; }
.chat-head b { font-family: var(--font-title); font-size: 1.3rem; display: block; line-height: 1; }
.chat-head small { opacity: .85; }
.chat-close { background: none; border: 0; color: var(--yellow); font-size: 1.8rem; cursor: pointer; line-height: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--cream); }
.msg { max-width: 85%; padding: 11px 16px; border-radius: 20px; font-size: .95rem; line-height: 1.45; animation: pop .2s ease; }
.msg.bot { background: #fff; border: 1.5px solid var(--pink-soft); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.user { background: var(--pink); color: var(--yellow); border-bottom-right-radius: 6px; align-self: flex-end; }
.msg a { color: var(--pink); font-weight: 700; text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; background: var(--cream); }
.chips button { background: var(--yellow); border: 2px solid var(--pink); color: var(--pink); font-weight: 700; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-family: var(--font-body); font-size: .85rem; }
.chips button:hover { background: var(--pink); color: var(--yellow); }
.chat-form { display: flex; gap: 8px; padding: 12px; background: #fff; border-top: 2px solid var(--pink-soft); }
.chat-form input { flex: 1; border: 2px solid var(--pink-soft); border-radius: 999px; padding: 11px 18px; font-family: var(--font-body); font-size: .95rem; }
.chat-form input:focus { outline: none; border-color: var(--pink); }
.chat-form button { background: var(--pink); color: var(--yellow); border: 0; border-radius: 50%; width: 46px; height: 46px; cursor: pointer; font-size: 1.1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; background: var(--yellow); flex-direction: column; gap: 0; padding: 10px 6% 24px; display: none; box-shadow: 0 16px 24px rgba(0,0,0,.1); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid rgba(201,24,78,.2); }
  .nav .btn.small { display: none; }
  .hero-grid, .about-grid, .portfolio-layout, .split, .cta-grid, .two-col { grid-template-columns: 1fr; }
  .hero-art { height: 420px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .service:nth-child(3) { border-left: 0; }
  .project-row { grid-template-columns: repeat(2, 1fr); }
  .value-grid, .steps, .gallery { grid-template-columns: 1fr 1fr; }
  .meta { grid-template-columns: 1fr 1fr; }
  .cta-grid .divider { display: none; }
  .foot-sep { display: none; }
  .footer-grid { flex-direction: column; text-align: center; }
  .polaroids { height: 380px; }
}
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .services-grid, .value-grid, .steps, .gallery, .clients-grid, .meta { grid-template-columns: 1fr; }
  .service { border-left: 0; border-top: 1.5px solid rgba(201,24,78,.35); padding-top: 24px; }
  .service:first-child { border-top: 0; }
  .gallery .media.wide { grid-column: auto; }
  .logo b { font-size: 2.4rem; }
}
