:root{
  --ink:#2a2320; --ink-soft:#4a403a; --paper:#faf6f0; --cream:#f4ede3; --beige:#efe6da; --beige-2:#e4d6c4;
  --line:#e6dccd; --red:#c4202a; --red-dark:#a01820; --rose:#b17178;
  --gray:#7d7066; --white:#ffffff; --success:#4a6b52;
  --serif:'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  --display:'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --radius:14px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0; background:var(--paper); color:var(--ink); font-family:var(--serif); font-size:17px; line-height:1.55; -webkit-font-smoothing:antialiased;}
h1,h2,h3,h4{font-family:var(--display); margin:0; color:var(--ink); font-weight:600; letter-spacing:0; line-height:1.15;}
a{color:inherit;} button{font-family:inherit; cursor:pointer;} img{max-width:100%; display:block;}
input, select, textarea{font-family:var(--serif);}
.eyebrow{font-family:var(--serif); font-weight:500; text-transform:uppercase; letter-spacing:.28em; font-size:.72rem; color:var(--gray);}
.wrap{max-width:1180px; margin:0 auto; padding:0 20px;}
:focus-visible{outline:2px solid var(--red); outline-offset:2px;}
.visually-hidden{position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;}
.arrow{display:inline-block; transition:transform .2s ease;}
a:hover .arrow, button:hover .arrow{transform:translateX(3px);}

/* ============ HEADER ============ */
header{position:sticky; top:0; z-index:500; background:var(--paper); border-bottom:1px solid var(--line);}
.topbar{display:grid; grid-template-columns:48px 1fr 48px; align-items:center; padding:10px 16px; max-width:1180px; margin:0 auto;}
.topbar-left{display:flex; align-items:center;}
.brand{justify-self:center; display:flex; align-items:center; text-decoration:none;}
/* recorta el logo circular para mostrar solo la palabra, como en la maqueta */
.brand-logo{display:block; width:150px; height:54px; overflow:hidden; position:relative;}
.brand-logo img{position:absolute; width:154px; max-width:none; top:-45px; left:-2px; mix-blend-mode:multiply;}
.topbar-actions{display:flex; justify-content:flex-end;}
.icon-btn{background:none; border:none; width:40px; height:40px; display:flex; align-items:center; justify-content:center; position:relative; color:var(--ink); flex-shrink:0; padding:0; border-radius:50%;}
.icon-btn:hover{background:var(--beige);}
.icon-btn svg{display:block;}
.cart-count{position:absolute; top:2px; right:0; background:var(--red); color:#fff; font-family:var(--serif); font-size:.66rem; font-weight:600; min-width:17px; height:17px; border-radius:50%; display:flex; align-items:center; justify-content:center; border:1.5px solid var(--paper);}
.back-toggle{display:none;}
body.has-back .back-toggle{display:flex;}
body.has-back .menu-toggle{display:none;}

.mobilenav{display:none; flex-direction:column; background:var(--paper); border-top:1px solid var(--line);}
.mobilenav.show{display:flex;}
.mobilenav a{padding:16px 24px; text-decoration:none; color:var(--ink); font-size:.82rem; text-transform:uppercase; letter-spacing:.24em; border-bottom:1px solid var(--line); text-align:center;}
.mobilenav a.active{color:var(--red);}

main#app{min-height:60vh;}

/* ============ BOTONES ============ */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; font-family:var(--serif); font-size:1.02rem; font-weight:500; letter-spacing:.01em; padding:13px 30px; border:1px solid var(--red); background:var(--red); color:#fff; text-decoration:none; border-radius:999px; box-shadow:0 6px 16px -8px rgba(196,32,42,.55); transition:background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;}
.btn:hover{background:var(--red-dark); border-color:var(--red-dark);}
.btn:active{transform:scale(.98);}
.btn.outline{background:rgba(255,255,255,.55); color:var(--ink); border-color:var(--ink-soft); box-shadow:none;}
.btn.outline:hover{background:var(--ink); color:var(--paper); border-color:var(--ink);}
.btn.small{padding:10px 22px; font-size:.92rem;}
.btn.full{width:100%;}
.btn:disabled{opacity:.45; cursor:not-allowed; box-shadow:none;}
.back-link{display:inline-flex; align-items:center; gap:6px; font-size:.95rem; color:var(--gray); margin-bottom:22px; background:none; border:none; padding:0; text-decoration:none;}
.back-link:hover{color:var(--ink);}

/* ============ TÍTULOS DE SECCIÓN ============ */
.page-head{margin-bottom:18px;}
.page-head h1{font-size:clamp(2rem,6vw,2.6rem); font-weight:600;}
.page-head p{margin:4px 0 0; color:var(--ink-soft); font-size:1.05rem;}
.section-head{display:flex; align-items:baseline; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:18px;}
.section-head h2{font-size:clamp(1.5rem,4.4vw,1.9rem); font-weight:600;}
.section-head .count{font-size:.9rem; color:var(--gray);}
.section-head a.link{text-decoration:none; color:var(--red); font-size:.95rem;}
.divider{height:1px; background:var(--line); margin:30px 0 26px;}
.ornament{width:56px; height:1px; background:var(--beige-2); margin:28px auto;}

/* ============ HOME / HERO ============ */
.hero{position:relative; min-height:calc(100svh - 71px); max-height:860px; display:flex; flex-direction:column; justify-content:flex-end; overflow:hidden; background:var(--cream);}
.hero-media{position:absolute; inset:0;}
.hero-media img{width:100%; height:100%; object-fit:cover; object-position:center top;}
.hero-media::after{content:""; position:absolute; inset:0; background:linear-gradient(0deg, var(--paper) 0%, rgba(250,246,240,.94) 30%, rgba(250,246,240,.55) 48%, rgba(250,246,240,0) 66%);}
.hero-copy{position:relative; z-index:1; text-align:center; padding:0 24px 40px; max-width:520px; margin:0 auto; width:100%;}
.hero-copy h1{font-size:clamp(2.3rem,9vw,3.2rem); font-weight:600; line-height:1.08; margin-bottom:12px;}
.hero-copy .lede{font-size:1.15rem; color:var(--ink-soft); margin:0 auto 24px; max-width:26ch; line-height:1.4;}
.hero-actions{display:flex; flex-direction:column; gap:12px; max-width:300px; margin:0 auto;}
.hero-actions .btn{width:100%;}

.feature-strip{padding:26px 0 30px; border-bottom:1px solid var(--line); background:var(--paper);}
.feature-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; max-width:560px;}
.feature-item{display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; color:var(--ink-soft);}
.feature-item svg{width:30px; height:30px;}
.feature-item span{font-size:.68rem; letter-spacing:.16em; line-height:1.5; text-transform:uppercase; color:var(--ink-soft);}

.featured{padding:44px 0 20px;}
.about-teaser{padding:20px 0 50px; text-align:center;}
.about-teaser .ornament{margin-top:10px;}
.about-teaser p{margin:0 auto 24px; color:var(--ink-soft); max-width:40ch; font-size:1.2rem; font-style:italic; line-height:1.5;}

/* ============ CATÁLOGO ============ */
.catalog{padding:28px 0 60px;}
.chips{display:flex; gap:8px; flex-wrap:wrap; margin:0 0 24px;}
.chip{font-family:var(--serif); font-size:.95rem; border:1px solid transparent; padding:6px 18px; background:var(--beige); border-radius:999px; color:var(--ink); transition:background .15s ease, color .15s ease;}
.chip:hover{border-color:var(--beige-2);}
.chip.active{background:var(--red); color:#fff;}
.cat-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:22px 14px;}
.cat-tile{text-decoration:none; display:block;}
.cat-thumb{aspect-ratio:1/1; overflow:hidden; border-radius:10px; background:var(--beige); margin-bottom:10px;}
.cat-thumb img{width:100%; height:100%; object-fit:cover; transition:transform .5s ease;}
.cat-tile:hover .cat-thumb img{transform:scale(1.04);}
.cat-tile h3{font-family:var(--serif); font-size:1.05rem; font-weight:500;}
.cat-tile .more{font-size:.85rem; color:var(--gray);}

/* ============ TARJETAS DE PRODUCTO ============ */
.grid{display:grid; grid-template-columns:repeat(2,1fr); gap:24px 14px;}
.card{position:relative; cursor:pointer;}
.card .thumb{aspect-ratio:4/5; overflow:hidden; background:var(--beige); position:relative; border-radius:10px;}
.card .thumb img{width:100%; height:100%; object-fit:cover; transition:transform .5s ease;}
.card:hover .thumb img{transform:scale(1.04);}
.heart-btn{position:absolute; top:10px; right:10px; width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,.92); border:none; display:flex; align-items:center; justify-content:center; color:var(--ink); z-index:2; box-shadow:0 1px 4px rgba(0,0,0,.06);}
.heart-btn.sel{color:var(--red);}
.heart-btn.sel svg{fill:currentColor;}
.tag-label{position:absolute; top:10px; left:10px; background:var(--paper); color:var(--ink); font-family:var(--serif); font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; padding:3px 10px; border-radius:999px; z-index:2;}
.tag-label.oferta{background:var(--red); color:#fff;}
.tag-label.out-of-stock{top:auto; bottom:10px; background:var(--ink); color:var(--paper);}
.card-body{padding:10px 2px 0;}
.card-body h3{font-family:var(--serif); font-size:1.02rem; font-weight:500; line-height:1.3; margin-bottom:2px;}
.card-body .price{font-size:1.02rem; color:var(--ink);}
.empty-state{border:1px dashed var(--beige-2); border-radius:var(--radius); padding:44px 24px; text-align:center; color:var(--gray);}
.empty-state a{color:var(--red);}

/* ============ PRODUCTO ============ */
.product-page{padding:16px 0 60px;}
.product-layout{display:grid; grid-template-columns:1fr; gap:22px; align-items:flex-start;}
.product-photo-wrap{position:relative;}
.product-photo{overflow:hidden; aspect-ratio:1/1; background:var(--beige); position:relative; border-radius:10px;}
.product-photo img, .product-photo video{width:100%; height:100%; object-fit:cover;}
.product-photo-wrap .heart-btn{top:12px; right:12px; width:34px; height:34px;}
.thumb-row{display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:8px;}
.thumb-btn{aspect-ratio:1/1; width:100%; padding:0; border:1.5px solid transparent; background:var(--beige); cursor:pointer; overflow:hidden; position:relative; border-radius:8px;}
.thumb-btn.sel{border-color:var(--ink-soft);}
.thumb-btn img, .thumb-btn video{width:100%; height:100%; object-fit:cover;}
.thumb-video-icon{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:.9rem; background:rgba(0,0,0,.3); z-index:1;}
.product-info h1{font-size:clamp(1.9rem,6vw,2.5rem); font-weight:600; margin-bottom:4px;}
.product-info .price{font-size:1.3rem; color:var(--ink); margin-bottom:12px;}
.product-info .desc{color:var(--ink-soft); margin:0 0 22px; font-size:1rem; line-height:1.5;}
.mini-badges{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:24px;}
.mini-badge{display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; font-size:.92rem; color:var(--ink-soft); line-height:1.25;}
.mini-badge-icon{width:52px; height:52px; border-radius:50%; background:var(--beige); display:flex; align-items:center; justify-content:center; color:var(--ink-soft);}
.mini-badge-icon svg{width:24px; height:24px;}
.picker-label{font-size:1rem; color:var(--ink); margin-bottom:10px; display:block;}
.color-row{display:flex; gap:12px; flex-wrap:wrap; margin-bottom:20px;}
.color-dot{width:34px; height:34px; border-radius:50%; border:3px solid var(--paper); box-shadow:0 0 0 1px var(--line); cursor:pointer; padding:0;}
.color-dot.sel{box-shadow:0 0 0 1.5px var(--ink-soft);}
.sizes{display:grid; grid-template-columns:repeat(auto-fill, minmax(62px,1fr)); gap:10px; margin-bottom:24px;}
.size-btn{font-family:var(--serif); font-size:1rem; border:1px solid var(--beige-2); background:var(--white); padding:8px 6px; color:var(--ink); border-radius:6px;}
.size-btn:hover{border-color:var(--ink-soft);}
.size-btn.sel{background:var(--ink); border-color:var(--ink); color:var(--paper);}
.product-actions{display:flex; flex-direction:column; gap:10px;}
.qty-picker{display:flex; align-items:center; gap:14px; margin-bottom:24px;}
.qty-picker button{width:32px; height:32px; border:1px solid var(--line); border-radius:50%; background:var(--white); font-size:1.05rem;}
.related{margin-top:54px;}

/* ============ LA MARCA ============ */
.about-page{padding:0 0 50px;}
.about-hero{aspect-ratio:16/10; max-height:460px; overflow:hidden; background:var(--beige);}
.about-hero img, .about-photo img{width:100%; height:100%; object-fit:cover;}
.about-body{padding-top:28px; max-width:640px;}
.about-body h1{font-size:clamp(1.9rem,6vw,2.5rem); font-weight:600; line-height:1.12;}
.about-text{color:var(--ink-soft); margin:14px 0 0; font-size:1.05rem; line-height:1.5;}
.about-badges{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:30px 0 0;}
.about-badge{display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; font-size:.9rem; color:var(--ink-soft); line-height:1.3;}
.about-badge-icon{width:58px; height:58px; border-radius:50%; background:var(--beige); display:flex; align-items:center; justify-content:center; color:var(--ink-soft);}
.about-badge-icon svg{width:24px; height:24px;}
.about-location{text-align:center; margin-bottom:24px;}
.about-location .lbl{display:inline-flex; align-items:center; gap:8px; font-size:.95rem; color:var(--ink-soft);}
.about-location .pin{color:var(--red); display:inline-flex;}
.about-location .pin svg{width:20px; height:20px;}
.about-location .addr{font-family:var(--display); font-size:1.5rem; font-weight:600; margin-top:4px;}
.about-location .hours{font-size:.8rem; letter-spacing:.14em; text-transform:uppercase; color:var(--gray);}
.about-photo{aspect-ratio:16/10; max-height:460px; overflow:hidden; background:var(--beige);}
.insta-btn{display:flex; align-items:center; justify-content:center; gap:10px; max-width:420px; margin:18px auto 0; background:var(--beige); border-radius:999px; padding:12px 22px; text-decoration:none; color:var(--ink); font-size:1rem;}
.insta-btn svg{width:20px; height:20px;}
.insta-btn .chev{color:var(--red); font-size:1.4rem; line-height:1;}
.insta-btn:hover{background:var(--beige-2);}

/* ============ CONTACTO / CUENTA / CHECKOUT ============ */
.contact-page, .account-page, .checkout-page{padding:32px 0 70px;}
.contact-layout{display:grid; grid-template-columns:1fr 1fr; gap:36px;}
.contact-layout-single{grid-template-columns:1fr; max-width:480px;}
.contact-card, .account-card, .checkout-card{border:1px solid var(--line); background:var(--white); padding:26px; border-radius:var(--radius);}
.contact-card .colhead, .checkout-card .colhead{text-transform:uppercase; font-size:.74rem; letter-spacing:.2em; color:var(--gray); margin-bottom:10px;}
.contact-card p{margin:0 0 20px; line-height:1.6;}
.contact-card a:not(.btn){color:var(--red);}
@media (max-width:860px){ .contact-layout{grid-template-columns:1fr;} }

.account-wrap{max-width:420px; margin:0 auto;}
.tabs{display:flex; border-bottom:1px solid var(--line); margin-bottom:28px;}
.tabs button{flex:1; padding:12px; background:none; font-size:.98rem; border:none; border-bottom:2px solid transparent; color:var(--gray);}
.tabs button.active{border-bottom-color:var(--red); color:var(--ink);}
.field{margin-bottom:16px;}
.field label{display:block; font-size:.76rem; text-transform:uppercase; letter-spacing:.14em; margin-bottom:6px; color:var(--gray);}
.field input, .field select, .field textarea{width:100%; padding:11px 13px; border:1px solid var(--line); background:var(--white); font-size:1rem; border-radius:8px; color:var(--ink);}
.field textarea{min-height:90px;}
.field input:focus, .field select:focus, .field textarea:focus{outline:none; border-color:var(--ink-soft);}
.form-msg{font-size:.9rem; color:var(--red); min-height:16px; margin-bottom:8px;}
.acct-summary{text-align:center;}
.acct-summary .bigdot{width:60px; height:60px; border-radius:50%; background:var(--red); color:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--display); font-weight:600; font-size:1.6rem; margin:0 auto 16px;}
.role-badge{display:inline-block; font-size:.72rem; text-transform:uppercase; letter-spacing:.14em; border:1px solid var(--red); color:var(--red); padding:3px 12px; margin-top:8px; border-radius:999px;}

.checkout-layout{display:grid; grid-template-columns:1.1fr .9fr; gap:32px; align-items:flex-start;}
.radio-option{display:flex; align-items:flex-start; gap:10px; border:1px solid var(--line); padding:14px; margin-bottom:10px; cursor:pointer; border-radius:10px;}
.radio-option.sel{border-color:var(--ink-soft); background:var(--cream);}
.radio-option input{margin-top:5px; accent-color:var(--red);}
.radio-option .lbl-title{font-weight:500; font-size:1.02rem;}
.radio-option .lbl-sub{font-size:.88rem; color:var(--gray); margin-top:2px;}
.order-summary-line{display:flex; justify-content:space-between; gap:10px; font-size:.95rem; padding:9px 0; border-bottom:1px solid var(--line);}
.order-total{display:flex; justify-content:space-between; font-weight:600; font-size:1.2rem; padding-top:16px;}
@media (max-width:900px){ .checkout-layout{grid-template-columns:1fr;} }

/* ============ NEWSLETTER + FOOTER ============ */
.newsletter{padding:46px 0; text-align:center; background:var(--cream); border-top:1px solid var(--line);}
.newsletter-inner{max-width:520px;}
.newsletter h3{font-size:1.7rem; margin:8px 0 4px;}
.newsletter p{color:var(--ink-soft); margin:0 0 20px;}
.newsletter-form{display:flex; gap:8px; max-width:420px; margin:0 auto; background:var(--white); border:1px solid var(--line); border-radius:999px; padding:5px;}
.newsletter-form input{flex:1; min-width:0; padding:8px 14px; border:none; background:transparent; color:var(--ink); font-size:1rem;}
.newsletter-form input:focus{outline:none;}
.newsletter-form .btn{box-shadow:none;}

footer{padding:36px 0 26px; background:var(--paper); border-top:1px solid var(--line);}
.footer-values{display:grid; grid-template-columns:repeat(4,1fr); gap:10px; max-width:760px; margin:0 auto;}
.fv{display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; color:var(--ink-soft);}
.fv span{font-size:.64rem; letter-spacing:.16em; text-transform:uppercase; line-height:1.5;}
.footer-rule{width:56px; height:1px; background:var(--beige-2); margin:26px auto 18px;}
.footer-sign{text-align:center;}
.fs-name{font-size:.78rem; letter-spacing:.34em; text-transform:uppercase; color:var(--ink-soft);}
.fs-tag{font-size:.7rem; letter-spacing:.28em; text-transform:uppercase; color:var(--gray); margin-top:4px;}
.footer-inner{display:flex; flex-direction:column; align-items:center; gap:4px; margin-top:22px; text-align:center;}
footer p{color:var(--gray); margin:0; font-size:.85rem;}
.bottom{font-size:.82rem; color:var(--gray);}
body.is-admin .newsletter, body.is-admin footer{display:none;}

/* ============ CARRITO ============ */
.overlay{position:fixed; inset:0; background:rgba(42,35,32,.45); z-index:900; opacity:0; pointer-events:none; transition:opacity .2s ease;}
.overlay.show{opacity:1; pointer-events:auto;}
.drawer{position:fixed; top:0; right:0; height:100%; width:min(420px,92vw); background:var(--paper); z-index:901; border-left:1px solid var(--line); transform:translateX(100%); transition:transform .25s ease; display:flex; flex-direction:column;}
.drawer.show{transform:translateX(0);}
.drawer-head{padding:20px 22px 16px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center;}
.drawer-head h3{font-size:1.6rem;}
.drawer-close{background:none; border:none; font-size:1.2rem; line-height:1; color:var(--ink);}
.drawer-items{flex:1; overflow-y:auto; padding:10px 22px;}
.cart-line{display:flex; gap:12px; padding:14px 0; border-bottom:1px solid var(--line);}
.cart-line img{width:64px; height:80px; object-fit:cover; border-radius:8px; background:var(--beige);}
.cart-line .info{flex:1;}
.cart-line .info .nm{font-size:1.02rem;}
.cart-line .info .meta{font-size:.86rem; color:var(--gray); margin:2px 0 8px;}
.qty-row{display:flex; align-items:center; gap:8px;}
.qty-row button{width:26px; height:26px; border:1px solid var(--line); background:var(--white); border-radius:50%; line-height:1;}
.qty-row .rm{border:none; text-decoration:underline; font-size:.85rem; margin-left:auto; color:var(--red); background:none; width:auto;}
.drawer-foot{padding:20px 22px; border-top:1px solid var(--line);}
.total-row{display:flex; justify-content:space-between; font-size:1.2rem; margin-bottom:14px;}
.empty-cart{color:var(--gray); padding:40px 0; text-align:center;}

/* ============ ADMIN ============ */
.admin-topbar{background:var(--ink); color:var(--paper); padding:16px 24px; display:flex; justify-content:space-between; align-items:center; gap:12px;}
.admin-topbar h2{color:var(--paper); font-size:1.4rem;}
.admin-topbar a{color:var(--paper); font-size:.92rem; text-decoration:underline;}
.admin-body{max-width:1000px; margin:0 auto; padding:28px 20px 80px; overflow-x:auto;}
.admin-toolbar{display:flex; justify-content:space-between; align-items:center; margin-bottom:22px; flex-wrap:wrap; gap:12px;}
.admin-toolbar h3{font-size:1.5rem;}
.admin-table{width:100%; border-collapse:collapse; font-size:.95rem;}
.admin-table th{text-align:left; text-transform:uppercase; font-size:.7rem; letter-spacing:.12em; padding:10px 8px; border-bottom:1px solid var(--ink); color:var(--gray); font-weight:500;}
.admin-table td{padding:12px 8px; border-bottom:1px solid var(--line); vertical-align:middle;}
.admin-table img{width:40px; height:52px; object-fit:cover; border-radius:4px;}
.admin-table .stock-zero{color:var(--red);}
.row-actions{display:flex; gap:8px;}
.mini-btn{font-family:var(--serif); font-size:.88rem; border:1px solid var(--line); background:var(--white); padding:7px 14px; color:var(--ink); border-radius:999px;}
.mini-btn:hover{border-color:var(--ink-soft);}
.mini-btn.danger{border-color:var(--red); color:var(--red);}
.mini-btn.danger:hover{background:var(--red); color:#fff;}
.stock-adjust{display:flex; align-items:center; gap:8px;}
.stock-adjust .mini-btn{width:26px; height:26px; padding:0; display:flex; align-items:center; justify-content:center;}
.stock-adjust span{min-width:20px; text-align:center; font-weight:600;}
.stock-adjust .stock-zero{color:var(--red);}
.badge{font-size:.72rem; padding:3px 10px; border:1px solid var(--ink-soft); color:var(--ink); border-radius:999px; white-space:nowrap;}
.badge.off{border-color:var(--line); color:var(--gray);}
.admin-tabs{display:flex; gap:6px; margin-bottom:28px; border-bottom:1px solid var(--line); overflow-x:auto;}
.admin-tabs button{padding:11px 18px; background:none; border:none; font-size:1rem; border-bottom:2px solid transparent; margin-bottom:-1px; color:var(--gray); white-space:nowrap;}
.admin-tabs button.active{border-bottom-color:var(--red); color:var(--ink);}

.form-modal-overlay{position:fixed; inset:0; background:rgba(42,35,32,.5); z-index:1100; display:none; align-items:flex-start; justify-content:center; overflow-y:auto; padding:40px 16px;}
.form-modal-overlay.show{display:flex;}
.form-modal{background:var(--paper); border:1px solid var(--line); max-width:560px; width:100%; padding:28px; border-radius:var(--radius);}
.form-modal h3{font-size:1.7rem; margin-bottom:18px;}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
.checkbox-field{display:flex; align-items:center; gap:8px;}
.checkbox-field input{width:auto; accent-color:var(--red);}
.helptext{font-size:.85rem; color:var(--gray); margin-top:5px;}
.photo-drop{border:1.5px dashed var(--beige-2); border-radius:10px; padding:26px 16px; text-align:center; cursor:pointer; background:var(--white); transition:border-color .15s ease, background .15s ease;}
.photo-drop:hover, .photo-drop.dragover{border-color:var(--red); background:var(--cream);}
.photo-drop span{font-size:.92rem; color:var(--gray);}
.gallery-list{display:flex; flex-direction:column; gap:8px; margin-bottom:10px;}
.gallery-row{display:flex; align-items:center; gap:10px; border:1px solid var(--line); padding:8px; background:var(--white); border-radius:10px;}
.gallery-row img, .gallery-row video{width:52px; height:65px; object-fit:cover; border-radius:6px; flex-shrink:0; background:var(--beige);}
.gallery-row-info{flex:1; display:flex; flex-direction:column; gap:4px; min-width:0;}
.gallery-row-type{font-size:.7rem; text-transform:uppercase; letter-spacing:.12em; color:var(--gray);}
.gallery-row-info input{padding:6px 8px; border:1px solid var(--line); font-size:.95rem; border-radius:6px;}
.stock-grid-table{width:100%; border-collapse:collapse; margin-bottom:6px;}
.stock-grid-table th, .stock-grid-table td{border:1px solid var(--line); padding:6px 8px; text-align:center; font-size:.92rem;}
.stock-grid-table th{background:var(--beige); font-weight:500;}
.stock-grid-table input{width:60px; padding:5px; border:1px solid var(--line); text-align:center; border-radius:4px;}
.form-actions{display:flex; gap:12px; margin-top:22px; justify-content:flex-end;}
.toast{position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(20px); background:var(--ink); color:var(--paper); padding:12px 22px; font-size:.95rem; border-radius:999px; z-index:1300; opacity:0; pointer-events:none; transition:all .25s ease; max-width:calc(100vw - 32px); text-align:center;}
.toast.show{opacity:1; transform:translateX(-50%) translateY(0);}
.unauthorized{border:1px solid var(--red); border-radius:var(--radius); padding:44px 28px; text-align:center; color:var(--red); max-width:480px; margin:60px auto;}
.loading{text-align:center; padding:56px 20px; color:var(--gray);}

/* ============ PANTALLAS GRANDES ============ */
@media (min-width:760px){
  .grid{grid-template-columns:repeat(3,1fr); gap:32px 22px;}
  .cat-grid{grid-template-columns:repeat(4,1fr);}
  .feature-strip .feature-grid{max-width:720px;}
}
@media (min-width:1000px){
  .grid{grid-template-columns:repeat(4,1fr);}
  .topbar{padding:14px 28px;}
  .brand-logo{width:180px; height:66px;}
  .brand-logo img{width:185px; top:-55px; left:-2px;}
  .hero{flex-direction:row; align-items:stretch; min-height:0; height:640px;}
  .hero-media{position:relative; flex:0 0 55%;}
  .hero-media::after{background:linear-gradient(90deg, rgba(250,246,240,0) 70%, var(--paper) 100%);}
  .hero-copy{flex:1; display:flex; flex-direction:column; justify-content:center; text-align:left; padding:0 6% 0 5%; max-width:none; background:var(--paper);}
  .hero-copy h1{font-size:3.6rem;}
  .hero-copy .lede{margin-left:0; font-size:1.25rem;}
  .hero-actions{flex-direction:row; max-width:none; margin:0;}
  .hero-actions .btn{width:auto;}
  .product-page{padding-top:34px;}
  .product-layout{grid-template-columns:1fr 1fr; gap:56px;}
  .product-info{padding-top:10px;}
  .product-actions{max-width:420px;}
  .about-hero, .about-photo{max-width:1140px; margin:0 auto; border-radius:0 0 var(--radius) var(--radius);}
  .about-photo{border-radius:var(--radius); margin-top:6px;}
}
