/* ============================================================
   ROSCOGAS WEB · SEGURIDAD GLP V1
   Página independiente /seguridad/
   Mobile-first · preparada conceptualmente para futura APP/PWA
   ============================================================ */


/* ============================================================
   HEADER INTERNO
   ============================================================ */

.home-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.98);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(14px);
}

.home-nav{
  position:relative;
  min-height:68px;
  display:flex;
  align-items:center;
  gap:18px;
}

.home-brand{
  display:flex;
  align-items:center;
  flex:none;
}

.home-brand img{
  display:block;
  width:135px;
  height:auto;
}

.home-links{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  right:0;
  z-index:60;
  padding:12px;
  border:1px solid var(--line);
  border-radius:0 0 18px 18px;
  background:#fff;
  box-shadow:0 20px 45px rgba(8,47,74,.14);
}

.home-links.is-open{
  display:grid;
}

.home-links a{
  display:block;
  padding:12px 14px;
  border-radius:10px;
  color:var(--navy);
  font-size:.9rem;
  font-weight:800;
}

.home-links a:hover,
.home-links a.active{
  color:var(--orange);
  background:#fff7f2;
}

.home-order{
  display:none;
}

.home-menu-toggle{
  width:42px;
  height:42px;
  display:flex;
  flex:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  margin-left:auto;
  padding:9px;
  border:0;
  background:transparent;
  cursor:pointer;
}

.home-menu-toggle span{
  display:block;
  width:24px;
  height:2px;
  border-radius:3px;
  background:var(--navy);
  transition:
    transform .18s ease,
    opacity .18s ease;
}

.home-menu-toggle.is-open span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}

.home-menu-toggle.is-open span:nth-child(2){
  opacity:0;
}

.home-menu-toggle.is-open span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}


/* ============================================================
   HERO
   ============================================================ */

.safety-hero{
  position:relative;
  overflow:hidden;
  padding:34px 0 46px;
  background:
    radial-gradient(
      circle at 82% 12%,
      rgba(244,81,18,.11),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      #f8fbfc 0%,
      #fff 100%
    );
}

.safety-hero::after{
  content:"";
  position:absolute;
  right:-150px;
  bottom:-220px;
  width:430px;
  height:430px;
  border:58px solid rgba(8,47,74,.025);
  border-radius:50%;
  pointer-events:none;
}

.safety-hero-grid{
  position:relative;
  z-index:1;
  display:grid;
  gap:30px;
}

.safety-hero-copy{
  max-width:660px;
}

.safety-hero-copy h1{
  margin:11px 0 18px;
  color:var(--navy);
  font-size:clamp(2.55rem,12vw,3.45rem);
  line-height:.95;
  letter-spacing:-.05em;
}

.safety-hero-copy h1 span{
  display:block;
  color:var(--orange);
}

.safety-hero-lead{
  max-width:620px;
  margin:0;
  color:var(--muted);
  font-size:1rem;
  line-height:1.7;
}

.safety-hero-actions{
  display:grid;
  gap:10px;
  margin-top:26px;
}

.safety-hero-actions .btn{
  width:100%;
}

.safety-hero-note{
  display:grid;
  gap:5px;
  max-width:610px;
  margin-top:24px;
  padding:16px 17px;
  border:1px solid var(--line);
  border-left:4px solid var(--orange);
  border-radius:14px;
  background:#fff;
  box-shadow:0 12px 30px rgba(8,47,74,.055);
}

.safety-hero-note strong{
  color:var(--navy);
  font-size:.92rem;
}

.safety-hero-note span{
  color:var(--muted);
  font-size:.84rem;
  line-height:1.55;
}

.safety-hero-media{
  position:relative;
  overflow:hidden;
  min-height:330px;
  border-radius:24px 8px 24px 8px;
  background:#e8eef1;
  box-shadow:0 22px 50px rgba(8,47,74,.16);
}

.safety-hero-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      180deg,
      transparent 48%,
      rgba(6,35,51,.35) 100%
    );
  pointer-events:none;
}

.safety-hero-media img{
  display:block;
  width:100%;
  height:100%;
  min-height:330px;
  object-fit:cover;
  object-position:center;
}

.safety-hero-badge{
  position:absolute;
  left:16px;
  right:16px;
  bottom:16px;
  z-index:2;
  display:flex;
  align-items:center;
  gap:13px;
  padding:13px 15px;
  border:1px solid rgba(255,255,255,.3);
  border-radius:14px;
  background:rgba(7,40,58,.82);
  backdrop-filter:blur(10px);
  color:#fff;
}

.safety-hero-badge>span{
  display:grid;
  place-items:center;
  flex:0 0 38px;
  width:38px;
  height:38px;
  border-radius:11px;
  background:var(--orange);
  font-size:.74rem;
  font-weight:900;
}

.safety-hero-badge div{
  display:grid;
  gap:2px;
}

.safety-hero-badge strong{
  font-size:.91rem;
}

.safety-hero-badge small{
  color:rgba(255,255,255,.72);
  font-size:.72rem;
}


/* ============================================================
   SECTION HEAD
   ============================================================ */

.safety-section-head{
  display:grid;
  gap:16px;
  margin-bottom:28px;
}

.safety-section-head h2,
.safety-installation-copy h2,
.safety-avoid-title h2,
.safety-faq-intro h2,
.safety-channels-copy h2,
.safety-final h2{
  margin:7px 0 0;
  color:var(--navy);
  font-size:clamp(1.9rem,8vw,2.75rem);
  line-height:1.04;
  letter-spacing:-.038em;
}

.safety-section-head>p{
  margin:0;
  color:var(--muted);
  line-height:1.72;
}


/* ============================================================
   PRINCIPLES
   ============================================================ */

.safety-principles{
  padding:56px 0;
  background:#f6f9fa;
}

.safety-principle-grid{
  display:grid;
  gap:14px;
}

.safety-principle-grid article{
  min-height:205px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 30px rgba(8,47,74,.05);
}

.safety-number{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  margin-bottom:27px;
  border-radius:12px;
  background:rgba(244,81,18,.1);
  color:var(--orange);
  font-size:.73rem;
  font-weight:900;
}

.safety-principle-grid h3{
  margin:0 0 9px;
  color:var(--navy);
  font-size:1.08rem;
}

.safety-principle-grid p{
  margin:0;
  color:var(--muted);
  font-size:.88rem;
  line-height:1.65;
}


/* ============================================================
   INSTALLATION
   ============================================================ */

.safety-installation{
  padding:58px 0;
}

.safety-installation-grid{
  display:grid;
  gap:30px;
  align-items:center;
}

.safety-installation-media{
  min-height:310px;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  padding:22px;
  border-radius:8px 24px 8px 24px;
  background:
    linear-gradient(
      180deg,
      rgba(8,47,74,.08),
      rgba(8,47,74,.94)
    ),
    url("../img/seguridad-roscogas.png")
    center / cover no-repeat;
  box-shadow:0 20px 44px rgba(8,47,74,.14);
}

.safety-installation-mark{
  display:grid;
  gap:14px;
  max-width:400px;
}

.safety-installation-mark span{
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:16px;
  background:rgba(255,255,255,.1);
  color:#ff9a6a;
  font-size:1.55rem;
  font-weight:900;
}

.safety-installation-mark strong{
  color:#fff;
  font-size:1.45rem;
  line-height:1.16;
}

.safety-installation-copy>p{
  margin:16px 0 0;
  color:var(--muted);
  line-height:1.72;
}

.safety-check-list{
  display:grid;
  gap:11px;
  margin-top:25px;
}

.safety-check-list>div{
  display:grid;
  grid-template-columns:30px 1fr;
  gap:11px;
  align-items:start;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
}

.safety-check-list span{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:9px;
  background:rgba(244,81,18,.09);
  color:var(--orange);
  font-weight:900;
}

.safety-check-list p{
  margin:3px 0 0;
  color:var(--navy);
  font-size:.87rem;
  font-weight:700;
  line-height:1.5;
}


/* ============================================================
   CYLINDERS
   ============================================================ */

.safety-cylinders{
  padding:58px 0;
  background:#f6f9fa;
}

.safety-cylinder-grid{
  display:grid;
  gap:14px;
}

.safety-cylinder-grid article{
  padding:23px;
  border-top:4px solid var(--orange);
  border-radius:17px;
  background:#fff;
  box-shadow:0 12px 30px rgba(8,47,74,.055);
}

.safety-card-icon{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  margin-bottom:24px;
  border-radius:13px;
  background:var(--navy);
  color:#fff;
  font-size:1.15rem;
  font-weight:900;
}

.safety-cylinder-grid h3{
  margin:0 0 9px;
  color:var(--navy);
  font-size:1.05rem;
}

.safety-cylinder-grid p{
  margin:0;
  color:var(--muted);
  font-size:.87rem;
  line-height:1.65;
}


/* ============================================================
   EMERGENCY
   ============================================================ */

.safety-emergency{
  padding:58px 0;
  background:#fff;
}

.safety-emergency-panel{
  overflow:hidden;
  display:grid;
  border-radius:24px;
  background:var(--navy);
  box-shadow:0 22px 52px rgba(8,47,74,.16);
}

.safety-emergency-intro{
  padding:28px 21px;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(244,81,18,.25),
      transparent 31%
    ),
    var(--navy);
}

.safety-emergency-kicker{
  color:#ff9b6b;
  font-size:.73rem;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.safety-emergency-intro h2{
  margin:9px 0 14px;
  color:#fff;
  font-size:clamp(2rem,9vw,3rem);
  line-height:1.03;
  letter-spacing:-.04em;
}

.safety-emergency-intro>p{
  margin:0;
  color:rgba(255,255,255,.75);
  line-height:1.7;
}

.safety-emergency-alert{
  display:grid;
  gap:5px;
  margin-top:26px;
  padding:16px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:14px;
  background:rgba(255,255,255,.07);
}

.safety-emergency-alert strong{
  color:#fff;
  font-size:.83rem;
}

.safety-emergency-alert a{
  color:#ff9b6b;
  font-size:1.2rem;
  font-weight:900;
}

.safety-emergency-steps{
  display:grid;
  background:#fff;
}

.safety-emergency-steps article{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:14px;
  padding:20px;
  border-bottom:1px solid var(--line);
}

.safety-emergency-steps article:last-child{
  border-bottom:0;
}

.safety-emergency-steps article>span{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:50%;
  background:rgba(244,81,18,.1);
  color:var(--orange);
  font-size:.72rem;
  font-weight:900;
}

.safety-emergency-steps h3{
  margin:1px 0 6px;
  color:var(--navy);
  font-size:.98rem;
}

.safety-emergency-steps p{
  margin:0;
  color:var(--muted);
  font-size:.86rem;
  line-height:1.6;
}


/* ============================================================
   AVOID
   ============================================================ */

.safety-avoid{
  padding:58px 0;
  background:#f6f9fa;
}

.safety-avoid-grid{
  display:grid;
  gap:28px;
}

.safety-avoid-title>p{
  margin:16px 0 0;
  color:var(--muted);
  line-height:1.72;
}

.safety-avoid-list{
  display:grid;
  gap:11px;
}

.safety-avoid-list article{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:14px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff;
}

.safety-avoid-list article>span{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:11px;
  background:#fff1eb;
  color:var(--orange);
  font-size:1.25rem;
  font-weight:900;
}

.safety-avoid-list strong{
  display:block;
  margin:1px 0 5px;
  color:var(--navy);
  line-height:1.35;
}

.safety-avoid-list p{
  margin:0;
  color:var(--muted);
  font-size:.85rem;
  line-height:1.58;
}


/* ============================================================
   CONTEXT
   ============================================================ */

.safety-context{
  padding:58px 0;
}

.safety-context-grid{
  display:grid;
  gap:14px;
}

.safety-context-card{
  display:block;
  min-height:235px;
  padding:23px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 30px rgba(8,47,74,.045);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.safety-context-card:hover{
  transform:translateY(-2px);
  border-color:rgba(244,81,18,.3);
  box-shadow:0 18px 38px rgba(8,47,74,.08);
}

.safety-context-card>span{
  display:inline-block;
  margin-bottom:28px;
  color:var(--orange);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.safety-context-card h3{
  margin:0 0 9px;
  color:var(--navy);
  font-size:1.13rem;
}

.safety-context-card p{
  margin:0 0 20px;
  color:var(--muted);
  font-size:.87rem;
  line-height:1.63;
}

.safety-context-card strong{
  color:var(--navy);
  font-size:.82rem;
}


/* ============================================================
   FAQ
   ============================================================ */

.safety-faq{
  padding:58px 0;
  background:#f6f9fa;
}

.safety-faq-grid{
  display:grid;
  gap:28px;
}

.safety-faq-intro>p{
  margin:16px 0 0;
  color:var(--muted);
  line-height:1.7;
}

.safety-faq-list{
  display:grid;
  gap:10px;
}

.safety-faq details{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  transition:
    border-color .18s ease,
    box-shadow .18s ease;
}

.safety-faq details[open]{
  border-color:rgba(244,81,18,.35);
  box-shadow:0 12px 28px rgba(8,47,74,.06);
}

.safety-faq summary{
  position:relative;
  padding:18px 48px 18px 18px;
  color:var(--navy);
  font-size:.91rem;
  font-weight:850;
  line-height:1.4;
  list-style:none;
  cursor:pointer;
}

.safety-faq summary::-webkit-details-marker{
  display:none;
}

.safety-faq summary::after{
  content:"+";
  position:absolute;
  right:18px;
  top:50%;
  color:var(--orange);
  font-size:1.35rem;
  font-weight:900;
  transform:translateY(-50%);
}

.safety-faq details[open] summary::after{
  content:"–";
}

.safety-faq details p{
  margin:0;
  padding:0 18px 19px;
  color:var(--muted);
  font-size:.87rem;
  line-height:1.65;
}


/* ============================================================
   CHANNELS
   ============================================================ */

.safety-channels{
  padding:58px 0;
}

.safety-channels-panel{
  display:grid;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:24px;
  background:#fff;
  box-shadow:0 18px 44px rgba(8,47,74,.07);
}

.safety-channels-copy{
  padding:26px 21px;
}

.safety-channels-copy>p{
  margin:15px 0 0;
  color:var(--muted);
  line-height:1.7;
}

.safety-channel-actions{
  display:grid;
  gap:10px;
  margin-top:24px;
}

.safety-channel-actions .btn{
  width:100%;
}

.safety-channel-warning{
  padding:14px 15px;
  border-left:4px solid var(--orange);
  border-radius:10px;
  background:#fff5ef;
  color:var(--navy) !important;
  font-size:.84rem;
  font-weight:750;
}

.safety-official{
  display:grid;
  align-content:center;
  gap:11px;
  padding:26px 21px;
  background:var(--navy);
}

.safety-official>strong{
  color:#fff;
  font-size:1.2rem;
}

.safety-official>p{
  margin:0 0 6px;
  color:rgba(255,255,255,.7);
  font-size:.86rem;
  line-height:1.6;
}

.safety-official a{
  display:block;
  padding:12px 13px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:11px;
  color:#fff;
  font-size:.8rem;
  font-weight:750;
  line-height:1.45;
  transition:
    border-color .18s ease,
    background .18s ease;
}

.safety-official a:hover{
  border-color:rgba(255,255,255,.3);
  background:rgba(255,255,255,.06);
}


/* ============================================================
   FINAL CTA
   ============================================================ */

.safety-final{
  padding:0 0 64px;
}

.safety-final-box{
  display:grid;
  gap:25px;
  padding:28px 21px;
  border-radius:22px;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(244,81,18,.22),
      transparent 28%
    ),
    var(--navy);
  box-shadow:0 20px 46px rgba(8,47,74,.16);
}

.safety-final .section-kicker{
  color:#ff965f;
}

.safety-final h2{
  color:#fff;
}

.safety-final p{
  max-width:660px;
  margin:13px 0 0;
  color:rgba(255,255,255,.74);
  line-height:1.66;
}

.safety-final .btn{
  width:100%;
}


/* ============================================================
   FOOTER
   ============================================================ */

.home-footer{
  padding:34px 0;
  background:#ff570f;
  color:#fff;
}

.home-footer-grid{
  display:grid;
  gap:24px;
}

.home-footer img{
  width:145px;
  height:auto;
  padding:3px;
  border-radius:8px;
  background:#fff;
}

.home-footer-grid>div{
  display:grid;
  gap:6px;
}

.home-footer a{
  color:rgba(255,255,255,.93);
  font-size:.84rem;
}

.home-footer-message{
  font-size:1.45rem;
  font-weight:900;
  font-style:italic;
  line-height:1.12;
}


/* ============================================================
   TOUCH / ACCESSIBILITY
   ============================================================ */

.safety-context-card,
.safety-faq summary,
.home-links a{
  -webkit-tap-highlight-color:transparent;
}

.safety-faq summary:focus-visible,
.home-menu-toggle:focus-visible,
.home-links a:focus-visible,
.safety-context-card:focus-visible,
.safety-official a:focus-visible{
  outline:3px solid rgba(244,81,18,.28);
  outline-offset:3px;
}


/* ============================================================
   TABLET
   ============================================================ */

@media(min-width:641px){

  .safety-hero{
    padding:44px 0 58px;
  }

  .safety-hero-actions{
    display:flex;
    flex-wrap:wrap;
  }

  .safety-hero-actions .btn{
    width:auto;
  }

  .safety-principle-grid,
  .safety-cylinder-grid,
  .safety-context-grid{
    grid-template-columns:1fr 1fr;
  }

  .safety-section-head{
    grid-template-columns:1fr .85fr;
    align-items:end;
    gap:38px;
  }

  .safety-installation-media{
    min-height:390px;
    padding:30px;
  }

  .safety-emergency-intro,
  .safety-channels-copy,
  .safety-official{
    padding:34px 30px;
  }

  .safety-channel-actions{
    display:flex;
    flex-wrap:wrap;
  }

  .safety-channel-actions .btn{
    width:auto;
  }

  .safety-final-box{
    padding:34px 30px;
  }

  .safety-final .btn{
    width:auto;
    justify-self:start;
  }

  .home-footer-grid{
    grid-template-columns:.8fr 1fr 1fr;
    align-items:center;
    gap:34px;
  }

}


/* ============================================================
   DESKTOP
   ============================================================ */

@media(min-width:981px){

  .home-nav{
    min-height:84px;
    gap:28px;
  }

  .home-brand img{
    width:145px;
  }

  .home-links{
    position:static;
    display:flex;
    align-items:center;
    gap:21px;
    margin-left:auto;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }

  .home-links a{
    padding:0;
    border-radius:0;
    background:transparent;
    font-size:.82rem;
  }

  .home-links a:hover,
  .home-links a.active{
    background:transparent;
  }

  .home-menu-toggle{
    display:none;
  }

  .home-order{
    display:inline-flex;
    min-height:44px;
    padding-left:17px;
    padding-right:17px;
    font-size:.8rem;
  }

  .safety-hero{
    padding:54px 0 64px;
  }

  .safety-hero-grid{
    grid-template-columns:minmax(0,1fr) minmax(420px,.92fr);
    align-items:center;
    gap:54px;
  }

  .safety-hero-copy h1{
    font-size:clamp(3rem,4.7vw,4.75rem);
  }

  .safety-hero-media,
  .safety-hero-media img{
    min-height:500px;
  }

  .safety-hero-badge{
    left:22px;
    right:22px;
    bottom:22px;
  }

  .safety-principles,
  .safety-installation,
  .safety-cylinders,
  .safety-emergency,
  .safety-avoid,
  .safety-context,
  .safety-faq,
  .safety-channels{
    padding-top:76px;
    padding-bottom:76px;
  }

  .safety-principle-grid,
  .safety-cylinder-grid,
  .safety-context-grid{
    grid-template-columns:repeat(4,1fr);
  }

  .safety-installation-grid{
    grid-template-columns:.96fr 1.04fr;
    gap:58px;
  }

  .safety-installation-media{
    min-height:460px;
    padding:36px;
  }

  .safety-installation-copy{
    padding-right:20px;
  }

  .safety-emergency-panel{
    grid-template-columns:.9fr 1.1fr;
  }

  .safety-emergency-intro{
    padding:44px;
  }

  .safety-emergency-steps article{
    padding:21px 26px;
  }

  .safety-avoid-grid{
    grid-template-columns:.78fr 1.22fr;
    gap:62px;
    align-items:start;
  }

  .safety-faq-grid{
    grid-template-columns:.75fr 1.25fr;
    gap:64px;
    align-items:start;
  }

  .safety-channels-panel{
    grid-template-columns:1fr .92fr;
  }

  .safety-channels-copy,
  .safety-official{
    padding:42px;
  }

  .safety-final{
    padding-bottom:84px;
  }

  .safety-final-box{
    grid-template-columns:1fr auto;
    align-items:center;
    gap:44px;
    padding:42px;
  }

  .safety-final .btn{
    justify-self:auto;
  }

}


/* ============================================================
   WIDE DESKTOP
   ============================================================ */

@media(min-width:1180px){

  .home-links{
    gap:24px;
  }

  .home-links a{
    font-size:.86rem;
  }

  .home-order{
    padding-left:20px;
    padding-right:20px;
    font-size:.84rem;
  }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media(max-width:420px){

  .safety-hero-copy h1{
    font-size:clamp(2.35rem,11.5vw,3rem);
  }

  .safety-hero-media,
  .safety-hero-media img{
    min-height:290px;
  }

  .safety-hero-badge{
    left:12px;
    right:12px;
    bottom:12px;
  }

  .safety-emergency-intro,
  .safety-channels-copy,
  .safety-official,
  .safety-final-box{
    padding-left:18px;
    padding-right:18px;
  }

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media(prefers-reduced-motion:reduce){

  *,
  *::before,
  *::after{
    scroll-behavior:auto !important;
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
  }

}