/* ==========================================================================
   El Trébol Ferreterías — Landing Page
   Hoja de estilos principal
   ========================================================================== */

:root{
  --navy:#2c4c7d;
  --navy-dark:#21395f;
  --navy-darker:#172a48;
  --yellow:#ffd400;
  --yellow-dark:#e6bf00;
  --green:#19a23e;
  --green-dark:#137a2f;
  --ink:#1b2330;
  --muted:#5d6675;
  --paper:#ffffff;
  --soft:#f2f5fb;
  --line:#e2e7f1;
  --radius:14px;
  --shadow:0 10px 30px rgba(19,35,74,.12);
  --maxw:1180px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:"Segoe UI",system-ui,-apple-system,Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--paper);line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 22px}
.btn{display:inline-flex;align-items:center;gap:.55rem;font-weight:700;padding:.85rem 1.5rem;border-radius:999px;cursor:pointer;border:0;font-size:1rem;transition:transform .15s ease, box-shadow .15s ease, background .2s ease}
.btn:hover{transform:translateY(-2px)}
.btn-yellow{background:var(--yellow);color:var(--navy-darker);box-shadow:0 8px 20px rgba(255,212,0,.4)}
.btn-yellow:hover{background:var(--yellow-dark)}
.btn-navy{background:var(--navy);color:#fff;box-shadow:0 8px 20px rgba(40,70,138,.35)}
.btn-navy:hover{background:var(--navy-dark)}
.btn-ghost{background:transparent;border:2px solid #ffffff77;color:#fff}
.btn-ghost:hover{background:#ffffff1f}

/* Logo */
.logo{height:58px;width:auto;display:block}
.logo-foot{height:64px;width:auto;border-radius:8px}

/* Top bar */
.topbar{background:var(--navy-darker);color:#cdd8f2;font-size:.85rem}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;gap:1rem;height:38px;flex-wrap:wrap;overflow:hidden}
.topbar a{color:#cdd8f2}.topbar a:hover{color:var(--yellow)}
.topbar .ti{display:inline-flex;align-items:center;gap:.4rem}

/* Header */
header{position:sticky;top:0;z-index:50;background:var(--navy);border-bottom:3px solid var(--yellow)}
.nav{display:flex;align-items:center;justify-content:space-between;height:84px;gap:1rem}
.navlinks{display:flex;gap:1.5rem;align-items:center}
.navlinks a{font-weight:600;color:#eaf0fb;font-size:.95rem}
.navlinks a:hover{color:var(--yellow)}
.nav .cta{display:inline-flex}
.menu-toggle{display:none;background:none;border:0;cursor:pointer}
.menu-toggle span{display:block;width:26px;height:3px;background:#fff;margin:5px 0;border-radius:2px}

/* Hero */
.hero{position:relative;color:#fff;background:linear-gradient(120deg, rgba(19,35,74,.96) 0%, rgba(28,52,104,.9) 55%, rgba(40,70,138,.82) 100%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 39h40M39 0v40' stroke='%23ffffff12' stroke-width='1'/%3E%3C/svg%3E");overflow:hidden}
.hero::after{content:"";position:absolute;right:-120px;top:-120px;width:460px;height:460px;border-radius:50%;background:radial-gradient(circle,var(--yellow) 0%,transparent 70%);opacity:.16}
.hero-inner{display:grid;grid-template-columns:1.15fr .85fr;gap:2.5rem;align-items:center;padding:4.4rem 0 4.6rem}
.eyebrow{display:inline-block;background:var(--yellow);color:var(--navy-darker);padding:.35rem .9rem;border-radius:999px;font-size:.82rem;font-weight:800;letter-spacing:.03em;margin-bottom:1.1rem}
.hero h1{font-size:clamp(2.1rem,4.6vw,3.4rem);line-height:1.08;font-weight:800;margin-bottom:1rem}
.hero h1 span{color:var(--yellow)}
.hero p.lead{font-size:1.15rem;color:#e9eefb;max-width:33rem;margin-bottom:1.7rem}
.hero-cta{display:flex;gap:.9rem;flex-wrap:wrap}
.hero-stats{display:flex;gap:2rem;margin-top:2.3rem;flex-wrap:wrap}
.hero-stats .s strong{display:block;font-size:2rem;color:var(--yellow);font-weight:800;line-height:1}
.hero-stats .s span{font-size:.9rem;color:#dde6fb}
.hero-card{background:#fff;color:var(--ink);border-radius:18px;padding:1.6rem;box-shadow:var(--shadow)}
.hero-card h3{color:var(--navy);font-size:1.05rem;margin-bottom:1rem;display:flex;align-items:center;gap:.5rem}
.hero-card ul{list-style:none}
.hero-card li{display:flex;gap:.7rem;align-items:flex-start;padding:.5rem 0;border-bottom:1px dashed var(--line);font-size:.95rem}
.hero-card li:last-child{border-bottom:0}
.hero-card .chk{color:var(--green);flex:0 0 auto;margin-top:.15rem;font-weight:800}

/* Sections */
section{padding:4.4rem 0}
.sec-head{text-align:center;max-width:48rem;margin:0 auto 2.6rem}
.sec-head .kicker{color:var(--green);font-weight:800;letter-spacing:.08em;text-transform:uppercase;font-size:.82rem}
.sec-head h2{font-size:clamp(1.7rem,3.4vw,2.4rem);margin:.4rem 0 .6rem;color:var(--navy)}
.sec-head p{color:var(--muted);font-size:1.05rem}
.grid{display:grid;gap:1.3rem}

/* About: history + mv + values */
.about{background:var(--soft)}
.mv-grid{grid-template-columns:1fr 1fr;margin-bottom:1.3rem}
.mv-card{background:#fff;border-radius:var(--radius);padding:1.8rem;border-top:5px solid var(--navy);box-shadow:var(--shadow)}
.mv-card.vis{border-top-color:var(--yellow)}
.mv-card h3{color:var(--navy);font-size:1.2rem;margin-bottom:.6rem;display:flex;align-items:center;gap:.5rem}
.mv-card p{color:var(--muted);font-size:.97rem}
.values{grid-template-columns:repeat(3,1fr)}
.vcard{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.5rem;transition:.2s}
.vcard:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.vcard .ico{width:50px;height:50px;border-radius:12px;background:#eaf0fb;display:flex;align-items:center;justify-content:center;font-size:1.5rem;margin-bottom:.8rem}
.vcard h4{color:var(--navy);font-size:1.05rem;margin-bottom:.3rem}
.vcard p{color:var(--muted);font-size:.92rem}

/* Products */
.products{grid-template-columns:repeat(3,1fr)}
.pcard{background:var(--soft);border:1px solid var(--line);border-radius:var(--radius);padding:1.6rem;transition:.2s}
.pcard:hover{transform:translateY(-5px);box-shadow:var(--shadow);background:#fff;border-color:#c9d6ef}
.pcard .ico{width:54px;height:54px;border-radius:12px;background:var(--navy);display:flex;align-items:center;justify-content:center;margin-bottom:1rem;font-size:1.5rem}
.pcard h3{font-size:1.1rem;margin-bottom:.4rem;color:var(--navy)}
.pcard p{color:var(--muted);font-size:.93rem}

/* Brands */
.brands{background:var(--navy-darker);color:#fff}
.brands .sec-head h2{color:#fff}.brands .sec-head p{color:#cdd8f2}.brands .sec-head .kicker{color:var(--yellow)}
.brand-row{display:flex;flex-wrap:wrap;justify-content:center;gap:1.1rem;margin-top:.5rem}
.brand-chip{background:#fff;border-radius:14px;padding:1rem 1.3rem;min-width:168px;height:104px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.55rem;box-shadow:0 8px 22px rgba(0,0,0,.22);transition:transform .18s}
.brand-chip:hover{transform:translateY(-4px)}
.brand-chip .mark{height:36px;width:auto;display:block}
.brand-chip small{font-weight:600;font-size:.7rem;color:#7a8699;letter-spacing:.05em;text-transform:uppercase}
.brand-more{text-align:center;color:#bcccef;margin-top:1.6rem;font-size:.95rem}
.brand-more b{color:#fff}

/* Locations */
.locations{background:var(--soft)}
.loc-grid{grid-template-columns:repeat(3,1fr)}
.loc{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
.loc .map{width:100%;height:175px;border:0;display:block}
.loc .top{background:var(--navy);color:#fff;padding:.9rem 1.3rem;font-weight:800;display:flex;align-items:center;gap:.6rem}
.loc .body{padding:1.3rem;display:flex;flex-direction:column;gap:.65rem;flex:1}
.loc .row{display:flex;gap:.6rem;align-items:flex-start;font-size:.93rem;color:var(--muted)}
.loc .row svg{flex:0 0 auto;margin-top:.15rem;color:var(--green)}
.loc .row b{color:var(--ink);font-weight:600}
.loc .acts{margin-top:auto;display:flex;gap:.5rem;padding-top:.4rem;flex-wrap:wrap}
.loc .acts a{flex:1;min-width:80px;text-align:center;font-weight:700;font-size:.85rem;padding:.55rem;border-radius:10px}
.loc .call{background:#eaf0fb;color:var(--navy)}
.loc .wa{background:#25D366;color:#fff}
.loc .dir{background:var(--yellow);color:var(--navy-darker)}

/* Hours */
.hours{background:#fff;border:1px solid var(--line);border-radius:var(--radius);max-width:520px;margin:2rem auto 0;padding:1.4rem 1.7rem}
.hours h3{color:var(--navy);margin-bottom:.8rem;display:flex;gap:.5rem;align-items:center}
.hours .hr{display:flex;justify-content:space-between;padding:.5rem 0;border-bottom:1px dashed var(--line);font-size:.96rem}
.hours .hr:last-child{border-bottom:0}
.hours .hr span:first-child{color:var(--muted)}.hours .hr b{color:var(--ink)}
.closed{color:#c0392b!important}

/* Testimonials */
.reviews{grid-template-columns:repeat(2,1fr);max-width:880px;margin:0 auto}
.rcard{background:var(--soft);border:1px solid var(--line);border-left:4px solid var(--yellow);border-radius:var(--radius);padding:1.6rem}
.rcard .stars{color:var(--yellow);font-size:1.2rem;letter-spacing:2px;margin-bottom:.6rem}
.rcard p.q{font-size:1.02rem;color:var(--ink);font-style:italic;margin-bottom:1rem}
.rcard .who{font-weight:700;color:var(--navy)}
.rcard .when{color:#9aa3b2;font-size:.85rem}
.rev-badge{text-align:center;margin-bottom:1.8rem}
.rev-badge .big{font-size:2.6rem;font-weight:900;color:var(--green);line-height:1}
.rev-badge span{color:var(--muted);font-size:.95rem}

/* CTA */
.cta-band{background:linear-gradient(120deg,var(--navy) 0%,var(--navy-dark) 100%);color:#fff;text-align:center}
.cta-band h2{font-size:clamp(1.6rem,3.2vw,2.2rem);margin-bottom:.7rem}
.cta-band p{color:#e7edfb;max-width:38rem;margin:0 auto 1.6rem;font-size:1.08rem}
.cta-band .hero-cta{justify-content:center}

/* Footer */
footer{background:var(--navy-darker);color:#c4cfe6;padding:3rem 0 1.6rem}
.foot-grid{display:grid;grid-template-columns:1.5fr 1fr 1.2fr;gap:2rem;padding-bottom:2rem;border-bottom:1px solid #ffffff1f}
footer h4{color:#fff;font-size:1rem;margin-bottom:.9rem}
footer a{color:#c4cfe6;display:block;padding:.25rem 0;font-size:.93rem}
footer a:hover{color:var(--yellow)}
footer p.small{font-size:.92rem;max-width:23rem;margin-top:.9rem}
.copy{text-align:center;padding-top:1.4rem;font-size:.85rem;color:#8a98ba}

/* WhatsApp floating button */
.wa-float{position:fixed;right:20px;bottom:20px;z-index:60;background:#25D366;color:#fff;width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 22px rgba(0,0,0,.25);transition:transform .15s}
.wa-float:hover{transform:scale(1.08)}

/* Responsive */
@media(max-width:920px){
  .hero-inner{grid-template-columns:1fr;gap:2rem}
  .products,.values,.loc-grid{grid-template-columns:repeat(2,1fr)}
  .foot-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
  .topbar{display:none}
  .navlinks{display:none;position:absolute;top:84px;left:0;right:0;background:var(--navy-dark);flex-direction:column;padding:1rem 22px;border-bottom:3px solid var(--yellow);gap:.4rem}
  .navlinks.open{display:flex}.navlinks a{padding:.5rem 0;width:100%}
  .nav .cta{display:none}.menu-toggle{display:block}
  .products,.values,.loc-grid,.mv-grid,.reviews,.foot-grid{grid-template-columns:1fr}
  section{padding:3.2rem 0}.logo{height:46px}
}
