/* ═══════════════════════════════════════════
   CleanPoint Chile — Sitio Web Principal
   style.css
   ═══════════════════════════════════════════ */

:root {
  --blue-dark:  #0d2d6b;
  --blue:       #1C5FAB;
  --green:      #3A9140;
  --green-pale: #9DD44A;
  --white:      #ffffff;
  --off-white:  #f5f8ff;
  --gray-light: #e4ecf7;
  --gray:       #6b7a99;
  --text:       #0d1a2e;
  --text-light: #4a5568;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--blue-dark);
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  padding: .5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar a { color: var(--green-pale); text-decoration: none; font-weight: 600; transition: color .2s; }
.topbar a:hover { color: #fff; }
.tb-right { display: flex; gap: 2rem; align-items: center; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-light);
  padding: 0 2.5rem; height: 76px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 4px 24px rgba(13,45,107,.07);
}
.nav-logo img {
  height: 38px;
  width: auto;
  max-width: 200px;
  background: transparent;
  display: block;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--text-light);
  font-size: .88rem; font-weight: 600; letter-spacing: .3px;
  transition: color .2s; position: relative; padding-bottom: 3px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 0; height: 2px; background: var(--blue);
  transition: width .25s; border-radius: 2px;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; gap: .75rem; align-items: center; }

/* Hamburger mobile */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: .25rem;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed; top: 76px; left: 0; right: 0;
  background: #fff; z-index: 99;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-light);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  flex-direction: column; gap: 1rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; color: var(--text);
  font-size: 1rem; font-weight: 600; padding: .5rem 0;
  border-bottom: 1px solid var(--gray-light);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.5rem; border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700; font-size: .85rem;
  cursor: pointer; text-decoration: none;
  transition: all .22s; border: 2px solid transparent;
  white-space: nowrap; letter-spacing: .3px;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 4px 16px rgba(28,95,171,.28); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); }
.btn-wsp { background: #25d366; color: #fff; border-color: #25d366; box-shadow: 0 4px 16px rgba(37,211,102,.3); }
.btn-wsp:hover { background: #1aaf55; border-color: #1aaf55; transform: translateY(-1px); }
.btn-lg { padding: .9rem 2.2rem; font-size: .95rem; border-radius: 8px; }
.btn-xl { padding: 1.1rem 2.8rem; font-size: 1rem; border-radius: 8px; }

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  min-height: 90vh; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../img/hero-bg.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,29,75,.94) 0%, rgba(13,45,107,.88) 50%, rgba(20,75,160,.80) 100%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .04;
  background-image: linear-gradient(rgba(255,255,255,1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
  background-size: 55px 55px;
}
.hero-glow {
  position: absolute; right: -100px; top: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(rgba(157,212,74,.12), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 7rem 2.5rem;
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 5rem; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid rgba(157,212,74,.4); background: rgba(157,212,74,.1);
  color: var(--green-pale); font-size: .74rem; font-weight: 700;
  padding: .35rem 1rem; border-radius: 30px; margin-bottom: 1.75rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.edot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-pale); }
.hero h1 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 900; line-height: 1.1; color: #fff;
  margin-bottom: 1.5rem; letter-spacing: -.5px;
}
.hero h1 .ac { color: var(--green-pale); }
.hero-desc {
  font-size: 1rem; color: rgba(255,255,255,.72);
  max-width: 460px; margin-bottom: 2.5rem;
  line-height: 1.75; font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12);
}
.stat { display: flex; flex-direction: column; gap: .15rem; }
.stat-n { font-family: 'Raleway', sans-serif; font-size: 1.8rem; font-weight: 900; color: #fff; line-height: 1; }
.stat-n em { color: var(--green-pale); font-style: normal; }
.stat-l { font-size: .74rem; color: rgba(255,255,255,.5); }

/* Hero mosaic */
.hero-mosaic {
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: 195px 195px; gap: 10px;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 28px 70px rgba(0,0,0,.45);
  animation: fadeUp .8s ease .4s both;
}
.m-img {
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.m-img:hover { transform: scale(1.05); }
.m-img.tall { grid-row: 1/3; }
.m-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: #fff; font-size: .7rem; font-weight: 700;
  padding: 1.5rem .75rem .6rem; text-transform: uppercase;
  letter-spacing: .8px; opacity: 0; transition: opacity .3s;
}
.m-img:hover .m-label { opacity: 1; }

/* ── SHOP BANNER ── */
.shop-banner {
  background: linear-gradient(135deg, #0a1f4d, #0d2d6b 40%, #1550a0);
  position: relative; overflow: hidden; padding: 5rem 2.5rem;
  border-top: 3px solid var(--green-pale);
}
.shop-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(157,212,74,.08) 0%, transparent 60%);
}
.shop-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  gap: 3rem; align-items: center; position: relative; z-index: 2;
}
.shop-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(157,212,74,.15); border: 1px solid rgba(157,212,74,.35);
  color: var(--green-pale); font-size: .72rem; font-weight: 700;
  padding: .35rem 1rem; border-radius: 30px; margin-bottom: 1.25rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.pdot {
  width: 7px; height: 7px; background: var(--green-pale);
  border-radius: 50%; flex-shrink: 0;
  animation: pulse 1.6s ease-in-out infinite;
}
.shop-text h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: .75rem;
}
.shop-text h2 span { color: var(--green-pale); }
.shop-text p { color: rgba(255,255,255,.6); font-size: .95rem; line-height: 1.7; max-width: 500px; }
.shop-actions { display: flex; flex-direction: column; gap: .75rem; align-items: flex-end; }
.shop-note { font-size: .74rem; color: rgba(255,255,255,.4); text-align: center; }

/* ── SECTIONS ── */
.section { padding: 6rem 2.5rem; }
.si { max-width: 1200px; margin: 0 auto; }
.sh { margin-bottom: 3.5rem; }
.sov {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--blue); margin-bottom: .6rem;
  display: flex; align-items: center; gap: .5rem;
}
.sov::before { content: ''; width: 24px; height: 2px; background: var(--blue); flex-shrink: 0; }
.st {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900; color: var(--text); line-height: 1.15; margin-bottom: 1rem;
}
.st span { color: var(--blue); }
.ss { font-size: .98rem; color: var(--text-light); max-width: 520px; line-height: 1.7; }

/* ── CATEGORIES ── */
.cats-bg { background: var(--off-white); }
.cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 1.25rem; }
.cat-card {
  background: #fff; border: 1.5px solid var(--gray-light);
  border-radius: 12px; padding: 1.5rem 1.25rem;
  display: flex; flex-direction: column; gap: .75rem;
  cursor: pointer; transition: all .25s;
  text-decoration: none; color: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.cat-card:hover { border-color: var(--blue); box-shadow: 0 8px 28px rgba(28,95,171,.12); transform: translateY(-4px); }
.cat-ico {
  width: 50px; height: 50px; border-radius: 12px; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--off-white); border: 1px solid var(--gray-light);
  transition: background .25s;
}
.cat-card:hover .cat-ico { background: rgba(28,95,171,.08); border-color: rgba(28,95,171,.2); }
.cat-n { font-family: 'Raleway', sans-serif; font-weight: 700; font-size: .88rem; line-height: 1.35; color: var(--text); }
.cat-cta { font-size: .78rem; font-weight: 700; color: var(--blue); margin-top: auto; }

/* ── WHY ── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.why-card {
  background: #fff; border: 1px solid var(--gray-light);
  border-radius: 14px; padding: 2.25rem 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: all .25s; position: relative; overflow: hidden;
}
.why-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), #4db347);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.why-card:hover { box-shadow: 0 12px 40px rgba(28,95,171,.1); transform: translateY(-4px); border-color: rgba(28,95,171,.15); }
.why-card:hover::before { transform: scaleX(1); }
.why-num { font-family: 'Raleway', sans-serif; font-weight: 900; font-size: 3rem; line-height: 1; color: var(--gray-light); letter-spacing: -2px; }
.why-ico { width: 44px; height: 44px; border-radius: 10px; background: rgba(28,95,171,.08); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.why-card h3 { font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--text); }
.why-card p { font-size: .88rem; color: var(--text-light); line-height: 1.65; }

/* ── SEGMENTS WITH PHOTOS ── */
.segs-bg { background: var(--off-white); }
.segs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.seg-card {
  border-radius: 14px; overflow: hidden; position: relative;
  height: 220px; cursor: pointer; text-decoration: none; display: block;
}
.seg-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.seg-card:hover .seg-bg { transform: scale(1.07); }
.seg-ov {
  position: absolute; inset: 0;
  background: linear-gradient(175deg, rgba(10,29,75,.25) 0%, rgba(10,29,75,.82) 100%);
  transition: background .3s;
}
.seg-card:hover .seg-ov { background: linear-gradient(175deg, rgba(28,95,171,.35) 0%, rgba(10,29,75,.88) 100%); }
.seg-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem 1.4rem; }
.seg-ic {
  width: 38px; height: 38px; border-radius: 9px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: .6rem;
}
.seg-name { font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 1rem; color: #fff; display: block; margin-bottom: .2rem; }
.seg-sub { font-size: .74rem; color: rgba(255,255,255,.65); }
.seg-arr {
  position: absolute; top: 1rem; right: 1rem;
  width: 30px; height: 30px; border-radius: 50%;
  background: transparent; border: 1.5px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .85rem;
  opacity: 0; transition: all .3s;
}
.seg-card:hover .seg-arr { opacity: 1; background: var(--green-pale); border-color: var(--green-pale); color: var(--text); }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.c-left h2 { font-family: 'Raleway', sans-serif; font-weight: 900; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--text); line-height: 1.2; margin-bottom: 1rem; }
.c-left h2 span { color: var(--blue); }
.c-left > p { color: var(--text-light); font-size: .97rem; line-height: 1.7; margin-bottom: 2.5rem; }
.ch-list { display: flex; flex-direction: column; gap: .85rem; }
.ch-item {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.1rem 1.4rem; background: #fff;
  border: 1.5px solid var(--gray-light); border-radius: 10px;
  text-decoration: none; color: inherit;
  transition: all .22s; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.ch-item:hover { border-color: var(--blue); box-shadow: 0 4px 18px rgba(28,95,171,.1); transform: translateX(4px); }
.ch-ic { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.ic-wsp { background: rgba(37,211,102,.1); }
.ic-mail { background: rgba(28,95,171,.08); }
.ic-pin { background: rgba(58,145,64,.08); }
.ch-lbl { font-size: .72rem; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.ch-val { font-weight: 700; color: var(--text); font-size: .93rem; }

/* Form */
.c-form {
  background: #fff; border-radius: 16px; padding: 2.75rem;
  border: 1px solid var(--gray-light);
  box-shadow: 0 8px 48px rgba(13,45,107,.08);
}
.ft { font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--text); margin-bottom: .35rem; }
.fsub { font-size: .83rem; color: var(--gray); margin-bottom: 1.75rem; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.fg { display: flex; flex-direction: column; gap: .4rem; }
.fg.full { grid-column: 1/-1; }
label { font-size: .78rem; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .4px; }
input, textarea, select {
  font-family: 'Open Sans', sans-serif; font-size: .9rem;
  padding: .75rem 1rem; border: 1.5px solid var(--gray-light);
  border-radius: 8px; color: var(--text); background: var(--off-white);
  outline: none; transition: border-color .2s, background .2s, box-shadow .2s; width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(28,95,171,.1);
}
textarea { resize: vertical; min-height: 110px; }
.btn-submit { margin-top: 1.5rem; width: 100%; justify-content: center; padding: 1rem; font-size: .95rem; }

/* ── FOOTER ── */
footer { background: var(--blue-dark); color: rgba(255,255,255,.7); padding: 4rem 2.5rem 2rem; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 3.5rem; margin-bottom: 3rem;
}
.f-logo {
  height: 32px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: 1.25rem;
  display: block;
  filter: brightness(0) invert(1);
}
.f-tag { font-size: .85rem; line-height: 1.65; color: rgba(255,255,255,.45); max-width: 260px; }
.f-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(157,212,74,.15); border: 1px solid rgba(157,212,74,.25);
  color: var(--green-pale); font-size: .72rem; font-weight: 700;
  padding: .3rem .8rem; border-radius: 20px; margin-top: 1rem;
}
.fc h4 { font-family: 'Raleway', sans-serif; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: 1.2px; color: #fff; margin-bottom: 1.35rem; }
.fc ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.fc ul li a { text-decoration: none; color: rgba(255,255,255,.5); font-size: .85rem; transition: color .2s; }
.fc ul li a:hover { color: var(--green-pale); }
.f-bot {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.07); padding-top: 1.75rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: .5rem;
}
.f-bot a { color: var(--green-pale); text-decoration: none; }

/* ── WSP FLOTANTE ── */
.wsp-f {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 58px; height: 58px; background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.5); text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  animation: popIn .5s cubic-bezier(.34,1.56,.64,1) 1s both;
}
.wsp-f:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,.65); }
.wsp-tip {
  position: absolute; right: 68px; background: #fff; color: var(--text);
  font-size: .78rem; font-weight: 700; padding: .4rem .85rem; border-radius: 6px;
  white-space: nowrap; box-shadow: 0 4px 16px rgba(0,0,0,.12);
  opacity: 0; transform: translateX(8px); transition: all .2s; pointer-events: none;
}
.wsp-f:hover .wsp-tip { opacity: 1; transform: translateX(0); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.6); } }
@keyframes popIn { from { transform: scale(0) rotate(-180deg); } to { transform: scale(1) rotate(0deg); } }

.hero-content > * { animation: fadeUp .7s ease both; }
.hero-content > *:nth-child(1) { animation-delay: .05s; }
.hero-content > *:nth-child(2) { animation-delay: .2s; }
.hero-content > *:nth-child(3) { animation-delay: .35s; }
.hero-content > *:nth-child(4) { animation-delay: .5s; }
.hero-content > *:nth-child(5) { animation-delay: .65s; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .topbar { display: none; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .shop-inner { grid-template-columns: 1fr; }
  .shop-actions { align-items: flex-start; }
  .frow { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  nav { padding: 0 1.25rem; }
  .section { padding: 4rem 1.25rem; }
  .hero-mosaic { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}
