:root{
  --rojo:#E6323A; --rojo-osc:#C22128; --azul:#2C2A56; --azul-2:#3B3875;
  --verde:#7CB342; --crema:#FFF8EF; --crema-2:#FCEEDA; --blanco:#FFFFFF;
  --texto:#2B2733; --texto-suave:#6B6577; --borde:#EBE2D2;
  --radio:18px; --sombra:0 10px 28px rgba(44,42,86,.12);
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth; scroll-padding-top:78px}
body{margin:0; font-family:'Work Sans',system-ui,sans-serif; color:var(--texto); background:var(--crema); overflow-x:hidden}
h1,h2,h3,.brand-font{font-family:'Baloo 2',system-ui,sans-serif}
img{max-width:100%; display:block}
a{color:inherit}
.wrap{max-width:1120px; margin:0 auto; padding:0 24px}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){--crema:#211F33; --crema-2:#282544; --texto:#F2EFEA; --texto-suave:#C6C1D6; --borde:#3A3760; --blanco:#2A2745}
}
:root[data-theme="dark"]{--crema:#211F33; --crema-2:#282544; --texto:#F2EFEA; --texto-suave:#C6C1D6; --borde:#3A3760; --blanco:#2A2745}

/* ---------- NAV ---------- */
header.nav{position:sticky; top:0; z-index:50; background:var(--azul); padding:env(safe-area-inset-top,0px) 0 0}
.nav-inner{max-width:1120px; margin:0 auto; padding:10px 24px; display:flex; align-items:center; justify-content:space-between; gap:16px}
.nav-logo{display:flex; align-items:center; gap:10px}
.nav-logo img{height:52px; width:auto; background:transparent; border-radius:0; padding:0}
.nav-links{display:flex; gap:26px; list-style:none; margin:0; padding:0}
.nav-links a{color:#EDEBFA; text-decoration:none; font-weight:600; font-size:.95rem; padding:6px 2px; border-bottom:2px solid transparent}
.nav-links a:hover{border-bottom-color:var(--rojo)}
.nav-cta{background:var(--rojo); color:#fff; padding:10px 18px; border-radius:30px; font-weight:600; text-decoration:none; font-size:.9rem; white-space:nowrap}
.burger{display:none; background:none; border:0; color:#fff; font-size:1.6rem; cursor:pointer}
@media (max-width:860px){
  .nav-links{position:fixed; top:60px; left:0; right:0; background:var(--azul-2); flex-direction:column; gap:0; max-height:0; overflow:hidden; transition:max-height .25s ease}
  .nav-links.open{max-height:400px; padding:8px 0}
  .nav-links a{padding:12px 24px; display:block; border-bottom:1px solid rgba(255,255,255,.08)}
  .burger{display:block}
  .nav-cta{display:none}
}

/* ---------- HERO ---------- */
.hero{position:relative; background:linear-gradient(135deg,rgba(44,42,86,.93),rgba(59,56,117,.90) 45%,rgba(194,33,40,.88)), url('images/fondo-inicio.jpg') center/cover no-repeat; color:#fff; padding:64px 0 84px; overflow:hidden}
.hero::after{content:"";position:absolute; right:-120px; top:-120px; width:420px; height:420px; border-radius:50%; background:radial-gradient(circle,rgba(255,255,255,.10),transparent 70%)}
.hero-inner{position:relative; display:grid; grid-template-columns:1.1fr .9fr; gap:40px; align-items:center}
.hero-badge{display:inline-block; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25); padding:6px 14px; border-radius:30px; font-size:.85rem; font-weight:600; margin-bottom:18px}
.hero h1{font-size:clamp(2.1rem,4.2vw,3.1rem); line-height:1.12; margin:0 0 18px; font-weight:700}
.hero h1 span{color:#FFD166}
.hero p{font-size:1.08rem; color:#DDD9F2; max-width:46ch; margin:0 0 30px}
.hero-ctas{display:flex; gap:14px; flex-wrap:wrap}
.btn{display:inline-flex; align-items:center; gap:8px; padding:15px 26px; border-radius:14px; font-weight:600; text-decoration:none; font-size:1rem; border:2px solid transparent; cursor:pointer; transition:transform .15s ease}
.btn:active{transform:scale(.97)}
.btn-primary{background:var(--rojo); color:#fff}
.btn-ghost{background:transparent; color:#fff; border-color:rgba(255,255,255,.5)}
.btn-dark{background:var(--azul); color:#fff}
.btn-whatsapp{background:#25D366; color:#0b3d24}
.hero-stamp{justify-self:center; width:420px; max-width:100%; height:auto; border-radius:0; background:transparent; display:flex; align-items:center; justify-content:center; padding:0; box-shadow:none}
.hero-stamp img{width:100%; height:auto; filter:drop-shadow(0 18px 36px rgba(0,0,0,.35))}
@media (max-width:860px){.hero-inner{grid-template-columns:1fr}.hero-stamp{width:280px; height:auto; order:-1; margin:0 auto}}
/* ---------- SECTIONS ---------- */
section{padding:74px 0}
.section-head{max-width:640px; margin:0 0 40px}
.eyebrow{color:var(--rojo); font-weight:700; font-size:.9rem; margin:0 0 8px}
.section-head h2{font-size:clamp(1.7rem,3vw,2.3rem); margin:0 0 12px}
.section-head p{color:var(--texto-suave); font-size:1.05rem; line-height:1.6; margin:0}
.alt{background:var(--crema-2)}

/* Quienes somos */
.about-grid{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center}
.about-text p{font-size:1.05rem; line-height:1.75; color:var(--texto)}
.about-photos{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.about-photos img{width:100%; height:100%; object-fit:cover; border-radius:16px; display:block}
.about-photos img.tall{grid-row:span 2}
/* Lema (Quiénes somos) */
.lema{list-style:none; margin:26px 0 0; padding:20px 22px; display:flex; flex-direction:column; gap:12px; background:var(--crema-2); border-left:5px solid var(--rojo); border-radius:0 14px 14px 0; font-family:'Baloo 2',system-ui,sans-serif; color:var(--texto)}
.lema li{display:flex; align-items:center; gap:12px; font-size:1.15rem; line-height:1.35; font-weight:600}
.lema li::before{content:""; flex:0 0 auto; width:9px; height:9px; border-radius:50%; background:var(--rojo)}
.lema b{color:var(--rojo); font-size:1.35em; font-weight:800; line-height:1}
.lema em{font-style:normal; color:var(--azul-2)}
:root[data-theme="dark"] .lema em{color:#FFD166}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .lema em{color:#FFD166}}

@media (max-width:860px){.about-grid{grid-template-columns:1fr}.about-photos{order:-1}}

/* Categorias */
.cat-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:16px}
.cat-card{background:#FFFFFF; border-radius:16px; padding:22px 16px; text-align:center; border:1px solid var(--borde)}
.cat-icon{width:54px; height:54px; margin:0 auto 12px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.6rem; background:#FCEEDA; overflow:hidden}
.cat-icon img{width:100%; height:100%; object-fit:cover}
.cat-card h3{margin:0; font-size:1rem; font-family:'Work Sans'; font-weight:600; color:#2B2733}
@media (max-width:860px){.cat-grid{grid-template-columns:repeat(2,1fr)}}

/* Marcas */
.brands-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:18px; align-items:stretch}
.brand-card{background:#FFFFFF; border-radius:18px; border:1px solid var(--borde); padding:14px; display:flex; align-items:center; justify-content:center; height:220px}
.brand-card img{max-height:190px; width:auto; max-width:100%}
.vinos-card{margin-top:26px; background:linear-gradient(120deg,rgba(44,42,86,.90),rgba(59,56,117,.85)), url('images/fondo-vinos-i-mas.jpg') center 25%/cover no-repeat; border-radius:20px; padding:32px; display:grid; grid-template-columns:auto 1fr auto; gap:26px; align-items:center; color:#fff}
.vinos-card .seal{height:110px; width:110px; background:#FFFFFF; border-radius:16px; padding:12px; display:flex; align-items:center; justify-content:center; flex:0 0 auto}
.vinos-card .seal img{height:100%; width:100%; object-fit:contain}
.vinos-card h3{margin:0 0 6px; font-size:1.4rem}
.vinos-card p{margin:0; color:#D8D5EE; max-width:46ch}
@media (max-width:860px){.brand-card{height:180px}.brand-card img{max-height:150px}.brands-grid{grid-template-columns:repeat(2,1fr)}.vinos-card{grid-template-columns:1fr; text-align:center; justify-items:center}}

/* Sucursales */
#sucursales{background:linear-gradient(180deg,#F6F8FC,#EEF2F9); color:#1B2A57}
.suc-head{text-align:center; margin:0 auto 42px; max-width:760px}
.suc-head h2{display:flex; align-items:center; justify-content:center; gap:14px; margin:0 0 10px; font-size:clamp(1.55rem,3.6vw,2.6rem); font-weight:500; color:#14245A; line-height:1.1}
.suc-head h2 svg{width:.95em; height:.95em; fill:var(--rojo); flex:0 0 auto}
.suc-head h2 .t{white-space:nowrap}
.suc-head h2 strong{font-weight:800}
.suc-head h2::before,.suc-head h2::after{content:""; flex:1 1 20px; max-width:110px; height:3px; border-radius:3px; background:linear-gradient(90deg,transparent,var(--rojo))}
.suc-head h2::after{background:linear-gradient(270deg,transparent,var(--rojo))}
.suc-head p{margin:0; color:#5A6580; font-size:1.05rem}

.branch-grid{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px}
.branch-card{container-type:inline-size; background:#fff; border:1px solid #E6EBF4; border-radius:20px; overflow:hidden; display:flex; flex-direction:column; box-shadow:0 14px 34px rgba(20,36,90,.13); color:#1B2A57}
.branch-top{position:relative; height:176px; overflow:hidden; color:#fff; background:linear-gradient(110deg,#0B2360 0%,#123A8C 55%,#1A4FB0 100%)}
.branch-photo{position:absolute; top:0; right:0; width:60%; height:100%; object-fit:cover; clip-path:polygon(16% 0,100% 0,100% 100%,0 100%)}
.branch-title{position:relative; z-index:2; width:48%; padding:18px 0 0 20px}
.branch-badge{display:flex; align-items:center; gap:9px; margin-bottom:12px; font-size:.95rem; font-weight:600; line-height:1.15}
.branch-badge .bi{width:34px; height:34px; border:1.6px solid rgba(255,255,255,.85); border-radius:50%; display:flex; align-items:center; justify-content:center; flex:0 0 auto}
.branch-badge .bi svg{width:18px; height:18px}
.branch-title h3{margin:0; color:#fff; font-size:clamp(1.3rem,2.1vw,1.65rem); line-height:1.1; font-weight:800}
.branch-wave{position:absolute; left:0; bottom:-1px; width:100%; height:38px; z-index:1}
.w-red{fill:#E6323A}
.w-white{fill:#fff}

.branch-info{display:flex; flex-direction:column; flex:1; padding:4px 22px 6px}
.branch-row{display:flex; align-items:flex-start; gap:12px; padding:14px 0; font-size:.97rem; line-height:1.45; font-weight:500; color:#1B2A57}
.branch-row + .branch-row{border-top:1px solid #E6EBF4; font-size:.92rem; color:#3A4766}
.ri{flex:0 0 auto; width:22px; height:22px; margin-top:1px}
.ri-pin{color:#E6323A}
.ri-clock{color:#1B3A8C}

.branch-actions{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:8px 16px 20px}
.btn-s{display:flex; align-items:center; justify-content:center; gap:5px; width:100%; min-width:0; height:46px; padding:0 4px; border:1.5px solid transparent; border-radius:13px; font:700 .85rem/1 'Work Sans',system-ui,sans-serif; text-decoration:none; white-space:nowrap; overflow:hidden; cursor:pointer; transition:transform .15s ease}
.btn-s svg{width:16px; height:16px; flex:0 0 auto}
.btn-s:hover{transform:translateY(-1px)}
.a-map{background:#fff; color:#14245A; border-color:#C9D2E3}
.a-wa{background:linear-gradient(180deg,#2FB84A,#1E9A38); color:#fff; box-shadow:0 4px 10px rgba(30,154,56,.3)}
.a-tel{background:linear-gradient(180deg,#143A86,#0B2360); color:#fff; box-shadow:0 4px 10px rgba(11,35,96,.3)}

.call-wrap{position:relative; min-width:0}
@container (max-width:420px){.btn-s{font-size:.82rem; gap:0}.btn-s svg{display:none}}
@supports not (container-type:inline-size){.btn-s svg{display:none}}
.call-menu{position:absolute; right:0; bottom:calc(100% + 8px); z-index:5; min-width:210px; display:flex; flex-direction:column; padding:6px; background:#fff; border:1px solid #D5DCEA; border-radius:14px; box-shadow:0 14px 34px rgba(20,36,90,.22)}
.call-menu[hidden]{display:none}
.call-menu a{display:flex; align-items:center; gap:9px; padding:11px 12px; border-radius:10px; color:#14245A; font-size:.95rem; font-weight:600; text-decoration:none}
.call-menu a:hover{background:#EEF2F9}
.call-menu a svg{width:17px; height:17px; color:#1B3A8C; flex:0 0 auto}
@media (max-width:900px){.branch-grid{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.branch-grid{grid-template-columns:1fr}}

/* Contacto */
.contact-grid{display:grid; grid-template-columns:.9fr 1.1fr; gap:44px}
.contact-cards{display:flex; flex-direction:column; gap:14px}
.ccard{background:#FFFFFF; border:1px solid var(--borde); border-radius:14px; padding:18px 20px; display:flex; align-items:center; gap:14px}
.ccard .ic{width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex:0 0 auto}
.ccard .ic svg{width:24px; height:24px}
.ccard a{font-weight:600; text-decoration:none; color:#2C2A56}
.ccard div small{display:block; color:#6B6577; font-size:.78rem}
form{background:var(--blanco); border:1px solid var(--borde); border-radius:18px; padding:28px; display:flex; flex-direction:column; gap:14px}
form label{font-size:.85rem; font-weight:600; color:var(--texto-suave); display:block; margin-bottom:6px}
form input, form select, form textarea{width:100%; padding:12px 14px; border-radius:10px; border:1px solid var(--borde); font-family:inherit; font-size:.95rem; background:var(--crema); color:var(--texto)}
form textarea{resize:vertical; min-height:90px}
.form-row2{display:grid; grid-template-columns:1fr 1fr; gap:14px}
@media (max-width:860px){.contact-grid{grid-template-columns:1fr}.form-row2{grid-template-columns:1fr}}

/* Footer */
footer{background:var(--azul); color:#D9D6EE; padding:50px 0 30px}
.foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:34px}
.foot-logo{height:80px; width:auto; background:transparent; border-radius:0; padding:0; display:inline-block; margin-bottom:12px}
footer h4{color:#fff; font-size:.95rem; margin:0 0 12px}
footer ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px}
footer a{color:#C9C6E8; text-decoration:none; font-size:.9rem}
footer a:hover{color:#fff}
.foot-bottom{border-top:1px solid rgba(255,255,255,.14); margin-top:36px; padding-top:20px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:.8rem; color:#A9A5CC}
@media (max-width:760px){.foot-grid{grid-template-columns:1fr 1fr}}

.toast{position:fixed; bottom:22px; left:50%; transform:translateX(-50%) translateY(120%); background:var(--azul); color:#fff; padding:14px 22px; border-radius:12px; font-size:.9rem; font-weight:600; box-shadow:0 10px 30px rgba(0,0,0,.25); transition:transform .3s ease; z-index:100}
.toast.show{transform:translateX(-50%) translateY(0)}
