/* CasaChula — Pastelería artesanal */
:root{
  --beige:#f2ece1;
  --beige-2:#ebe1d2;
  --paper:#fbf9f5;
  --ink:#111111;
  --muted:#6d6b66;
  --blush:#ead4d6;
  --line:rgba(17,17,17,.13);
  --shadow:0 18px 55px rgba(23,20,16,.08);
  --radius:28px;
  --serif:"Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:"Manrope", Arial, sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--beige);color:var(--ink);font-family:var(--sans);line-height:1.65;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit}
.container{width:min(1180px,calc(100% - 44px));margin-inline:auto}
.section{padding:104px 0}
.eyebrow{display:inline-block;margin-bottom:18px;font-size:.78rem;font-weight:500;letter-spacing:.24em;text-transform:uppercase;color:#74726c}
h1,h2,h3{margin:0;color:var(--ink);font-family:var(--serif);font-weight:600;line-height:.98;letter-spacing:-.03em}
h1{font-size:clamp(3.9rem,8.3vw,7.7rem)}
h2{font-size:clamp(3rem,5.6vw,5rem)}
h3{font-size:2.25rem}
p{margin:0}
.lead{font-size:1.12rem;color:var(--muted);max-width:720px}

/* NAV */
.nav{position:fixed;inset:0 0 auto;z-index:50;background:rgba(242,236,225,.91);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}
.nav-inner{min-height:86px;display:flex;align-items:center;justify-content:space-between;gap:26px}
.brand-logo{width:228px;height:auto}
.nav-links{display:flex;gap:30px;align-items:center;font-size:.88rem}
.nav-links a{position:relative}
.nav-links a:after{content:"";position:absolute;left:0;right:100%;bottom:-6px;height:1px;background:#111;transition:right .2s ease}
.nav-links a:hover:after{right:0}
.menu-btn{display:none;border:0;background:none;padding:10px;cursor:pointer;color:#111}
.mobile-menu{display:none;padding:0 22px 18px}
.mobile-menu a{display:block;padding:10px 0;border-top:1px solid var(--line)}

/* BUTTONS */
.btn{min-height:52px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:0 22px;border:1px solid #111;border-radius:8px;font-size:.9rem;font-weight:600;transition:transform .18s ease,background .18s ease,color .18s ease}
.btn:hover{transform:translateY(-2px)}
.btn-dark{background:#111;color:#fff}
.btn-light{background:transparent;color:#111}

/* HERO */
.hero{padding:150px 0 84px;min-height:92vh;display:grid;align-items:center}
.hero-grid{display:grid;grid-template-columns:1.04fr .96fr;gap:74px;align-items:center}
.hero-copy .sub{max-width:650px;margin-top:28px;font-size:1.08rem;color:var(--muted)}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:34px}
.hero-photo-wrap{position:relative}
.hero-photo{width:100%;aspect-ratio:1/1.02;object-fit:cover;border-radius:var(--radius);box-shadow:var(--shadow)}
.hero-note{position:absolute;left:-26px;bottom:26px;background:var(--paper);border:1px solid var(--line);padding:16px 19px;border-radius:14px;font-size:.82rem;letter-spacing:.05em}

/* MAKING */
.making{background:var(--beige)}
.making-intro{display:grid;grid-template-columns:.9fr 1.1fr;gap:86px;align-items:start}
.making-copy p{font-size:1.18rem;color:var(--muted);max-width:690px}
.values-box{margin-top:62px;padding:18px 38px;border:1px solid var(--line);border-radius:var(--radius);background:rgba(251,249,245,.82)}
.value-row{display:grid;grid-template-columns:76px 1fr;gap:28px;align-items:start;padding:34px 0;text-align:left}
.value-row + .value-row{border-top:1px solid var(--line)}
.value-number{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:var(--blush);font-family:var(--serif);font-size:1.25rem}
.value-copy{max-width:760px}
.value-copy h3{font-size:2.05rem;line-height:1.05}
.value-copy p{margin-top:12px;color:var(--muted);max-width:680px}

/* CATEGORIES */
.categories{background:var(--paper);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:36px;margin-bottom:50px}
.section-head p{max-width:430px;color:var(--muted)}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.category{display:flex;flex-direction:column;background:var(--beige);border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:0 12px 36px rgba(23,20,16,.04)}
.category-media{aspect-ratio:4/5;overflow:hidden;background:#ddd3c4}
.category-media img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.category:hover .category-media img{transform:scale(1.025)}
.category-body{padding:28px;display:flex;flex-direction:column;flex:1}
.category-kicker{font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:#77736c;margin-bottom:8px}
.category h3{font-size:2rem}
.category p{margin:16px 0 24px;color:var(--muted);font-size:.94rem}
.category .btn{margin-top:auto;width:100%}

/* STORY */
.story{background:var(--beige)}
.story-grid{display:grid;grid-template-columns:.86fr 1.14fr;gap:80px;align-items:start}
.story-quote{font-family:var(--serif);font-style:italic;font-size:clamp(2.8rem,5.5vw,5.25rem);line-height:1.02;letter-spacing:-.035em}
.story-copy{padding-top:24px}
.story-copy p{color:var(--muted);font-size:1.15rem;max-width:630px}

/* CONTACT */
.contact{background:#111;color:white;padding:86px 0}
.contact-grid{display:flex;align-items:end;justify-content:space-between;gap:40px}
.contact h2{color:white;max-width:760px}
.contact p{margin-top:20px;max-width:620px;color:rgba(255,255,255,.68)}
.contact .btn{background:var(--beige);color:#111;border-color:var(--beige);flex:0 0 auto}

/* FOOTER */
footer{background:var(--beige);color:var(--muted);padding:30px 0;border-top:1px solid var(--line);font-size:.84rem}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:22px}
.footer-logo{width:190px;height:auto;opacity:1}
.footer-links{display:flex;gap:18px}

/* FLOATING SOCIALS */
.float-socials{position:fixed;right:20px;bottom:20px;z-index:45;display:grid;gap:10px}
.float-social{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;border:1px solid rgba(17,17,17,.13);box-shadow:0 12px 26px rgba(17,17,17,.16);transition:transform .18s ease}
.float-social:hover{transform:translateY(-3px)}
.float-social.instagram{background:var(--beige);color:#111}
.float-social.whatsapp{background:#111;color:#fff}
.float-social svg{width:24px;height:24px}

.reveal{opacity:0;transform:translateY(18px);transition:opacity .65s ease,transform .65s ease}
.reveal.visible{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.reveal{opacity:1;transform:none;transition:none}.category-media img{transition:none}}
@media (max-width:960px){
  .nav-links{display:none}.menu-btn{display:block}.mobile-menu.open{display:block}
  .hero{min-height:auto}.hero-grid,.making-intro,.story-grid{grid-template-columns:1fr;gap:46px}
  .hero-copy{text-align:center}.hero-copy .sub{margin-inline:auto}.hero-actions{justify-content:center}
  .hero-photo-wrap{max-width:650px;margin-inline:auto}.hero-note{left:18px}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .contact-grid{align-items:flex-start;flex-direction:column}.section-head{align-items:flex-start;flex-direction:column}
}
@media (max-width:680px){
  .container{width:min(100% - 28px,1180px)}.section{padding:76px 0}.nav-inner{min-height:76px}.brand-logo{width:190px}
  .hero{padding:124px 0 66px}.hero-grid{gap:34px}h1{font-size:clamp(3.5rem,17vw,5.1rem)}h2{font-size:clamp(3rem,14vw,4.2rem)}
  .hero-note{left:12px;right:12px;bottom:12px;text-align:center}.values-box{margin-top:42px;padding:10px 22px}.value-row{grid-template-columns:1fr;gap:16px;padding:28px 0}.value-number{width:52px;height:52px}.value-copy h3{font-size:1.85rem}.cards{grid-template-columns:1fr}.category-body{padding:24px}
  .story-quote{font-size:clamp(2.75rem,13vw,4.1rem)}.footer-inner{align-items:flex-start;flex-direction:column}.float-socials{right:14px;bottom:14px}.float-social{width:52px;height:52px}
}

/* PRODUCT CAROUSELS */
.product-carousel{position:relative;isolation:isolate;touch-action:pan-y;user-select:none}
.carousel-slides{position:absolute;inset:0}
.carousel-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .34s ease,visibility .34s ease;overflow:hidden}
.carousel-slide.is-active{opacity:1;visibility:visible;z-index:1}
.carousel-slide img{width:100%;height:100%;object-fit:cover;transform:scale(1.001);transition:transform .5s ease}
.category:hover .carousel-slide.is-active img{transform:scale(1.025)}
.carousel-arrow{position:absolute;z-index:4;top:50%;width:42px;height:42px;display:grid;place-items:center;transform:translateY(-50%);border:1px solid rgba(17,17,17,.12);border-radius:50%;background:rgba(251,249,245,.90);color:#111;font-family:Georgia,serif;font-size:2rem;line-height:1;cursor:pointer;box-shadow:0 6px 20px rgba(17,17,17,.10);backdrop-filter:blur(8px);transition:background .18s ease,transform .18s ease,opacity .18s ease}
.carousel-arrow:hover{background:#fff;transform:translateY(-50%) scale(1.04)}
.carousel-prev{left:13px}.carousel-next{right:13px}
.carousel-dots{position:absolute;z-index:4;left:50%;bottom:14px;transform:translateX(-50%);display:flex;align-items:center;gap:6px;padding:7px 9px;border-radius:999px;background:rgba(251,249,245,.80);backdrop-filter:blur(8px)}
.carousel-dot{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:rgba(17,17,17,.30);cursor:pointer;transition:transform .18s ease,background .18s ease}
.carousel-dot.is-active{background:#111;transform:scale(1.25)}
.carousel-counter{position:absolute;z-index:4;top:14px;right:14px;padding:5px 9px;border-radius:999px;background:rgba(251,249,245,.82);color:#111;font-size:.68rem;font-weight:600;letter-spacing:.06em;backdrop-filter:blur(8px)}
.product-carousel:focus-within .carousel-arrow{outline:none}
.carousel-arrow:focus-visible,.carousel-dot:focus-visible{outline:2px solid #111;outline-offset:2px}
@media (max-width:680px){.carousel-arrow{width:40px;height:40px}.carousel-prev{left:10px}.carousel-next{right:10px}.carousel-dots{bottom:11px}.carousel-counter{top:11px;right:11px}}
@media (prefers-reduced-motion:reduce){.carousel-slide,.carousel-slide img,.carousel-arrow,.carousel-dot{transition:none}}
