/* ============================================================
   Panadería Albis — estilo de la web publica (calido, claro).
   Inspirado en panaderias artesanales: crema + dorado, titulos
   serif, fotos de producto destacadas. El panel usa app.css.
   ============================================================ */
:root {
    --cream: #FBF6EE;
    --surface: #FFFFFF;
    --ink: #2E2218;
    --soft: #5B4A3A;
    --muted: #8C7B68;
    --accent: #C0892F;
    --accent-d: #A6741F;
    --terra: #B0472B;
    --terra-d: #973A21;
    --border: #ECE0CE;
    --shadow: 0 6px 22px rgba(60, 40, 20, .10);
    --radius: 14px;
    --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body.site {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
}

.site a { color: var(--terra); text-decoration: none; }
.site a:hover { text-decoration: underline; }
.site h1, .site h2, .site h3, .site h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--ink); }
.site code { background: #f2e7d4; padding: .1em .35em; border-radius: 6px; font-size: .9em; }

/* ---------- Cabecera ---------- */
.site-header {
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 20;
    backdrop-filter: saturate(140%) blur(6px);
}
.site-header-inner {
    max-width: 1080px; margin: 0 auto; padding: .85rem 1.25rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-brand { display: flex; align-items: center; gap: .5rem; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.site-brand:hover { text-decoration: none; color: var(--accent-d); }
.site-brand-icon { font-size: 1.5rem; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav-link { color: var(--soft); font-weight: 600; font-size: .98rem; }
.site-nav-link:hover { color: var(--terra); text-decoration: none; }

/* Menu movil (sin JS): checkbox + label */
.navtoggle { display: none; }
.navtoggle-btn { display: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); user-select: none; line-height: 1; }

/* ---------- Contenedor principal ---------- */
.site-main { max-width: 1080px; margin: 0 auto; padding: 2.5rem 1.25rem 3.5rem; min-height: 50vh; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(1200px 380px at 80% -10%, rgba(192, 137, 47, .18), transparent 60%),
        linear-gradient(160deg, #fff7ea 0%, var(--cream) 60%);
    border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 4.5rem 1.25rem 4rem; text-align: center; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 700; color: var(--accent-d); margin: 0 0 .6rem; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0 0 .6rem; color: var(--ink); }
.hero-tagline { font-size: 1.2rem; color: var(--soft); margin: 0 auto 1.8rem; max-width: 34rem; }
.hero-cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Botones ---------- */
.btn {
    display: inline-block; padding: .7rem 1.3rem; border: 2px solid transparent;
    background: var(--terra); color: #fff; border-radius: 999px;
    font-size: 1rem; font-weight: 700; cursor: pointer; font-family: var(--sans);
    transition: background .15s, transform .15s;
}
.btn:hover { background: var(--terra-d); text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: .85rem 1.7rem; font-size: 1.05rem; }
.btn-outline { background: transparent; color: var(--terra); border-color: var(--terra); }
.btn-outline:hover { background: var(--terra); color: #fff; }

/* ---------- Bloques de contenido ---------- */
.bloque { margin: 3.5rem 0; }
.bloque-centro { margin: 3rem auto; max-width: 50rem; }
.bloque-titulo { font-size: 2rem; text-align: center; margin: 0 0 1.8rem; position: relative; }
.bloque-titulo::after { content: ""; display: block; width: 64px; height: 3px; background: var(--accent); border-radius: 2px; margin: .7rem auto 0; }
.bloque-mas { text-align: center; margin-top: 2rem; }

/* Texto largo (paginas de contenido) */
.site-page { max-width: 50rem; margin: 0 auto; }
.site-page > h1 { font-size: 2.4rem; margin: 0 0 1.2rem; }
.site-content, .prosa { font-size: 1.08rem; color: var(--soft); }
.site-content h2 { font-size: 1.5rem; margin: 2rem 0 .6rem; color: var(--ink); }
.site-content h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; color: var(--ink); }
.site-content a { font-weight: 600; }
.prosa { text-align: center; }

/* ---------- Catalogo de productos ---------- */
.cat-bloque { margin: 2.8rem 0; }
.cat-bloque > h2 { font-size: 1.7rem; border-bottom: 2px solid var(--border); padding-bottom: .5rem; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.prod-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(60,40,20,.05);
    transition: transform .15s, box-shadow .15s;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prod-destacado { border-color: var(--accent); }
.prod-img { width: 100%; height: 180px; object-fit: cover; display: block; background: #f3ead9; }
.prod-img-vacia { display: flex; align-items: center; justify-content: center; font-size: 3.4rem; }
.prod-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.prod-body h3 { margin: 0; font-size: 1.15rem; }
.prod-desc { color: var(--muted); font-size: .94rem; margin: 0; }
.prod-precio { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--accent-d); margin: .2rem 0 0; }
.tag { display: inline-block; padding: 0 .4rem; border-radius: 999px; font-size: .8rem; background: #f6ecd8; color: var(--accent-d); }

/* ---------- Banda de llamada a la accion ---------- */
.cta-band { background: linear-gradient(135deg, #5B4A3A, #2E2218); border-radius: var(--radius); margin: 3.5rem 0 0; }
.cta-band-inner { padding: 3rem 1.5rem; text-align: center; color: #fff; }
.cta-band-inner h2 { color: #fff; font-size: 1.9rem; margin: 0 0 .5rem; }
.cta-band-inner p { color: #e9ddca; margin: 0 0 1.5rem; }

/* ---------- Formularios publicos ---------- */
.site-form {
    margin: 1.8rem auto 0; max-width: 640px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.7rem; box-shadow: 0 2px 8px rgba(60,40,20,.05);
}
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .95rem; color: var(--ink); }
.site-form input, .site-form textarea {
    width: 100%; padding: .7rem .85rem; background: #fffdfa; border: 1px solid var(--border);
    border-radius: 10px; color: var(--ink); font-size: 1rem; font-family: inherit;
}
.site-form input:focus, .site-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.fila-2 { display: flex; gap: 1rem; flex-wrap: wrap; }
.fila-2 .form-group { flex: 1; min-width: 12rem; }
.form-hint { color: var(--muted); font-size: .9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Avisos ---------- */
.alert { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1.2rem; font-size: .97rem; border: 1px solid; }
.alert-success { background: #eef8f0; border-color: #bfe2c7; color: #2c6b3d; }
.alert-error   { background: #fbeeec; border-color: #f0c8c0; color: #9a3322; }
.alert-warning { background: #fdf5e6; border-color: #f0dcab; color: #8a6516; }
.alert-info    { background: #eef3fb; border-color: #c6d6ef; color: #355488; }

.muted { color: var(--muted); }

/* ---------- Pie ---------- */
.site-footer { background: #271d14; color: #d9ccba; margin-top: 4rem; }
.site-footer-inner { max-width: 1080px; margin: 0 auto; padding: 2.8rem 1.25rem 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin: 0 0 .8rem; }
.footer-col p { margin: 0; color: #c2b3a0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .45rem; }
.footer-col a { color: #e8c98a; }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin-bottom: .6rem; }
.site-footer-bottom { text-align: center; padding: 1.2rem; border-top: 1px solid #3a2c20; font-size: .88rem; color: #9c8b78; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .navtoggle-btn { display: block; }
    .site-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 0; background: var(--surface);
        border-bottom: 1px solid var(--border); padding: .5rem 0; box-shadow: var(--shadow);
    }
    .navtoggle:checked ~ .site-nav { display: flex; }
    .site-nav-link { padding: .8rem 1.5rem; width: 100%; }
    .site-header-inner { position: relative; flex-wrap: wrap; }
}

/* ============== Pulido estético (ronda de mejoras) ============== */

/* Textura sutil de puntos en el hero */
.hero { position: relative; overflow: hidden; }
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(176, 71, 43, .06) 1.5px, transparent 1.5px);
    background-size: 26px 26px; opacity: .7;
}
.hero-inner { position: relative; z-index: 1; }

/* Insignia "destacado" en las tarjetas de producto */
.prod-card { position: relative; }
.prod-destacado::before {
    content: "★ Destacado"; position: absolute; top: .7rem; left: .7rem; z-index: 2;
    background: rgba(255,255,255,.94); color: var(--accent-d);
    font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px;
    box-shadow: 0 1px 4px rgba(60,40,20,.15);
}

/* Accesibilidad: foco visible */
.site a:focus-visible, .site .btn:focus-visible, .site input:focus-visible,
.site textarea:focus-visible, .navtoggle-btn:focus-visible {
    outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

/* Refinamientos */
.site-main { animation: aparece .4s ease both; }
@keyframes aparece { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.prod-precio::before { content: ""; }
.hero-cta .btn { box-shadow: 0 4px 14px rgba(176,71,43,.22); }
.hero-cta .btn-outline { box-shadow: none; }

/* Fix de contraste: los enlaces-botón deben mandar sobre el color de enlace.
   (.site a tiene más especificidad que .btn y pisaba el color del texto.) */
.site a.btn { color: #fff; }
.site a.btn:hover { color: #fff; }
.site a.btn-outline { color: var(--terra); }
.site a.btn-outline:hover { color: #fff; }

/* ===================== Bloque 2: catálogo, ficha y carrito ===================== */
/* PATRÓN: la web aprovecha todo el ancho (habrá muchos productos). */
.site-main { max-width: 1500px; }

/* Carrito en la cabecera */
.nav-carrito { font-weight: 700; }
.badge-cart { display: inline-block; min-width: 1.2rem; padding: 0 .35rem; background: var(--terra); color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 700; text-align: center; }

/* ---- Catálogo: categorías a la izquierda, productos a todo el ancho ---- */
.catalogo-titulo { text-align: center; margin: 0 0 1.5rem; }
.catalogo-layout { display: grid; grid-template-columns: 210px 1fr; gap: 2rem; align-items: start; }
.catalogo-cats { position: sticky; top: 80px; }
.catalogo-cats nav { display: flex; flex-direction: column; gap: .2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem; }
.catalogo-cats a { color: var(--soft); font-weight: 600; padding: .55rem .7rem; border-radius: 8px; }
.catalogo-cats a:hover { background: #f6ecd8; color: var(--terra); text-decoration: none; }
.catalogo-productos .cat-bloque { scroll-margin-top: 80px; margin-top: 0; }
.catalogo-productos .cat-bloque + .cat-bloque { margin-top: 2.5rem; }
/* Más columnas para llenar la pantalla */
.catalogo-productos .prod-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
/* Tarjeta-enlace */
a.prod-card { color: inherit; }
a.prod-card:hover { text-decoration: none; }

/* ---- Ficha de producto ---- */
.ficha { max-width: 1100px; margin: 0 auto; }
.volver { display: inline-block; margin-bottom: 1rem; font-weight: 600; }
.ficha-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.ficha-datos h1 { margin-top: 0; }
.ficha-desc { color: var(--soft); font-size: 1.05rem; }
.ficha-alergenos { margin: 1rem 0; }
.ficha-alergenos .alg { display: inline-block; margin: .15rem .25rem 0 0; padding: .15rem .55rem; background: #fbeec9; color: #8a6516; border-radius: 999px; font-size: .82rem; font-weight: 600; }

/* Carrusel */
.carrusel { position: relative; background: #f3ead9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.carrusel-track { position: relative; aspect-ratio: 4 / 3; }
.carrusel-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.carrusel-foto.activa { opacity: 1; }
.carrusel-vacio { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.carrusel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; border-radius: 50%; border: none; background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.5rem; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.carrusel-btn.prev { left: .6rem; } .carrusel-btn.next { right: .6rem; }
.carrusel-puntos { position: absolute; bottom: .6rem; left: 0; right: 0; display: flex; justify-content: center; gap: .4rem; }
.carrusel-puntos .punto { width: .6rem; height: .6rem; border-radius: 50%; border: none; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; }
.carrusel-puntos .punto.activo { background: #fff; }

/* Pedido (formatos + cantidad) */
.form-pedido { margin: 1.2rem 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.formatos { border: none; padding: 0; margin: 0 0 1rem; }
.formatos legend { font-weight: 700; padding: 0; margin-bottom: .5rem; }
.formato-opt { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border: 1px solid var(--border); border-radius: 10px; margin-bottom: .5rem; cursor: pointer; }
.formato-opt:hover { border-color: var(--accent); }
.formato-nombre { flex: 1; font-weight: 600; }
.formato-precio { font-family: var(--serif); font-weight: 700; color: var(--accent-d); }
.fila-pedido { margin-bottom: 1rem; }
.input-cant { width: 5rem; padding: .55rem .6rem; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; }

/* Nutrición */
.ficha-nutri { margin-top: 1rem; }
.ficha-nutri summary { cursor: pointer; font-weight: 600; color: var(--soft); }
.tabla-nutri { width: 100%; border-collapse: collapse; margin-top: .6rem; max-width: 360px; }
.tabla-nutri td { padding: .35rem .5rem; border-bottom: 1px solid var(--border); }
.tabla-nutri td:last-child { text-align: right; font-weight: 600; }

/* ---- Carrito ---- */
.carrito { max-width: 920px; }
.carrito-lista { display: flex; flex-direction: column; gap: .8rem; margin: 1.2rem 0; }
.carrito-linea { display: grid; grid-template-columns: 70px 1fr auto auto auto; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .7rem .9rem; }
.carrito-foto img { border-radius: 8px; object-fit: cover; }
.carrito-foto .thumb-empty { font-size: 2rem; }
.carrito-info { display: flex; flex-direction: column; gap: .15rem; }
.carrito-obs { color: var(--muted); font-style: italic; font-size: .9rem; }
.carrito-cant { display: flex; align-items: center; gap: .4rem; }
.carrito-subtotal { font-family: var(--serif); font-weight: 700; color: var(--accent-d); white-space: nowrap; }
.btn-quitar { background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.btn-quitar:hover { color: var(--terra); }
.carrito-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.3rem; padding: 1rem 0; border-top: 2px solid var(--border); }
.carrito-total strong { font-family: var(--serif); color: var(--accent-d); font-size: 1.5rem; }
.carrito-acciones { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
.btn-vaciar { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; font-weight: 600; }
.btn-sm { padding: .4rem .8rem; font-size: .85rem; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .catalogo-layout { grid-template-columns: 1fr; }
    .catalogo-cats { position: static; }
    .catalogo-cats nav { flex-direction: row; flex-wrap: wrap; }
    .ficha-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .carrito-linea { grid-template-columns: 56px 1fr auto; grid-auto-rows: auto; }
    .carrito-cant, .carrito-subtotal { grid-column: 2 / -1; }
}

/* ===================== Bloque 4: checkout y confirmación ===================== */
.checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.checkout-resumen { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem; position: sticky; top: 80px; }
.checkout-resumen h2 { margin-top: 0; font-size: 1.3rem; }
.resumen-linea { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px dashed var(--border); font-size: .95rem; }
.resumen-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: .8rem; margin-top: .4rem; font-size: 1.15rem; }
.resumen-total strong { font-family: var(--serif); color: var(--accent-d); font-size: 1.4rem; }
.confirmado-resumen { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 1.5rem 0; max-width: 560px; }
.btn-whatsapp { background: #25D366; }
.btn-whatsapp:hover { background: #1da851; }
.site a.btn-whatsapp { color: #fff; }
@media (max-width: 760px) { .checkout-grid { grid-template-columns: 1fr; } .checkout-resumen { position: static; } }

.cat-vacia { font-size: 1.05rem; margin: .5rem 0 1rem; }

/* ============================================================
   REDISEÑO (capa moderna + marketing). Va al final: manda sobre
   lo anterior. Redefine tokens y refina componentes clave.
   ============================================================ */
:root {
    --cream: #FBF7F0;
    --surface: #FFFFFF;
    --ink: #241A12;
    --soft: #5A4A3C;
    --muted: #978674;
    --accent: #C8902E;
    --accent-d: #A9761C;
    --terra: #C24A2A;
    --terra-d: #A23A1F;
    --border: #EEE3D2;
    --radius: 16px;
    --sh-sm: 0 1px 3px rgba(40,25,12,.06), 0 1px 2px rgba(40,25,12,.04);
    --sh-md: 0 10px 30px rgba(40,25,12,.10);
    --sh-lg: 0 24px 60px rgba(40,25,12,.16);
}
body.site { overflow-x: hidden; background: var(--cream); -webkit-font-smoothing: antialiased; }
.site h1, .site h2, .site h3 { letter-spacing: -.01em; }

/* Bandas a ancho completo de pantalla */
.hero, .cta-band, .benios, .sobre-home { width: 100vw; margin-left: calc(50% - 50vw); }

/* ---------- Cabecera ---------- */
.site-header { background: rgba(251,247,240,.82); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid rgba(238,227,210,.7); }
.site-header-inner { padding-block: 1rem; }
.site-brand { font-size: 1.5rem; }
.site-brand-icon { font-size: 1.6rem; }
.site-nav { gap: 1.6rem; }
.nav-carrito { background: var(--ink); color: #fff !important; padding: .5rem .9rem; border-radius: 999px; }
.nav-carrito:hover { background: var(--terra); text-decoration: none; }
.badge-cart { background: var(--terra); }
.nav-carrito:hover .badge-cart { background: #fff; color: var(--terra); }

/* ---------- Tipografía / secciones ---------- */
.seccion { max-width: 1180px; margin: 0 auto; padding-block: clamp(3rem, 7vw, 5.5rem); }
.seccion-head { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; }
.eyebrow, .hero-eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 800; color: var(--accent-d); margin-bottom: .8rem; }
.seccion-head h2, .sobre-home h2, .cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.seccion-head h2::after { content: ""; display: block; width: 56px; height: 3px; background: linear-gradient(90deg, var(--accent), var(--terra)); border-radius: 2px; margin: 1rem auto 0; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(900px 500px at 15% -10%, rgba(200,144,46,.22), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(194,74,42,.16), transparent 55%),
        linear-gradient(180deg, #fff8ec 0%, var(--cream) 100%);
    border-bottom: 1px solid var(--border);
}
.hero::after { background-image: radial-gradient(rgba(36,26,18,.05) 1.4px, transparent 1.4px); background-size: 30px 30px; opacity: .6; }
.hero-inner { max-width: 1180px; padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero-eyebrow { background: rgba(200,144,46,.14); padding: .35rem .9rem; border-radius: 999px; }
.hero-title { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -.02em; }
.hero-tagline { font-size: clamp(1.1rem, 2.4vw, 1.4rem); max-width: 38rem; }
.hero-trust { margin-top: 1.6rem; color: var(--muted); font-size: .95rem; font-weight: 600; }

/* ---------- Botones ---------- */
.btn { border-radius: 999px; font-weight: 700; box-shadow: var(--sh-sm); transition: transform .16s, box-shadow .16s, background .16s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-lg { padding: .95rem 1.9rem; }
.hero-cta .btn { box-shadow: 0 10px 24px rgba(194,74,42,.28); }
.hero-cta .btn-outline { box-shadow: none; }
.cta-outline-light { color: #fff; border-color: rgba(255,255,255,.6); }
.cta-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Tarjetas de producto ---------- */
.prod-grid { gap: 1.6rem; }
.prod-card { border-radius: var(--radius); box-shadow: var(--sh-sm); border-color: rgba(238,227,210,.9); }
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.prod-card .prod-img { transition: transform .4s ease; }
.prod-card:hover .prod-img { transform: scale(1.06); }
.prod-img { height: 200px; }
.prod-precio { color: var(--terra-d); }

/* ---------- Beneficios ---------- */
.benios { background: var(--surface); border-block: 1px solid var(--border); }
.benios-grid { max-width: 1180px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) 1.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.benio { text-align: center; padding: 1.2rem; }
.benio-ic { width: 64px; height: 64px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; background: linear-gradient(135deg, #fbe7c9, #f7d9c6); border-radius: 18px; box-shadow: var(--sh-sm); }
.benio h3 { margin: 0 0 .4rem; font-size: 1.2rem; }
.benio p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Sobre (home) ---------- */
.sobre-home { background: linear-gradient(180deg, var(--cream), #fff6ea); border-block: 1px solid var(--border); }
.sobre-home-inner { max-width: 760px; margin: 0 auto; padding: clamp(3rem,7vw,5rem) 1.25rem; text-align: center; }
.sobre-home .site-content { margin: 1rem 0 1.8rem; }

/* ---------- Opiniones ---------- */
.opiniones-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.opinion { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--sh-sm); }
.opinion-estrellas { color: var(--accent); letter-spacing: .1em; margin-bottom: .6rem; }
.opinion blockquote { margin: 0 0 .8rem; font-size: 1.08rem; line-height: 1.5; color: var(--ink); font-family: var(--serif); }
.opinion figcaption { color: var(--muted); font-weight: 600; }

/* ---------- CTA final ---------- */
.cta-band { margin-block: 0; border-radius: 0; background: radial-gradient(700px 400px at 80% 0%, rgba(200,144,46,.25), transparent 60%), linear-gradient(135deg, #3A2A1E, #20160E); }
.cta-band-inner { max-width: 760px; padding-block: clamp(3rem, 7vw, 5rem); }
.cta-band-inner p { font-size: 1.1rem; }

/* ---------- Pie ---------- */
.site-footer { background: #1C140D; }
.site-footer-inner { padding-block: 3.5rem 2rem; }
.footer-brand { font-size: 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
}

/* ============================================================
   PALETA VIOLETA (marca de la panadería). Va al final: manda.
   Violeta como color principal + crema clara con un toque lila.
   ============================================================ */
:root {
    --cream: #FAF6FC;        /* fondo, blanco con un velo lila */
    --surface: #FFFFFF;
    --ink: #2A1F36;          /* texto, ciruela oscuro */
    --soft: #574A66;
    --muted: #948AA3;
    --accent: #9A5CD0;       /* violeta claro (detalles, estrellas) */
    --accent-d: #6E3597;     /* violeta de texto sobre claro (precios, eyebrow) */
    --terra: #7C3FAE;        /* PRINCIPAL: botones, cabecera, CTA */
    --terra-d: #5E2C86;
    --border: #EBE3F2;
}

/* Hero con destellos violeta */
.hero {
    background:
        radial-gradient(900px 500px at 15% -10%, rgba(124,63,174,.20), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(154,92,208,.16), transparent 55%),
        linear-gradient(180deg, #f7effd 0%, var(--cream) 100%);
}
.hero-eyebrow { background: rgba(124,63,174,.14); }
.hero-cta .btn { box-shadow: 0 10px 24px rgba(124,63,174,.30); }
.seccion-head h2::after { background: linear-gradient(90deg, var(--accent), var(--terra)); }

/* Iconos de beneficios en lila */
.benio-ic { background: linear-gradient(135deg, #efe2fb, #e3d2f5); }

/* Sobre (home) con degradado lila */
.sobre-home { background: linear-gradient(180deg, var(--cream), #f4eafc); }

/* CTA final en violeta profundo */
.cta-band { background: radial-gradient(700px 400px at 80% 0%, rgba(154,92,208,.30), transparent 60%), linear-gradient(135deg, #4A2A6E, #2A1640); }

/* Estrellas de opiniones en violeta */
.opinion-estrellas { color: var(--accent); }

/* Pie en violeta muy oscuro */
.site-footer { background: #221033; }
.footer-col a { color: #cdb3ec; }

/* Carrito (cabecera): el botón principal en violeta oscuro */
.nav-carrito { background: var(--terra); }
.nav-carrito:hover { background: var(--terra-d); }

/* ===================== Bloque 5: cuentas de cliente ===================== */
.site-page-angosta { max-width: 480px; }
.cuenta-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.cuenta-cab h1 { margin: 0; }
.mis-pedidos { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }
.pedido-fila { display: grid; grid-template-columns: auto 1fr auto auto; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1.1rem; color: var(--ink); }
.pedido-fila:hover { text-decoration: none; box-shadow: var(--sh-md); transform: translateY(-2px); }
.pedido-id { font-family: var(--serif); font-weight: 700; color: var(--terra); }
.pedido-fecha { color: var(--muted); }
.pedido-total { font-family: var(--serif); font-weight: 700; color: var(--accent-d); }
.pedido-est { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #efe6f7; color: var(--terra-d); }
.est-nuevo { background: #efe6f7; color: var(--terra-d); }
.est-en_preparacion { background: #fdf1d8; color: #8a6516; }
.est-listo, .est-entregado { background: #e4f5e9; color: #2c6b3d; }
.est-cancelado { background: #f1eef2; color: #888; }

/* Botón "Mi pedido": que el nº no salte al renglón de abajo */
.nav-carrito { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.badge-cart { line-height: 1.2; }

/* Enlaces del menú en una sola línea (ej. "Sobre la panadería") */
.site-nav-link { white-space: nowrap; }

/* Secciones dentro de una página (texto / carrusel) */
.pagina-seccion { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.pagina-seccion h2 { font-size: 1.6rem; margin: 0 0 .8rem; }
.pagina-seccion .carrusel { margin-top: .5rem; }

/* ===================== Contacto + botón flotante WhatsApp ===================== */
.contacto-grid { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; align-items: start; margin-top: 1.5rem; }
.contacto-info { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--sh-sm); }
.ci-item { display: flex; gap: .7rem; margin-bottom: 1.1rem; }
.ci-ic { font-size: 1.3rem; line-height: 1.4; }
.contacto-info .btn-whatsapp { display: inline-block; margin-top: .3rem; }
.contacto-grid .site-form { margin-top: 0; }

/* Botón flotante de WhatsApp (siempre visible) */
.wa-flotante { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 50; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(37,211,102,.45); transition: transform .15s; }
.wa-flotante:hover { transform: scale(1.08); text-decoration: none; }
.wa-ic { font-size: 1.7rem; }
@media (max-width: 760px) { .contacto-grid { grid-template-columns: 1fr; } .wa-flotante { width: 3.2rem; height: 3.2rem; right: .9rem; bottom: .9rem; } }
