/* Fábrica de Persianas y Decoración - Sitio one-page */
/* Paleta (del logo): rojo #f00708, negro #0f0e0f, blanco #f1f1f1 */
:root{
  --bg:#ffffff;
  --text:#121212;
  --muted:#5b5b5b;
  --card:#ffffff;
  --line:rgba(15,14,15,.12);
  --accent:#f00708;
  --accent2:#0f0e0f;
  --shadow: 0 18px 45px rgba(15,14,15,.12);
  --radius: 22px;
  --container: 1160px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}

img{max-width:100%; height:auto; display:block}
a{color:inherit; text-decoration:none}
a:hover{opacity:.92}

.container{max-width:var(--container); margin:0 auto; padding:0 18px}
.skip{position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden}
.skip:focus{left:18px; top:18px; width:auto; height:auto; padding:10px 14px; background:#fff; border:1px solid var(--line); border-radius:12px; z-index:9999}

.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.82);
  border-bottom:1px solid var(--line);
}
.header__inner{display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 0}

.brand{display:flex; align-items:center; gap:12px; min-width:220px}
.brand__logo{
  width:44px; height:44px; border-radius:14px;
  object-fit:cover;
  border:1px solid var(--line);
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}
.brand__text{display:flex; flex-direction:column; line-height:1.05}
.brand__name{font-weight:800; letter-spacing:.2px}
.brand__tag{font-weight:600; color:var(--muted); font-size:.92rem}

.nav{display:flex; align-items:center; gap:10px}
.nav__toggle{
  display:none;
  width:44px; height:44px; border-radius:14px;
  background:#fff; border:1px solid var(--line);
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
  cursor:pointer;
}
.nav__toggle span{display:block; height:2px; margin:7px 10px; background:var(--accent2); border-radius:99px}
.nav__list{list-style:none; display:flex; align-items:center; gap:14px; padding:0; margin:0}
.nav__list a{padding:10px 12px; border-radius:14px; font-weight:600; color:#2a2a2a}
.nav__list a:hover{background:rgba(240,7,8,.08); color:#1a1a1a}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:16px;
  background:var(--accent);
  color:#fff;
  font-weight:800;
  border:1px solid rgba(0,0,0,0);
  box-shadow: 0 14px 30px rgba(240,7,8,.22);
  cursor:pointer;
}
.btn:hover{transform: translateY(-1px)}
.btn:active{transform: translateY(0)}
.btn--ghost{
  background:transparent;
  color:var(--accent2);
  border:1px solid var(--line);
  box-shadow:none;
}
.btn--small{padding:10px 12px; border-radius:14px}

.hero{position:relative}
.hero__slider{position:relative; min-height:74vh; overflow:hidden}
.hero__slide{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  transform:scale(1.02);
  opacity:0;
  transition:opacity .7s ease;
  filter: saturate(1.05) contrast(1.02);
}
.hero__slide.is-active{opacity:1}
.hero__overlay{
  position:relative;
  min-height:74vh;
  display:flex;
  align-items:flex-end;
  padding: 84px 0 48px;
  background: linear-gradient(to top, rgba(15,14,15,.72), rgba(15,14,15,.20) 45%, rgba(15,14,15,.05));
}
.hero__content{color:#fff}
.pill{
  display:inline-flex;
  background: rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  padding:8px 12px;
  border-radius:999px;
  font-weight:700;
  font-size:.92rem;
}
.hero h1{
  margin:14px 0 10px;
  font-size: clamp(2.0rem, 4vw, 3.2rem);
  line-height:1.05;
  letter-spacing:-.6px;
}
.accent{color: #fff; background: linear-gradient(90deg, #fff, rgba(255,255,255,.75)); -webkit-background-clip:text; background-clip:text}
.hero__lead{max-width:740px; margin:0 0 18px; color: rgba(255,255,255,.92); font-size:1.05rem}
.hero__cta{display:flex; flex-wrap:wrap; gap:12px; margin: 18px 0 18px}

.hero__meta{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; margin-top:18px}
.metaCard{
  background: rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  border-radius:18px;
  padding:12px 14px;
}
.metaCard__k{font-size:.82rem; color: rgba(255,255,255,.72); font-weight:700}
.metaCard__v{display:inline-block; margin-top:3px; font-weight:800}

.hero__dots{
  position:absolute; left:50%; bottom:16px; transform:translateX(-50%);
  display:flex; gap:8px; z-index:5;
}
.dot{
  width:10px; height:10px; border-radius:99px;
  border:1px solid rgba(255,255,255,.65);
  background: rgba(255,255,255,.18);
  cursor:pointer;
}
.dot.is-active{background:#fff}

.section{padding:64px 0}
.section--alt{background: #fafafa; border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
.section__head{display:flex; flex-direction:column; gap:6px; margin-bottom:22px}
.section__head h2{margin:0; font-size: clamp(1.55rem, 2.5vw, 2.1rem); letter-spacing:-.4px}
.section__head p{margin:0; color:var(--muted)}
.section__head--left{align-items:flex-start}

.cards{display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:14px}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:18px 18px 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,.05);
}
.card h3{margin:0 0 10px}
.list{margin:0; padding-left:18px; color:#2f2f2f}
.list li{margin:6px 0}

.banner{
  margin-top:14px;
  background: linear-gradient(120deg, rgba(240,7,8,.10), rgba(15,14,15,.04));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.banner__text h3{margin:0 0 6px}
.banner__text p{margin:0; color:var(--muted)}
.banner__cta{display:flex; gap:10px; flex-wrap:wrap}

.gallery{
  display:grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  gap:10px;
}
.gallery__item{
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  border-radius: 18px;
  overflow:hidden;
  position:relative;
  outline:none;
  border:1px solid var(--line);
}
.gallery__item img{
  width:100%;
  height: 170px;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery__item:hover img{transform: scale(1.05)}

.lightbox{
  position:fixed; inset:0; z-index:80;
  background: rgba(0,0,0,.72);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.lightbox.is-open{display:flex}
.lightbox img{
  max-width:min(1100px, 95vw);
  max-height: 85vh;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.22);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  background:#111;
}
.lightbox__close{
  position:absolute; top:14px; right:14px;
  width:46px; height:46px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.10);
  color:#fff;
  font-size:28px;
  cursor:pointer;
}

.video{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  background:#000;
}
.video iframe{width:100%; aspect-ratio: 16/9; display:block}

.grid2{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:18px;
  align-items:start;
}
.contactCards{display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; margin-bottom:14px}
.contactCard{
  background:#fff;
  border:1px solid var(--line);
  border-radius: 18px;
  padding:12px 14px;
}
.contactCard__k{font-size:.82rem; color:var(--muted); font-weight:700}
.contactCard__v{margin-top:4px; font-weight:800; color:#1b1b1b}
.muted{color:var(--muted); font-size:.96rem}

.form{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: 0 12px 28px rgba(0,0,0,.05);
}
.form h3{margin:0 0 6px}
.form label{display:block; font-weight:700; margin:10px 0 8px}
input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  font: inherit;
  background:#fff;
  outline:none;
}
input:focus, select:focus, textarea:focus{border-color: rgba(240,7,8,.55); box-shadow: 0 0 0 4px rgba(240,7,8,.10)}
.form__row{display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px}

.map iframe{
  width:100%;
  min-height: 360px;
  border:0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.social{
  margin-top:14px;
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:16px;
}
.social__embed{
  margin:10px 0 12px;
  border-radius: 18px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
}
.social__embed iframe{width:100%; max-width:100%}

.wa{
  position:fixed;
  right:16px;
  bottom:16px;
  width:58px;
  height:58px;
  border-radius:20px;
  background: #25D366;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  z-index:90;
}
.wa svg{width:30px; height:30px; fill:#fff}

.footer{
  padding:22px 0;
  background:#0f0e0f;
  color:#fff;
}
.footer__inner{display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap}
.footer__links{display:flex; gap:14px; flex-wrap:wrap}
.footer__links a{color:rgba(255,255,255,.92); font-weight:700}
.footer__credit{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.82);
}
.footer__credit a{color:#fff; text-decoration:underline}

@media (max-width: 980px){
  .cards{grid-template-columns: 1fr}
  .hero__meta{grid-template-columns: 1fr; }
  .grid2{grid-template-columns: 1fr}
  .contactCards{grid-template-columns: 1fr}
  .gallery{grid-template-columns: repeat(2, minmax(0,1fr))}
  .gallery__item img{height:180px}
  .nav__toggle{display:inline-flex; flex-direction:column; justify-content:center}
  .nav__list{
    position:fixed; right:14px; top:70px;
    background:#fff;
    border:1px solid var(--line);
    border-radius: 18px;
    padding:10px;
    box-shadow: var(--shadow);
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    width:min(320px, calc(100vw - 28px));
    display:none;
  }
  .nav__list.is-open{display:flex}
  .nav__list a{padding:12px 12px}
}
