/* =========================================
   VARIABLES Y RESET
========================================= */
:root {
  --bg-color: #faf9f6;
  --text-main: #2c2c2c;
  --text-muted: #6b6b6b;
  --primary: #1d2c21; /* Verde oscuro elegante */
  --primary-light: #2c4233;
  --accent: #c95c48; /* Rojo teja gastronómico */
  --accent-hover: #b54a37;
  --gold: #d4af37;
  --border: #e5e1d8;
  --white: #ffffff;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --font-sans: 'DM Sans', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* =========================================
   HEADER Y TOPLINE
========================================= */
.topline {
  background-color: var(--primary);
  color: var(--gold);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  padding: 8px;
  text-transform: uppercase;
  font-weight: 500;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
  background: var(--primary);
  color: var(--white);
  width: 45px; height: 45px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 800;
}
.brand b { display: block; font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.1; color: var(--primary); }
.brand small { font-size: 0.65rem; letter-spacing: 0.15em; color: var(--text-muted); font-weight: 600; }
nav { display: flex; gap: 30px; }
nav a { font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
nav a:hover { color: var(--accent); }

.cart-btn {
  background: var(--white);
  border: 2px solid var(--primary);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  color: var(--primary);
  transition: all 0.3s ease;
  display: flex; align-items: center; gap: 10px;
}
.cart-btn:hover { background: var(--primary); color: var(--white); }
.cart-btn b { background: var(--accent); color: var(--white); padding: 2px 8px; border-radius: 20px; font-size: 0.8rem; }

/* =========================================
   HERO SECTION
========================================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 8%;
  background: linear-gradient(135deg, #fdfbf7 0%, #f0ece1 100%);
  min-height: 80vh;
}
.hero-text { max-width: 600px; }
.kicker { font-size: 0.8rem; letter-spacing: 0.2em; font-weight: 700; color: var(--accent); text-transform: uppercase; margin-bottom: 15px; display: block; }
.kicker.dark { color: var(--gold); }
.hero h1 { font-family: var(--font-serif); font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1.05; color: var(--primary); margin-bottom: 25px; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 35px; max-width: 450px; }
.cta {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: transform 0.3s, background 0.3s;
}
.cta:hover { background: var(--primary-light); transform: translateY(-3px); }
.hero-foot { margin-top: 40px; font-size: 0.8rem; letter-spacing: 0.15em; color: var(--gold); font-weight: 600; }
.pizza-art { position: relative; display: flex; justify-content: center; align-items: center; }
.pizza-ring {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #ffdfa3 0%, #e6b85c 100%);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 8rem;
  box-shadow: inset 0 -15px 30px rgba(0,0,0,0.1), var(--shadow-lg);
  animation: flotar 6s ease-in-out infinite;
}
.seal {
  position: absolute;
  bottom: 20px; right: -20px;
  background: var(--accent); color: var(--white);
  padding: 20px; border-radius: 50%;
  text-align: center; font-size: 0.7rem;
  font-weight: 700; line-height: 1.2;
  transform: rotate(-15deg);
  box-shadow: var(--shadow-sm);
}
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* =========================================
   MENÚ Y PRODUCTOS
========================================= */
.section { padding: 80px 8%; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 20px; }
.section-head h2 { font-family: var(--font-serif); font-size: 3rem; color: var(--primary); }
.section-head h2 em { color: var(--accent); }
.section-head p { color: var(--text-muted); font-size: 1.1rem; }
.search-wrap input {
  padding: 15px 25px; border-radius: 50px;
  border: 1px solid var(--border); width: 300px;
  font-family: inherit; outline: none; transition: border 0.3s;
}
.search-wrap input:focus { border-color: var(--primary); }

.categories { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 15px; margin-bottom: 30px; }
.cat {
  background: var(--white); border: 1px solid var(--border);
  padding: 10px 24px; border-radius: 50px;
  font-weight: 600; color: var(--text-muted); white-space: nowrap;
  transition: all 0.3s;
}
.cat.active, .cat:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.product { background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.3s; }
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product img { width: 100%; height: 220px; object-fit: cover; }
.product-info { padding: 25px; }
.product-info h3 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.product-info p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; height: 40px; overflow: hidden; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 700; font-size: 1.2rem; color: var(--accent); }
.add {
  background: var(--bg-color); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 50px;
  font-weight: 700; font-size: 0.85rem; color: var(--primary); transition: all 0.3s;
}
.add:hover { background: var(--primary); color: var(--white); }
.note { display: block; text-align: center; margin-top: 40px; color: var(--text-muted); font-size: 0.85rem; }

/* =========================================
   HISTORIA Y CONTACTO
========================================= */
.story { display: flex; align-items: center; gap: 60px; background: var(--white); padding: 80px 8%; }
.story-art { flex: 1; font-size: 8rem; text-align: center; background: var(--bg-color); border-radius: 20px; padding: 40px; }
.story-copy { flex: 1; }
.story-copy h2 { font-family: var(--font-serif); font-size: 2.8rem; color: var(--primary); margin-bottom: 20px; }
.story-copy h2 em { color: var(--accent); }
.story-copy p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 30px; }
.story-copy a { font-weight: 700; color: var(--primary); border-bottom: 2px solid var(--accent); padding-bottom: 5px; }

.contact { display: flex; justify-content: space-between; align-items: center; background: var(--primary); padding: 60px 8%; color: var(--white); }
.contact h2 { font-family: var(--font-serif); font-size: 2.5rem; margin: 10px 0; }
.dark-cta { background: var(--white); color: var(--primary); }
.dark-cta:hover { background: var(--gold); color: var(--white); }

/* =========================================
   FOOTER
========================================= */
footer { display: flex; justify-content: space-between; align-items: center; padding: 40px 8%; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.9rem; }

/* =========================================
   CARRITO Y MODALES
========================================= */
.shade, .modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; }
.shade-bg, .modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); border: none; width: 100%; height: 100%; }
.drawer {
  position: absolute; right: 0; top: 0; bottom: 0; width: 400px; max-width: 100%;
  background: var(--white); padding: 30px; display: flex; flex-direction: column; gap: 20px;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.drawer-head h2 { font-family: var(--font-serif); font-size: 2rem; color: var(--primary); }
.x { background: none; border: none; font-size: 2rem; color: var(--text-muted); cursor: pointer; }

.cart-items { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.cart-row { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--border); padding-bottom: 10px; }
.cart-row small { color: var(--text-muted); display: block; margin-top: 4px; }
.remove { background: none; border: none; color: var(--accent); font-size: 0.8rem; cursor: pointer; margin-top: 5px; text-decoration: underline; }
.sum { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-top: 10px; }
.wide { width: 100%; text-align: center; }

.modal-card {
  position: relative; background: var(--white); width: 500px; max-width: 90%;
  padding: 30px; border-radius: 20px; display: flex; flex-direction: column; gap: 15px;
  max-height: 90vh; overflow-y: auto;
}
.modal-card label { display: flex; flex-direction: column; font-weight: 600; font-size: 0.9rem; gap: 5px; }
.modal-card input, .modal-card select, .modal-card textarea {
  padding: 12px; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 1rem; width: 100%;
}
.modal-card input:focus, .modal-card select:focus, .modal-card textarea:focus { outline: none; border-color: var(--primary); }
#feedback { margin-top: 10px; font-weight: 600; text-align: center; color: var(--primary); }
.muted { color: var(--text-muted); font-size: 0.9rem; text-align: center; }

/* Responsive */
@media (max-width: 768px) {
  nav { display: none; }
  .hero { flex-direction: column; text-align: center; padding-top: 50px; }
  .hero-foot { display: none; }
  .pizza-art { margin-top: 50px; }
  .pizza-ring { width: 250px; height: 250px; font-size: 6rem; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .search-wrap input { width: 100%; }
  .story { flex-direction: column; text-align: center; }
  .story-art { display: none; }
  .contact { flex-direction: column; text-align: center; gap: 30px; }
  footer { flex-direction: column; gap: 15px; text-align: center; }
}

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');
:root{--green:#1d2c21;--green2:#304a35;--cream:#fbf8f0;--red:#b84e38;--gold:#e6c58b;--ink:#242c25;--muted:#7b8178;--line:#e8e2d7}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:'DM Sans',sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.topline{background:var(--green);color:var(--gold);text-align:center;padding:9px;font-size:10px;letter-spacing:.2em;font-weight:800}.header{height:78px;background:#fffdf8;display:flex;align-items:center;justify-content:space-between;padding:0 6vw;position:sticky;top:0;z-index:10;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px}.logo{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--red);color:white;font:800 17px 'Playfair Display'}.brand b{display:block;font:700 20px 'Playfair Display'}.brand small{display:block;font-size:8px;letter-spacing:.2em;color:#888;margin-top:3px}.header nav{display:flex;gap:30px;font-size:12px;font-weight:700;color:#526052}.header nav a:hover{color:var(--red)}.cart-btn{border:1px solid #dcded5;background:white;border-radius:30px;padding:8px 9px 8px 16px;font-size:11px;font-weight:800;display:flex;align-items:center;gap:12px;cursor:pointer}.cart-btn b{background:var(--red);color:#fff;width:25px;height:25px;border-radius:50%;display:grid;place-items:center}.hero{background:var(--green);color:#fff;padding:75px 8vw;min-height:550px;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;overflow:hidden}.kicker{font-size:10px;letter-spacing:.2em;color:var(--gold);font-weight:800}.kicker.dark{color:var(--red)}h1,h2{font-family:'Playfair Display',serif}.hero h1{font-size:clamp(43px,5.5vw,72px);line-height:1.06;letter-spacing:-.04em;margin:22px 0}.hero h1 em,.section-head h2 em,.story h2 em{font-style:normal;color:var(--gold)}.hero-text>p{max-width:450px;color:#cbd3c9;font-size:14px;line-height:1.8}.cta{display:inline-flex;align-items:center;gap:28px;background:var(--gold);color:var(--green);padding:16px 22px;border-radius:4px;font-size:10px;font-weight:900;letter-spacing:.08em;border:0;cursor:pointer}.hero .cta{margin-top:20px}.hero-foot{margin-top:55px;font-size:9px;letter-spacing:.12em;color:#c2cbbf}.pizza-art{height:360px;display:grid;place-items:center;position:relative}.pizza-ring{width:min(330px,75vw);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#f2d28f 0 56%,#b84e38 57% 65%,#eacb8c 66% 70%,#f4e2b8 71%);box-shadow:0 25px 70px #0005;transform:rotate(-12deg);border:8px solid #ffffff1a}.pizza-ring span{font-size:150px;filter:drop-shadow(0 10px 8px #51301c66)}.seal{position:absolute;right:2%;bottom:7%;width:112px;height:112px;border-radius:50%;background:#f4dfb6;color:var(--green);display:grid;place-content:center;text-align:center;font-size:9px;letter-spacing:.1em;transform:rotate(9deg);box-shadow:0 8px 20px #0004}.seal b{font:800 16px 'Playfair Display'}.section{max-width:1250px;margin:auto;padding:90px 6vw}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px}.section-head h2,.story h2{font-size:51px;margin:12px 0;color:var(--green)}.section-head h2 em,.story h2 em{color:var(--red)}.section-head p,.story p,.contact p{font-size:13px;color:var(--muted)}.section-head input{width:245px;border:0;border-bottom:1px solid #c8c8bd;background:transparent;padding:12px 2px;outline:none;font-size:12px}.categories{display:flex;gap:9px;flex-wrap:wrap;margin:30px 0}.cat{border:1px solid #dcd8ce;background:transparent;border-radius:30px;padding:10px 16px;font-size:10px;font-weight:800;cursor:pointer;color:#657064}.cat.active,.cat:hover{background:var(--green);color:white;border-color:var(--green)}.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.product{background:#fff;border:1px solid var(--line);border-radius:7px;overflow:hidden;transition:.2s}.product:hover{transform:translateY(-4px);box-shadow:0 14px 30px #27362912}.product img{width:100%;height:205px;object-fit:cover;background:#eee8dc;display:block}.product-info{padding:17px}.product h3{font:700 19px 'Playfair Display';margin:0 0 8px}.product p{font-size:11px;color:var(--muted);line-height:1.6;min-height:36px}.product-bottom{display:flex;align-items:center;justify-content:space-between}.price{font-size:13px;font-weight:900;color:var(--green2)}.add{border:0;border-radius:4px;background:var(--red);color:#fff;padding:10px 13px;font-size:9px;font-weight:900;cursor:pointer}.note,.muted{font-size:10px;color:var(--muted)}.note{display:block;margin-top:22px}.loading{grid-column:1/-1;text-align:center;padding:40px;color:var(--muted)}.story{display:grid;grid-template-columns:1fr 1fr;background:#eee5d5}.story-art{min-height:380px;background:linear-gradient(145deg,#b74b35,#612f25);display:grid;place-items:center;font-size:150px;position:relative}.story-art small{position:absolute;bottom:25px;color:#f5dfb7;font-size:9px;letter-spacing:.2em}.story-copy{padding:65px 10%;align-self:center}.story-copy p{line-height:1.9;max-width:440px}.story-copy>a{display:inline-block;color:var(--red);font-size:10px;font-weight:900;margin-top:15px}.contact{padding:48px 8vw;background:#e6d5b5;display:flex;align-items:center;justify-content:space-between;gap:20px}.contact h2{font-size:30px;margin:9px 0}.dark-cta{background:var(--green);color:white}footer{padding:25px 6vw;background:var(--green);color:#d7ded4;display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:10px}.foot-brand b{color:#fff}.foot-brand small{color:#aab5a8}.shade,.modal{position:fixed;inset:0;z-index:40}.shade-bg,.modal-bg{position:absolute;inset:0;background:#101810a8;border:0}.drawer{position:absolute;right:0;top:0;height:100%;width:min(420px,100%);background:#fffdf8;padding:25px;display:flex;flex-direction:column}.drawer-head{display:flex;justify-content:space-between;align-items:center}.drawer-head h2{font-size:28px;margin:5px 0}.x{border:0;background:#eee9df;border-radius:50%;width:34px;height:34px;font-size:23px;cursor:pointer}.cart-items{flex:1;overflow:auto;margin:20px 0}.cart-row{display:flex;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}.cart-row small{display:block;color:var(--muted);margin-top:5px}.remove{border:0;background:none;color:var(--red);cursor:pointer;font-size:10px}.sum{display:flex;justify-content:space-between;padding:17px 0;border-top:1px solid var(--line);font-size:13px}.sum b{font-size:16px}.wide{width:100%;justify-content:center}.drawer>.muted{text-align:center;margin-top:12px}.modal-card{position:relative;background:#fffdf8;width:min(500px,calc(100% - 28px));max-height:92vh;overflow:auto;margin:4vh auto;padding:25px;border-radius:8px;display:grid;gap:13px}.modal-card label{display:grid;gap:6px;font-size:11px;font-weight:700}.modal-card input,.modal-card select,.modal-card textarea{width:100%;padding:11px;border:1px solid #ddd8cd;border-radius:4px;background:white;font-size:12px}.modal-card .sum{margin-top:5px}.modal-card #feedback{font-size:11px;color:var(--red);line-height:1.5}[hidden]{display:none!important}.no-scroll{overflow:hidden}
@media(max-width:800px){.hero{padding:55px 6vw;grid-template-columns:1fr .8fr}.header nav{gap:14px}.products{grid-template-columns:repeat(2,minmax(0,1fr))}.story-copy{padding:45px 7%}}
@media(max-width:600px){.header{height:66px;padding:0 15px}.header nav{display:none}.brand b{font-size:18px}.hero{display:block;padding:48px 23px 35px;min-height:0}.hero h1{font-size:45px}.pizza-art{height:235px}.pizza-ring{width:205px}.pizza-ring span{font-size:100px}.seal{width:85px;height:85px;font-size:8px}.seal b{font-size:13px}.hero-foot{margin-top:35px;font-size:8px}.section{padding:65px 18px}.section-head{display:block}.section-head h2,.story h2{font-size:42px}.section-head input{width:100%;margin-top:20px}.products{gap:10px}.product img{height:140px}.product-info{padding:11px}.product h3{font-size:15px}.product p{font-size:10px;min-height:48px}.price{font-size:11px}.add{padding:8px;font-size:8px}.story{grid-template-columns:1fr}.story-art{min-height:240px;font-size:110px}.story-copy{padding:42px 23px}.contact{padding:35px 23px;display:block}.contact .cta{margin-top:14px}footer{padding:23px 18px;flex-wrap:wrap}footer>span{width:100%;order:3}}
@media(max-width:370px){.products{grid-template-columns:1fr}.product img{height:190px}}
