/*
Theme Name: La Pinsa V2.3
Theme URI: https://netronica.net/
Author: Netronica.net
Description: Tema de expansión y lanzamiento para La Pinsa di Vesuvio: sucursal activa en Carretera a El Salvador y próxima apertura en Xela.
Version: 2.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: lapinsa-v2
*/

:root{
  --verde:#083d2a;
  --verde-2:#0b5a3b;
  --verde-3:#127a4b;
  --crema:#f6efe3;
  --crema-2:#fffaf2;
  --rojo:#d9251c;
  --tinta:#183026;
  --muted:#6e756f;
  --line:rgba(8,61,42,.14);
  --shadow:0 24px 70px rgba(16,35,27,.16);
  --radius:28px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--crema-2);color:var(--tinta);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.6}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.lp-shell{width:min(1180px,calc(100% - 36px));margin-inline:auto}
.lp-topbar{position:sticky;top:0;z-index:50;background:rgba(255,250,242,.92);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}
.lp-nav{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:14px 0}
.lp-brand{display:flex;align-items:center;gap:13px;font-family:Georgia,serif;font-weight:800;font-size:20px}
.lp-brand img{width:54px;height:54px;object-fit:contain;border-radius:15px}
.lp-menu{display:flex;align-items:center;gap:22px;font-size:14px;font-weight:700}
.lp-menu a:hover{color:var(--rojo)}
.lp-pill{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 18px;border-radius:999px;background:var(--verde);color:white;font-weight:800;border:1px solid rgba(255,255,255,.12);transition:.2s ease}
.lp-pill:hover{transform:translateY(-1px);background:var(--verde-2)}
.lp-pill.red{background:var(--rojo)}
.lp-hero{padding:34px 0 50px;background:radial-gradient(circle at 20% 10%,rgba(18,122,75,.10),transparent 35%),var(--crema-2)}
.lp-hero-grid{display:grid;grid-template-columns:1.05fr .95fr;min-height:680px;border-radius:34px;overflow:hidden;background:var(--verde);box-shadow:var(--shadow)}
.lp-hero-copy{padding:62px 58px;color:white;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}
.lp-hero-copy:after{content:"";position:absolute;width:340px;height:340px;border-radius:50%;background:rgba(217,37,28,.15);right:-170px;bottom:-140px}
.lp-kicker{display:flex;align-items:center;gap:12px;text-transform:uppercase;letter-spacing:.16em;font-size:12px;font-weight:900;color:#f4d9cf}
.lp-kicker:before{content:"";width:34px;height:3px;background:var(--rojo);border-radius:20px}
.lp-hero h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(50px,6vw,84px);line-height:.95;letter-spacing:-.045em;margin:22px 0 22px}
.lp-hero h1 em{font-style:normal;color:#ffb8aa}
.lp-hero p{font-size:18px;max-width:620px;color:rgba(255,255,255,.84);margin:0 0 28px}
.lp-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.lp-ghost{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:999px;border:1px solid rgba(255,255,255,.32);font-weight:800;color:white}
.lp-hero-media{position:relative;min-height:580px;background:#111}
.lp-hero-media img{width:100%;height:100%;object-fit:cover}
.lp-hero-media:after{content:"";position:absolute;inset:auto 0 0 0;height:45%;background:linear-gradient(transparent,rgba(0,0,0,.68))}
.lp-hero-badge{position:absolute;z-index:2;top:24px;right:24px;background:var(--crema-2);color:var(--verde);font-weight:900;font-size:12px;letter-spacing:.08em;padding:9px 15px;border-radius:999px}
.lp-hero-card{position:absolute;z-index:3;left:26px;right:26px;bottom:26px;padding:22px 24px;border-radius:22px;background:rgba(7,45,31,.88);color:white;border:1px solid rgba(255,255,255,.2);backdrop-filter:blur(10px)}
.lp-hero-card strong{font-family:Georgia,serif;font-size:24px;display:block;margin-bottom:4px}
.lp-section{padding:82px 0}
.lp-section.alt{background:#f0e7d9}
.lp-section.dark{background:var(--verde);color:white}
.lp-section-head{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:32px}
.lp-eyebrow{text-transform:uppercase;letter-spacing:.16em;font-weight:900;color:var(--rojo);font-size:12px}
.lp-section h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(34px,4vw,56px);line-height:1.05;margin:8px 0 0;letter-spacing:-.03em}
.lp-section-head p{max-width:520px;color:var(--muted);margin:0}
.dark .lp-section-head p{color:rgba(255,255,255,.72)}
.lp-branches{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.lp-branch{background:white;border-radius:var(--radius);padding:30px;border:1px solid var(--line);box-shadow:0 14px 44px rgba(8,61,42,.07);position:relative;overflow:hidden}
.lp-branch.open:before,.lp-branch.soon:before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:var(--verde-3)}
.lp-branch.soon:before{background:var(--rojo)}
.lp-status{display:inline-flex;align-items:center;gap:8px;font-weight:900;font-size:12px;text-transform:uppercase;letter-spacing:.1em;padding:8px 12px;border-radius:999px;background:#e8f5ec;color:var(--verde-2)}
.lp-status.soon{background:#fff0ed;color:#b51d15}
.lp-status i{width:8px;height:8px;background:currentColor;border-radius:50%;display:inline-block}
.lp-branch h3{font-family:Georgia,serif;font-size:32px;margin:18px 0 8px}
.lp-branch p{color:var(--muted);margin:0 0 20px}
.lp-branch-actions{display:flex;flex-wrap:wrap;gap:10px}
.lp-btn-light{display:inline-flex;align-items:center;justify-content:center;padding:11px 16px;border-radius:12px;border:1px solid var(--line);font-weight:800;background:#fff}
.lp-count-wrap{display:grid;grid-template-columns:.85fr 1.15fr;gap:28px;align-items:center}
.lp-count-card{border-radius:32px;padding:34px;background:linear-gradient(145deg,#0b5036,#062d20);box-shadow:var(--shadow)}
.lp-countdown{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:22px}
.lp-time{padding:18px 10px;border-radius:18px;background:rgba(255,255,255,.08);text-align:center;border:1px solid rgba(255,255,255,.12)}
.lp-time strong{font-size:34px;display:block;line-height:1}
.lp-time span{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:rgba(255,255,255,.65)}
.lp-story{display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:center}
.lp-story-media{border-radius:30px;overflow:hidden;box-shadow:var(--shadow)}
.lp-story-media img{aspect-ratio:1/1;object-fit:cover}
.lp-story-copy p{color:var(--muted);font-size:17px}
.lp-gallery{display:grid;grid-template-columns:repeat(12,1fr);grid-auto-rows:170px;gap:14px}
.lp-gallery figure{margin:0;border-radius:22px;overflow:hidden;position:relative;background:#ddd}
.lp-gallery img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.lp-gallery figure:hover img{transform:scale(1.04)}
.lp-gallery figure:nth-child(1){grid-column:span 7;grid-row:span 2}
.lp-gallery figure:nth-child(2){grid-column:span 5;grid-row:span 2}
.lp-gallery figure:nth-child(3){grid-column:span 4;grid-row:span 2}
.lp-gallery figure:nth-child(4){grid-column:span 4;grid-row:span 2}
.lp-gallery figure:nth-child(5){grid-column:span 4;grid-row:span 2}
.lp-cta{background:linear-gradient(115deg,var(--rojo),#a61510);color:white;border-radius:34px;padding:42px;display:flex;justify-content:space-between;gap:30px;align-items:center;box-shadow:var(--shadow)}
.lp-cta h2{margin:0 0 8px;font-size:clamp(34px,4vw,52px)}
.lp-cta p{margin:0;color:rgba(255,255,255,.82)}
.lp-footer{background:#042c1f;color:rgba(255,255,255,.72);padding:32px 0}
.lp-footer-row{display:flex;justify-content:space-between;gap:20px;align-items:center;flex-wrap:wrap}
.lp-socials{display:flex;gap:10px;flex-wrap:wrap}
.lp-socials a{border:1px solid rgba(255,255,255,.2);padding:8px 12px;border-radius:999px;font-size:13px;font-weight:800}
.lp-wa{position:fixed;right:20px;bottom:20px;z-index:60;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#25D366;color:white;box-shadow:0 14px 34px rgba(0,0,0,.25);font-size:26px;font-weight:900}
.lp-mobile-toggle{display:none;background:none;border:0;font-size:24px;color:var(--verde)}
@media(max-width:900px){
 .lp-menu{display:none}.lp-mobile-toggle{display:block}
 .lp-hero-grid,.lp-count-wrap,.lp-story,.lp-branches{grid-template-columns:1fr}
 .lp-hero-copy{padding:46px 30px}.lp-hero-media{min-height:520px}
 .lp-section{padding:62px 0}.lp-section-head{align-items:start;flex-direction:column}
 .lp-gallery{grid-template-columns:1fr 1fr;grid-auto-rows:260px}.lp-gallery figure,.lp-gallery figure:nth-child(n){grid-column:span 1;grid-row:span 1}
 .lp-gallery figure:nth-child(1){grid-column:span 2}.lp-cta{align-items:flex-start;flex-direction:column}
}
@media(max-width:600px){
 .lp-shell{width:min(100% - 24px,1180px)}.lp-hero{padding-top:18px}.lp-hero-grid{border-radius:24px}.lp-hero-copy{padding:38px 24px}.lp-hero-media{min-height:430px}
 .lp-countdown{grid-template-columns:1fr 1fr}.lp-gallery{grid-template-columns:1fr;grid-auto-rows:330px}.lp-gallery figure:nth-child(1){grid-column:span 1}
 .lp-cta{padding:30px 24px}.lp-brand span{display:none}
}

/* V2.2 - Selector de WhatsApp y videos */
button.lp-pill{font:inherit;cursor:pointer}
.lp-videos{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.lp-videos-1{grid-template-columns:minmax(0,820px);justify-content:center}
.lp-videos-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.lp-video-card{background:#071c14;border-radius:26px;overflow:hidden;box-shadow:var(--shadow);border:1px solid var(--line)}
.lp-video-card video{display:block;width:100%;aspect-ratio:16/9;background:#000;object-fit:contain}
.lp-wa-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;visibility:hidden;opacity:0;transition:opacity .2s ease,visibility .2s ease}
.lp-wa-modal.is-open{visibility:visible;opacity:1}
.lp-wa-backdrop{position:absolute;inset:0;background:rgba(2,25,17,.72);backdrop-filter:blur(5px)}
.lp-wa-dialog{position:relative;z-index:2;width:min(520px,calc(100% - 28px));background:var(--crema-2);border-radius:28px;padding:34px;box-shadow:0 30px 100px rgba(0,0,0,.35)}
.lp-wa-dialog h2{font-family:Georgia,"Times New Roman",serif;font-size:34px;line-height:1.05;margin:8px 38px 10px 0;color:var(--verde)}
.lp-wa-dialog p{margin:0 0 22px;color:var(--muted)}
.lp-wa-close{position:absolute;right:18px;top:16px;width:40px;height:40px;border:0;border-radius:50%;background:#f1e7da;color:var(--verde);font-size:28px;line-height:1;cursor:pointer}
.lp-wa-options{display:grid;gap:12px}
.lp-wa-option{display:flex;flex-direction:column;gap:2px;padding:18px 20px;border-radius:18px;background:white;border:1px solid var(--line);transition:.2s ease}
.lp-wa-option:hover,.lp-wa-option:focus{transform:translateY(-1px);border-color:rgba(11,90,59,.38);box-shadow:0 12px 26px rgba(8,61,42,.10);outline:none}
.lp-wa-option strong{font-size:18px;color:var(--verde)}
.lp-wa-option span{font-size:13px;color:var(--muted)}
.lp-modal-open{overflow:hidden}
@media(max-width:900px){.lp-videos,.lp-videos-2{grid-template-columns:1fr}}
@media(max-width:600px){.lp-wa-dialog{padding:28px 20px}.lp-wa-dialog h2{font-size:29px}.lp-video-card{border-radius:20px}}


/* =========================================================
   V2.3 - Menú responsive + galería promocional sin recortes
   ========================================================= */
.lp-nav{position:relative}
.lp-desktop-wa{white-space:nowrap}
.lp-mobile-toggle{
  display:none;
  width:46px;height:46px;padding:0;border:1px solid var(--line);
  border-radius:14px;background:#fff;color:var(--verde);cursor:pointer;
  align-items:center;justify-content:center;flex-direction:column;gap:5px;
  box-shadow:0 7px 22px rgba(8,61,42,.08);
}
.lp-mobile-toggle span{display:block;width:22px;height:2px;border-radius:4px;background:currentColor;transition:transform .25s ease,opacity .2s ease}
.lp-mobile-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.lp-mobile-toggle.is-open span:nth-child(2){opacity:0}
.lp-mobile-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.lp-mobile-menu{
  display:none;position:absolute;top:calc(100% + 8px);left:0;right:0;
  background:rgba(255,250,242,.985);border:1px solid var(--line);border-radius:24px;
  padding:12px;box-shadow:0 24px 70px rgba(8,61,42,.22);backdrop-filter:blur(18px);
}
.lp-mobile-menu.is-open{display:block;animation:lpMenuIn .22s ease both}
@keyframes lpMenuIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.lp-mobile-menu a,.lp-mobile-menu button{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:15px 16px;border-radius:15px;font:inherit;font-weight:850;color:var(--verde);
  border:0;background:transparent;text-align:left;cursor:pointer;
}
.lp-mobile-menu a:hover,.lp-mobile-menu a:focus,.lp-mobile-menu button:hover,.lp-mobile-menu button:focus{
  background:#f0e7d9;outline:none;color:var(--rojo)
}
.lp-mobile-menu .lp-mobile-wa{margin-top:7px;background:var(--verde);color:#fff;justify-content:center}
.lp-mobile-menu .lp-mobile-wa:hover,.lp-mobile-menu .lp-mobile-wa:focus{background:var(--verde-2);color:#fff}
.lp-menu-open{overflow:hidden}

/* Artes promocionales: conservar proporción y texto completo */
.lp-gallery{
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-auto-rows:auto;
  gap:18px;
}
.lp-gallery figure,.lp-gallery figure:nth-child(n){
  grid-column:auto;grid-row:auto;margin:0;border-radius:24px;overflow:hidden;
  position:relative;background:#f3eadf;border:1px solid rgba(8,61,42,.10);
  box-shadow:0 12px 34px rgba(8,61,42,.08);padding:10px;
  display:flex;align-items:center;justify-content:center;min-height:350px;
}
.lp-gallery figure:nth-child(1){grid-column:span 2;min-height:470px}
.lp-gallery img{
  width:100%;height:100%;max-height:560px;object-fit:contain;object-position:center;
  border-radius:17px;transition:transform .35s ease,filter .35s ease;cursor:zoom-in;
}
.lp-gallery figure:hover img{transform:scale(1.015);filter:brightness(1.02)}

/* Lightbox de galería */
.lp-lightbox{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;visibility:hidden;opacity:0;transition:.2s ease;padding:24px}
.lp-lightbox.is-open{visibility:visible;opacity:1}
.lp-lightbox-backdrop{position:absolute;inset:0;background:rgba(2,20,14,.88);backdrop-filter:blur(6px)}
.lp-lightbox-inner{position:relative;z-index:2;width:min(1100px,96vw);max-height:92vh;display:grid;place-items:center}
.lp-lightbox-img{display:block;max-width:100%;max-height:88vh;width:auto;height:auto;object-fit:contain;border-radius:20px;box-shadow:0 30px 90px rgba(0,0,0,.48);background:#f6efe3}
.lp-lightbox-close{position:absolute;right:-10px;top:-12px;width:46px;height:46px;border:0;border-radius:50%;background:#fff;color:var(--verde);font-size:30px;line-height:1;cursor:pointer;box-shadow:0 10px 30px rgba(0,0,0,.28)}
.lp-lightbox-open{overflow:hidden}

@media(max-width:900px){
  .lp-menu,.lp-desktop-wa{display:none!important}
  .lp-mobile-toggle{display:flex}
  .lp-nav{gap:12px}
  .lp-brand{min-width:0}
  .lp-brand span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .lp-gallery{grid-template-columns:1fr 1fr;grid-auto-rows:auto}
  .lp-gallery figure,.lp-gallery figure:nth-child(n){min-height:290px}
  .lp-gallery figure:nth-child(1){grid-column:span 2;min-height:400px}
}
@media(max-width:600px){
  .lp-topbar{backdrop-filter:blur(12px)}
  .lp-nav{padding:10px 0}
  .lp-brand img{width:48px;height:48px}
  .lp-brand span{display:block;font-size:16px;max-width:190px}
  .lp-mobile-menu{position:fixed;top:76px;left:12px;right:12px;max-height:calc(100vh - 92px);overflow:auto}
  .lp-gallery{grid-template-columns:1fr;gap:16px}
  .lp-gallery figure,.lp-gallery figure:nth-child(n),.lp-gallery figure:nth-child(1){grid-column:auto;min-height:auto;padding:8px}
  .lp-gallery img{width:100%;height:auto;max-height:none;object-fit:contain}
  .lp-lightbox{padding:12px}
  .lp-lightbox-close{right:4px;top:4px}
}
