/* =========================================================
   PUERTAS CORTAFUEGO PERU - Hoja de estilos principal
   Paleta: azul marino #202C52, blanco, dorado
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --navy: #202C52;
  --navy-deep: #12172E;
  --navy-soft: #2E3B69;
  --navy-line: rgba(255,255,255,.12);
  --gold: #C9A227;
  --gold-light: #E8C868;
  --gold-soft: rgba(201,162,39,.15);
  --white: #FFFFFF;
  --ink: #1A2036;
  --gray: #626C82;
  --gray-light: #8891A4;
  --bg-alt: #F4F5FA;
  --bg-alt-2: #ECEEF6;
  --border: #E3E6F0;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(18,23,46,.06);
  --shadow-md: 0 12px 32px rgba(18,23,46,.12);
  --container: 1180px;
  --header-h: 84px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; touch-action: manipulation; }
body{
  margin:0;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  color:var(--ink);
  background:var(--white);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3,h4{
  font-family:'Oswald',sans-serif;
  font-weight:600;
  line-height:1.15;
  margin:0 0 .5em;
  color:var(--navy);
  letter-spacing:.2px;
}
p{ margin:0 0 1em; color:var(--gray); max-width:62ch; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; }

.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
.icon{ width:20px; height:20px; flex-shrink:0; }

.skip-link{
  position:absolute; left:-999px; top:0; background:var(--navy); color:#fff; padding:10px 16px; z-index:999;
}
.skip-link:focus{ left:12px; top:12px; }

/* ===================== BOTONES ===================== */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 26px;
  border-radius:999px;
  font-weight:600;
  font-size:15px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  white-space:nowrap;
}
.btn:active{ transform:scale(.97); }
.btn-primary{ background:var(--gold); color:var(--navy-deep); }
.btn-primary:hover{ background:var(--gold-light); box-shadow:var(--shadow-md); }
.btn-outline{ background:transparent; color:var(--white); border-color:rgba(255,255,255,.5); }
.btn-outline:hover{ background:rgba(255,255,255,.1); }
.btn-outline-navy{ background:transparent; color:var(--navy); border-color:var(--navy); }
.btn-outline-navy:hover{ background:var(--navy); color:#fff; }
.btn-whatsapp{ background:var(--navy); color:#fff; }
.btn-whatsapp:hover{ background:var(--navy-soft); }
.icon-wa{ width:19px; height:19px; }

/* ===================== HEADER ===================== */
.site-header{
  position:sticky; top:0; z-index:60;
  background:var(--navy-deep);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.header-inner{
  display:flex; align-items:center; gap:20px;
  height:var(--header-h);
}
.brand{ display:flex; align-items:center; margin-right:auto; }
.brand-logo{ height:52px; width:auto; }
.brand-text{ font-family:'Oswald',sans-serif; font-weight:600; font-size:20px; color:#fff; }

.nav-desktop ul{ display:flex; gap:6px; }
.nav-desktop a{
  display:block; padding:10px 16px; border-radius:999px;
  font-weight:500; font-size:15px; color:rgba(255,255,255,.8);
  transition:background-color .15s ease, color .15s ease;
}
.nav-desktop a:hover{ background:rgba(255,255,255,.08); color:#fff; }
.nav-desktop a.active{ color:var(--navy-deep); background:var(--gold); font-weight:600; }


.menu-toggle{
  display:none; background:none; border:none; color:#fff; padding:8px; cursor:pointer;
}

/* ===================== MENU MOVIL (panel deslizable) ===================== */
.mobile-menu{
  position:fixed; top:0; right:0; height:100%; width:min(340px,86vw);
  background:var(--navy-deep);
  z-index:120; padding:22px;
  transform:translateX(100%);
  transition:transform .32s cubic-bezier(.4,0,.2,1);
  display:flex; flex-direction:column;
}
.mobile-menu.open{ transform:translateX(0); }
.mobile-menu-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; }
.mobile-menu-mark{ height:40px; width:auto; }
.menu-close{ background:rgba(255,255,255,.08); border:none; color:#fff; padding:8px; border-radius:10px; }
.mobile-menu-list{ display:flex; flex-direction:column; gap:4px; flex:1; }
.mobile-menu-list a{
  display:flex; align-items:center; gap:14px; color:#fff; padding:14px 12px; border-radius:12px;
  font-weight:500; font-size:16px;
}
.mobile-menu-list a .chevron{ margin-left:auto; width:16px; height:16px; opacity:.5; }
.mobile-menu-list a.active,.mobile-menu-list a:hover{ background:rgba(255,255,255,.08); color:var(--gold-light); }
.mobile-menu-cta{ width:100%; justify-content:center; margin-top:12px; }
.mobile-menu-overlay{
  position:fixed; inset:0; background:rgba(10,13,28,.55); z-index:110;
  opacity:0; visibility:hidden; transition:opacity .3s ease;
}
.mobile-menu-overlay.open{ opacity:1; visibility:visible; }

/* ===================== HERO ===================== */
.hero{
  position:relative;
  background:linear-gradient(160deg,var(--navy) 0%,var(--navy-deep) 100%);
  color:#fff;
  overflow:hidden;
  padding:76px 0 96px;
}
.hero::before{
  content:'';
  position:absolute; inset:0;
  background-image:
    radial-gradient(circle at 82% 18%, rgba(201,162,39,.16), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(201,162,39,.10), transparent 40%);
  pointer-events:none;
}
.hero-inner{
  position:relative; z-index:2;
  display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center;
}
.hero-inner-single{ display:block; max-width:680px; }
.hero > .container{ position:relative; z-index:2; }
.hero-title{ color:#fff; font-size:clamp(34px,4.6vw,54px); margin-bottom:20px; }
.hero-subtitle{ color:rgba(255,255,255,.78); font-size:17px; max-width:52ch; margin-bottom:32px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

.hero-visual{ position:relative; display:flex; align-items:center; justify-content:center; min-height:340px; }

/* ---------- Fondo de portada con varias imagenes (solo Inicio) ---------- */
.hero-with-bg{ min-height:560px; display:flex; align-items:center; }
.hero-bg-slides{ position:absolute; inset:0; z-index:0; }
.hero-bg-slide{
  position:absolute; inset:0; background-size:cover; background-position:center;
  opacity:0; transition:opacity 1.4s ease;
}
.hero-bg-slide.active{ opacity:1; }
.hero-bg-overlay{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(160deg,rgba(18,23,46,.88) 0%,rgba(18,23,46,.72) 100%);
}

/* ---------- Fondo de portada con una sola imagen (Nosotros, Contacto) ---------- */
.hero-bg-image{
  position:absolute; inset:0; z-index:0; background-size:cover; background-position:center;
}

/* ===================== SECCIONES GENERALES ===================== */
section{ padding:88px 0; }
.section-alt{ background:var(--bg-alt); }
.section-head{ max-width:640px; margin:0 auto 48px; text-align:center; }
.section-head h2{ font-size:clamp(26px,3vw,36px); }
.section-head p{ margin:0 auto; }
.section-head.left{ text-align:left; margin-left:0; }

/* ===================== LINEAS DE PRODUCTO (home) ===================== */
.product-lines{ display:flex; flex-direction:column; gap:28px; }
.product-line{
  display:grid; grid-template-columns:1fr 1fr; gap:0;
  background:var(--white); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow-sm);
}
.product-line:nth-child(even) .pl-media{ order:2; }
.pl-media{ position:relative; min-height:280px; background:var(--bg-alt-2); }
.pl-media img{ width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.pl-content{ padding:44px; display:flex; flex-direction:column; justify-content:center; }
.pl-tag{ display:inline-flex; align-self:flex-start; background:var(--gold-soft); color:#8a6c14; font-size:13px; font-weight:600; padding:6px 14px; border-radius:999px; margin-bottom:14px; }
.pl-content h3{ font-size:26px; }
.pl-content .btn{ align-self:flex-start; margin-top:8px; }

/* ===================== PLACEHOLDER DE IMAGEN ===================== */
.img-placeholder{
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:8px;
  background:linear-gradient(135deg,var(--bg-alt-2),var(--bg-alt));
  color:var(--gray-light); width:100%; height:100%; min-height:220px;
  border-radius:inherit;
}
.img-placeholder .icon{ width:34px; height:34px; opacity:.6; }
.img-placeholder span{ font-size:13px; }

/* ===================== TARJETAS DE CARACTERISTICAS ===================== */
.features-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:22px;
}
.feature-card{
  background:var(--white); border:1px solid var(--border); border-radius:var(--radius);
  padding:30px 26px; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-align:center;
}
.feature-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:transparent; }
.feature-icon{
  width:52px; height:52px; border-radius:14px;
  background:var(--navy); color:var(--gold-light);
  display:flex; align-items:center; justify-content:center; margin:0 auto 18px;
}
.feature-icon .icon{ width:24px; height:24px; }
.feature-card h3{ font-size:18px; margin-bottom:8px; }
.feature-card p{ font-size:14.5px; margin:0 auto; }

/* ===================== GALERIA ===================== */
/* ---------- Carrusel animado (Productos destacados) ---------- */
.marquee-viewport{ overflow:hidden; }
.marquee-track{
  display:flex; gap:18px; width:max-content;
  animation:marqueeScroll 28s linear infinite;
}
.marquee-viewport:hover .marquee-track{ animation-play-state:paused; }
.marquee-track .gallery-item{ width:260px; aspect-ratio:4/3; flex-shrink:0; }
@keyframes marqueeScroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

.gallery-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.gallery-item{
  position:relative; border-radius:var(--radius-sm); overflow:hidden; aspect-ratio:4/3;
  background:var(--bg-alt-2); border:1px solid var(--border); cursor:pointer;
}
.gallery-item img{ width:100%; height:100%; object-fit:cover; position:absolute; inset:0; transition:transform .4s ease; }
.gallery-item:hover img{ transform:scale(1.06); }
.gallery-expand{
  position:absolute; top:10px; right:10px; width:32px; height:32px; border-radius:50%;
  background:rgba(18,23,46,.55); color:#fff; display:flex; align-items:center; justify-content:center;
  opacity:0; transition:opacity .2s ease;
}
.gallery-item:hover .gallery-expand{ opacity:1; }

/* ---------- Visor de imagen (lightbox) ---------- */
.lightbox{
  position:fixed; inset:0; z-index:200; background:rgba(10,13,28,.92);
  display:flex; align-items:center; justify-content:center; padding:32px;
  opacity:0; visibility:hidden; transition:opacity .25s ease;
}
.lightbox.open{ opacity:1; visibility:visible; }
.lightbox img{ max-width:100%; max-height:90vh; border-radius:8px; box-shadow:0 20px 60px rgba(0,0,0,.5); }
.lightbox-close{
  position:absolute; top:20px; right:20px; width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,.1); border:none; color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.lightbox-close:hover{ background:rgba(255,255,255,.2); }

/* ===================== FICHAS TECNICAS DESCARGABLES ===================== */
.specs-downloads{
  display:flex; flex-direction:column; gap:14px;
  max-width:440px; margin:40px auto 0;
}
.btn-download{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:16px 20px; border:1.5px solid var(--navy); border-radius:10px;
  background:var(--white); color:var(--navy); font-weight:600; font-size:15px;
  transition:background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn-download:hover{ background:var(--bg-alt); box-shadow:var(--shadow-sm); border-color:var(--gold); }
.btn-download .icon{ width:20px; height:20px; color:var(--gold); flex-shrink:0; }

/* ===================== NORMATIVA UL (cortafuego) ===================== */
.norma-block{
  display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;
  background:var(--navy); color:#fff; border-radius:24px; padding:56px;
}
.norma-block h2{ color:#fff; }
.norma-block p{ color:rgba(255,255,255,.78); max-width:none; }
.norma-badges{ display:flex; gap:14px; margin-top:26px; flex-wrap:wrap; }
.norma-badge{
  display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14); border-radius:12px; padding:12px 16px;
}
.norma-badge b{ display:block; font-family:'Oswald',sans-serif; color:var(--gold-light); font-size:17px; }
.norma-badge span{ font-size:12px; color:rgba(255,255,255,.65); }
.norma-visual{ display:flex; align-items:center; justify-content:center; }
.norma-visual .ul-seal{ width:100%; max-width:280px; }

/* ===================== CTA FINAL (a todo el ancho) ===================== */
.cta-full{
  position:relative; overflow:hidden;
  background:linear-gradient(120deg,var(--navy),var(--navy-deep));
  color:#fff; text-align:center; padding:76px 0;
}
.cta-full-bg{ position:absolute; inset:0; background-size:cover; background-position:center; z-index:0; }
.cta-full-overlay{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(120deg, rgba(32,44,82,.90) 0%, rgba(18,23,46,.92) 100%);
}
.cta-full-overlay::after{
  content:''; position:absolute; inset:0;
  background:radial-gradient(circle at 50% 0%, rgba(201,162,39,.18), transparent 55%);
}
.cta-full-content{ position:relative; z-index:2; }
.cta-full-content h2{ color:#fff; }
.cta-full-content p{ color:rgba(255,255,255,.78); max-width:52ch; margin:0 auto 26px; }

/* ===================== NOSOTROS ===================== */
.about-grid{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.mv-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.mv-card{ background:var(--white); border:1px solid var(--border); border-radius:var(--radius); padding:34px; text-align:center; }
.mv-card .feature-icon{ margin:0 auto 16px; }
.mv-card h3{ font-size:20px; }

/* ===================== CONTACTO ===================== */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:flex-start; }
.contact-info-list{ display:flex; flex-direction:column; gap:18px; margin-top:8px; }
.contact-info-item{ display:flex; gap:14px; align-items:flex-start; }
.contact-info-item .icon{ width:22px; height:22px; color:var(--navy); flex-shrink:0; margin-top:2px; }
.contact-info-item b{ display:block; color:var(--navy); font-size:14.5px; }
.contact-info-item span{ font-size:14.5px; color:var(--gray); }

.quote-form{ background:var(--white); border:1px solid var(--border); border-radius:var(--radius); padding:32px; box-shadow:var(--shadow-sm); }
.form-row{ margin-bottom:18px; }
.form-row label{ display:block; font-size:13.5px; font-weight:600; color:var(--navy); margin-bottom:6px; }
.form-row input,.form-row select,.form-row textarea{
  width:100%; padding:12px 14px; border:1px solid var(--border); border-radius:10px;
  font-family:inherit; font-size:14.5px; color:var(--ink); background:#fff;
}
.form-row input:focus,.form-row select:focus,.form-row textarea:focus{
  outline:none; border-color:var(--gold);
}
.quote-form .btn{ width:100%; justify-content:center; }

/* ===================== WHATSAPP FLOTANTE ===================== */
.wa-float{
  position:fixed; right:20px; bottom:20px; z-index:80;
  width:58px; height:58px; border-radius:50%;
  background:var(--navy); color:var(--gold-light);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 26px rgba(18,23,46,.35);
  transition:transform .18s ease;
}
.wa-float:hover{ transform:scale(1.06); }
.icon-wa-float{ width:27px; height:27px; }

/* ===================== FOOTER ===================== */
.site-footer{ background:var(--navy-deep); color:rgba(255,255,255,.75); padding-top:64px; }
.footer-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:40px; padding-bottom:44px; }
.footer-logo{ height:52px; width:auto; margin-bottom:16px; border-radius:6px; }
.footer-brand p{ color:rgba(255,255,255,.6); font-size:14px; }
.footer-social{ display:flex; gap:10px; margin-top:14px; }
.footer-social a{
  width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center; color:#fff;
}
.footer-social .icon{ width:18px; height:18px; }
.footer-col h4{ color:#fff; font-size:15px; margin-bottom:16px; }
.footer-col ul{ display:flex; flex-direction:column; gap:10px; }
.footer-col a{ color:rgba(255,255,255,.65); font-size:14.5px; }
.footer-col a:hover{ color:var(--gold-light); }
.footer-contact li{ display:flex; gap:10px; align-items:flex-start; font-size:14px; }
.footer-contact .icon{ width:18px; height:18px; margin-top:2px; color:var(--gold-light); flex-shrink:0; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.08); padding:20px 0; }
.footer-bottom p{ margin:0; font-size:13px; color:rgba(255,255,255,.45); text-align:center; }

/* ===================== REVEAL ON SCROLL ===================== */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in-view{ opacity:1; transform:none; }

@media (prefers-reduced-motion:reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  .hero-bg-slide{ transition:none; }
  .marquee-track{ animation:none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width:1024px){
  .features-grid{ grid-template-columns:repeat(2,1fr); }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .norma-block{ grid-template-columns:1fr; padding:36px; }
  .norma-visual{ order:-1; }
}

@media (max-width:860px){
  .nav-desktop{ display:none; }
  .menu-toggle{ display:flex; }
  .hero-inner{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; min-height:260px; }
  .product-line{ grid-template-columns:1fr; }
  .product-line:nth-child(even) .pl-media{ order:0; }
  .pl-content{ padding:30px; }
  .about-grid,.contact-grid,.mv-grid{ grid-template-columns:1fr; }
  section{ padding:60px 0; }
  .wa-float{ right:14px; bottom:20px; }
}

@media (max-width:600px){
  .features-grid{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .cta-band,.norma-block{ padding:28px; border-radius:18px; }
  .brand-logo{ height:44px; }
}
