/* ============================================
   Pinturas Blancomerengue — hoja de estilos
   ============================================ */

:root{
  --purple-900:#3d1a56;
  --purple-700:#5b2a7a;
  --purple-600:#6f3593;
  --purple-100:#f1e9f6;
  --orange-600:#e8722c;
  --orange-500:#f2903f;
  --ink:#2b2430;
  --ink-soft:#5c5563;
  --bg:#faf8fb;
  --card:#ffffff;
  --border:#e8e1ee;
  --success:#2f9e58;
  --radius:14px;
  --shadow:0 10px 30px rgba(61,26,86,0.10);
  --shadow-sm:0 4px 14px rgba(61,26,86,0.08);
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
h1,h2,h3,h4{line-height:1.25;margin:0 0 .5em;color:var(--purple-900);}
p{margin:0 0 1em;}
.container{max-width:1180px;margin:0 auto;padding:0 20px;}

/* ---------- Topbar ---------- */
.topbar{background:var(--purple-900);color:#f2eaf7;font-size:.85rem;}
.topbar-inner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px 20px;padding:8px 20px;}
.topbar-item{display:flex;gap:16px;flex-wrap:wrap;align-items:center;}
.topbar-item a{opacity:.95;}
.topbar-item a:hover{opacity:1;text-decoration:underline;}
.icon{margin-right:4px;}

/* ---------- Header / Nav ---------- */
.site-header{background:#fff;box-shadow:var(--shadow-sm);position:sticky;top:0;z-index:50;}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;gap:16px;}
.brand{display:flex;align-items:center;gap:12px;}
.brand-logo{height:52px;width:auto;border-radius:8px;}
.brand-text{display:flex;flex-direction:column;line-height:1.1;}
.brand-name{font-size:1.35rem;font-weight:800;color:var(--purple-700);letter-spacing:.2px;}
.brand-tag{font-size:.75rem;color:var(--ink-soft);}

.site-nav{display:flex;align-items:center;gap:4px;flex-wrap:wrap;}
.nav-link{padding:10px 14px;border-radius:8px;font-weight:600;color:var(--ink);font-size:.95rem;}
.nav-link:hover{background:var(--purple-100);color:var(--purple-700);}
.nav-link.active{background:var(--purple-700);color:#fff;}
.nav-cta{margin-left:8px;padding:10px 18px;border-radius:30px;background:var(--orange-600);color:#fff;font-weight:700;white-space:nowrap;}
.nav-cta:hover{background:var(--orange-500);}

.nav-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;background:none;border:0;cursor:pointer;padding:8px;}
.nav-toggle span{width:26px;height:3px;background:var(--purple-700);border-radius:2px;}

/* ---------- Buttons ---------- */
.btn{display:inline-block;padding:13px 26px;border-radius:30px;font-weight:700;border:2px solid transparent;cursor:pointer;font-size:1rem;}
.btn-primary{background:var(--orange-600);color:#fff;}
.btn-primary:hover{background:var(--orange-500);}
.btn-outline{background:transparent;border-color:#fff;color:#fff;}
.btn-outline:hover{background:rgba(255,255,255,.15);}
.btn-purple{background:var(--purple-700);color:#fff;}
.btn-purple:hover{background:var(--purple-600);}
.btn-block{display:block;width:100%;text-align:center;}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  color:#fff;
  background:linear-gradient(160deg, rgba(61,26,86,.92), rgba(232,114,44,.65)), url('../img/hero-tienda.jpg') center/cover no-repeat;
  padding:90px 0 100px;
}
.hero-inner{max-width:640px;}
.hero-eyebrow{display:inline-block;background:rgba(255,255,255,.18);padding:6px 14px;border-radius:20px;font-size:.85rem;font-weight:700;margin-bottom:16px;letter-spacing:.3px;}
.hero h1{color:#fff;font-size:2.6rem;margin-bottom:.4em;}
.hero p.lead{font-size:1.15rem;color:#f4ecf9;margin-bottom:1.6em;}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;}
.hero-stats{display:flex;gap:30px;margin-top:50px;flex-wrap:wrap;}
.hero-stat b{display:block;font-size:1.6rem;color:#fff;}
.hero-stat span{font-size:.85rem;color:#f0e5f7;}

/* ---------- Section basics ---------- */
.section{padding:70px 0;}
.section-tight{padding:40px 0;}
.section-head{max-width:680px;margin:0 auto 44px;text-align:center;}
.section-head h2{font-size:2rem;}
.section-head p{color:var(--ink-soft);font-size:1.05rem;}
.eyebrow{display:inline-block;color:var(--orange-600);font-weight:800;letter-spacing:1px;text-transform:uppercase;font-size:.8rem;margin-bottom:10px;}
.bg-purple{background:var(--purple-900);color:#eee3f4;}
.bg-purple h2, .bg-purple h3{color:#fff;}
.bg-soft{background:var(--purple-100);}

/* ---------- Grids / Cards ---------- */
.grid{display:grid;gap:26px;}
.grid-2{grid-template-columns:repeat(2,1fr);}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-4{grid-template-columns:repeat(4,1fr);}

.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow-sm);overflow:hidden;border:1px solid var(--border);}
.card-body{padding:22px;}
.card img{width:100%;height:200px;object-fit:cover;}
.card h3{font-size:1.15rem;}
.card p{color:var(--ink-soft);font-size:.95rem;margin-bottom:.6em;}

.category-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;}
.category-card .cat-icon{width:56px;height:56px;object-fit:contain;}
.category-card h3{margin-bottom:2px;}

.icon-badge{width:60px;height:60px;border-radius:16px;background:var(--purple-100);display:flex;align-items:center;justify-content:center;font-size:1.7rem;margin-bottom:14px;}

/* ---------- Brands strip ---------- */
.brands-strip{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;}
.brand-pill{background:#fff;border:1px solid var(--border);padding:12px 22px;border-radius:30px;font-weight:700;color:var(--purple-700);box-shadow:var(--shadow-sm);font-size:.95rem;}

/* ---------- Gallery ---------- */
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
.gallery a{display:block;border-radius:12px;overflow:hidden;box-shadow:var(--shadow-sm);}
.gallery img{width:100%;height:220px;object-fit:cover;transition:transform .35s ease;}
.gallery a:hover img{transform:scale(1.06);}

/* ---------- Two-column feature ---------- */
.feature{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center;}
.feature img{border-radius:var(--radius);box-shadow:var(--shadow);}
.feature-reverse .feature-media{order:2;}
.checklist li{padding-left:30px;position:relative;margin-bottom:12px;}
.checklist li::before{content:"✔";position:absolute;left:0;top:0;color:var(--success);font-weight:800;}

/* ---------- Steps ---------- */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;}
.step{text-align:center;}
.step-num{width:44px;height:44px;border-radius:50%;background:var(--orange-600);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;margin:0 auto 14px;}

/* ---------- Testimonials / trust ---------- */
.trust-strip{display:flex;gap:40px;flex-wrap:wrap;justify-content:center;text-align:center;}
.trust-item b{display:block;font-size:1.8rem;color:var(--purple-700);}
.trust-item span{color:var(--ink-soft);font-size:.9rem;}

/* ---------- Timeline (Nosotros) ---------- */
.timeline{border-left:3px solid var(--purple-100);margin-left:10px;padding-left:26px;}
.timeline-item{position:relative;margin-bottom:30px;}
.timeline-item::before{content:"";position:absolute;left:-33px;top:4px;width:14px;height:14px;border-radius:50%;background:var(--orange-600);border:3px solid #fff;box-shadow:0 0 0 2px var(--purple-100);}

/* ---------- Forms ---------- */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.form-group{display:flex;flex-direction:column;gap:6px;margin-bottom:16px;}
.form-group.full{grid-column:1/-1;}
label{font-weight:700;font-size:.9rem;color:var(--purple-900);}
input,textarea,select{
  padding:12px 14px;border-radius:10px;border:1.5px solid var(--border);font-family:inherit;font-size:1rem;background:#fff;
}
input:focus,textarea:focus,select:focus{outline:none;border-color:var(--purple-600);}
textarea{resize:vertical;min-height:130px;}
.alert{padding:16px 18px;border-radius:10px;margin-bottom:20px;font-weight:600;}
.alert-success{background:#e6f6ec;color:#1d7a3f;border:1px solid #b9e6c8;}
.alert-error{background:#fbe9e7;color:#a13324;border:1px solid #f3c3bb;}

/* ---------- Map ---------- */
.map-wrap{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);}
.map-wrap iframe{width:100%;height:100%;min-height:340px;border:0;display:block;}

/* ---------- Footer ---------- */
.site-footer{background:var(--purple-900);color:#e6d9ee;padding:60px 0 0;margin-top:60px;}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.2fr;gap:36px;padding-bottom:40px;}
.footer-logo{height:60px;border-radius:8px;margin-bottom:14px;background:#fff;padding:4px;}
.footer-col h4{color:#fff;font-size:1.05rem;margin-bottom:16px;}
.footer-links li{margin-bottom:10px;}
.footer-links a:hover{text-decoration:underline;}
.footer-contact li{margin-bottom:12px;}
.footer-contact a:hover{text-decoration:underline;}
.footer-hours li{display:flex;justify-content:space-between;gap:10px;margin-bottom:8px;font-size:.9rem;border-bottom:1px dashed rgba(255,255,255,.15);padding-bottom:8px;}
.footer-note{font-size:.78rem;opacity:.75;margin-top:10px;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.15);padding:18px 20px;font-size:.85rem;text-align:center;opacity:.85;}

.float-call{
  position:fixed;bottom:22px;right:22px;background:var(--orange-600);color:#fff;
  width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:1.5rem;box-shadow:0 8px 22px rgba(0,0,0,.25);z-index:60;
}
.float-call:hover{background:var(--orange-500);}

/* ---------- Page header (interior pages) ---------- */
.page-hero{
  background:linear-gradient(150deg, var(--purple-900), var(--purple-700));
  color:#fff;padding:56px 0;text-align:center;
}
.page-hero h1{color:#fff;font-size:2.2rem;margin-bottom:.3em;}
.page-hero p{color:#f0e5f7;max-width:640px;margin:0 auto;}
.breadcrumb{font-size:.85rem;opacity:.85;margin-bottom:14px;}
.breadcrumb a{text-decoration:underline;}

/* ---------- Article (consejos) ---------- */
.article-card{display:flex;flex-direction:column;height:100%;}
.article-card img{height:190px;object-fit:cover;}
.tag{display:inline-block;background:var(--purple-100);color:var(--purple-700);font-size:.75rem;font-weight:700;padding:4px 10px;border-radius:20px;margin-bottom:10px;}

/* ---------- Utilities ---------- */
.text-center{text-align:center;}
.mt-0{margin-top:0;}
.mb-0{margin-bottom:0;}
.small{font-size:.85rem;color:var(--ink-soft);}

/* ============================================
   Responsive
   ============================================ */
@media (max-width:980px){
  .grid-4{grid-template-columns:repeat(2,1fr);}
  .grid-3{grid-template-columns:repeat(2,1fr);}
  .steps{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .feature{grid-template-columns:1fr;}
  .feature-reverse .feature-media{order:0;}
}

@media (max-width:760px){
  .topbar-inner{flex-direction:column;align-items:flex-start;}
  .nav-toggle{display:flex;}
  .site-nav{
    display:none;flex-direction:column;align-items:stretch;width:100%;
    position:absolute;top:100%;left:0;background:#fff;padding:10px 20px 20px;
    box-shadow:var(--shadow);
  }
  .site-nav.open{display:flex;}
  .nav-cta{margin-left:0;text-align:center;margin-top:6px;}
  .header-inner{position:relative;}
  .hero{padding:60px 0 70px;text-align:center;}
  .hero-inner{max-width:100%;}
  .hero-actions{justify-content:center;}
  .hero-stats{justify-content:center;}
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr;}
  .gallery{grid-template-columns:repeat(2,1fr);}
  .form-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  .steps{grid-template-columns:1fr;}
}
