/* ===== Limpiezas Jose — estilos base ===== */

:root {
  --primary: #2e90fa;
  --primary-dark: #1361d8;
  --primary-light: #eaf3ff;
  --accent: #00d873;
  --accent-dark: #00a95c;
  --footer-bg: #072f52;
  --bg: #f7f9fc;
  --bg-alt: #ffffff;
  --text: #1f2a37;
  --text-light: #5b6672;
  --border: #e3e8ef;
  --shadow: 0 10px 30px rgba(15, 40, 70, 0.08);
  --radius: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  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 .6em; font-weight: 800; }

p { margin: 0 0 1em; color: var(--text-light); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  background: #e7f7f0;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); }

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(39,174,125,.35); }
.btn--primary:hover { background: var(--accent-dark); }

.btn--outline { background: transparent; border-color: #fff; color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.12); }

.btn--dark { background: var(--primary); color: #fff; }
.btn--dark:hover { background: var(--primary-dark); }

.btn--block { width: 100%; justify-content: center; }

/* ===== Header ===== */
.header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(15,40,70,.06);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 20px;
}
.logo { display: flex; align-items: center; white-space: nowrap; }
.logo img { height: 52px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__list { display: flex; align-items: center; gap: 26px; font-weight: 600; }
.nav__list a { padding: 8px 0; color: var(--text); }
.nav__list a:hover, .nav__list a.is-active { color: var(--primary); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 260px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .15s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text);
}
.dropdown a:hover { background: var(--primary-light); color: var(--primary); }

.header__cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--primary); border-radius: 3px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 84px 0;
}

.hero--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.hero p.lead { color: #d7e6f8; font-size: 1.1rem; max-width: 540px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero__badges { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 30px; font-weight: 600; font-size: .92rem; color: #d7e6f8; }
.hero__badges li { display: flex; align-items: center; gap: 8px; }

.hero__card {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.hero__card h3 { font-size: 1.2rem; color: var(--primary-dark); }
.hero__card .field { margin-bottom: 14px; }
.hero__card label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.hero__card select,
.hero__card input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: .95rem;
  font-family: inherit;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  color: var(--text-light);
}
.breadcrumb .container { padding-top: 14px; padding-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--primary); font-weight: 600; }

/* ===== Grid de servicios ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15,40,70,.12); }
.card__icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.1rem; }
.card a.more { font-weight: 700; color: var(--primary); display: inline-block; margin-top: 6px; }
.card a.more:hover { color: var(--accent-dark); }

/* ===== Por qué elegirnos ===== */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 28px; }
.feature { text-align: center; padding: 10px; }
.feature__icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
}
.feature h4 { font-size: 1.05rem; margin: 0 0 .6em; font-weight: 800; }

/* ===== Proceso ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 30px; counter-reset: step; }
.step { position: relative; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 26px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px; left: 26px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.step h3 { margin-top: 10px; font-size: 1.05rem; }

/* ===== FAQ ===== */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
}
.faq-item__q .icon { transition: transform .2s ease; color: var(--primary); font-size: 1.3rem; }
.faq-item.is-open .faq-item__q .icon { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  transition: max-height .25s ease, padding .25s ease;
}
.faq-item.is-open .faq-item__a { padding: 0 24px 20px; }

/* ===== Reseñas ===== */
.reviews-cta {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 48px 44px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.reviews-cta__quote {
  font-size: 3.2rem;
  line-height: 1;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 6px;
}
.reviews-cta__text {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 520px;
  margin: 0 auto 18px;
}
.stars { color: #f5a623; font-size: 1.6rem; letter-spacing: 4px; margin-bottom: 18px; }

.testimonial-card { text-align: left; }
.testimonial-card .stars { margin-bottom: 14px; }
.testimonial-card__text {
  font-style: italic;
  color: var(--text);
  margin-bottom: 20px;
}
.testimonial-card__author { font-weight: 700; color: var(--primary-dark); }
.testimonial-card__city { color: var(--text-light); font-size: .85rem; }

/* ===== CTA final ===== */
.cta-final {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  text-align: center;
  padding: 70px 0;
}
.cta-final::before, .cta-final::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  pointer-events: none;
}
.cta-final::before { width: 260px; height: 260px; top: -130px; left: -70px; }
.cta-final::after { width: 200px; height: 200px; bottom: -110px; right: -50px; background: rgba(255, 255, 255, .12); }
.cta-final .container { position: relative; z-index: 1; }
.cta-final .emoji { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.cta-final h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-final .hero__actions { justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.cta-final .btn--primary { background: #fff; color: var(--accent-dark); box-shadow: 0 10px 24px rgba(7, 47, 82, .25); }
.cta-final .btn--outline { border-color: #fff; }

/* ===== Footer ===== */
.footer { background: var(--footer-bg); color: #c9dbf2; padding: 56px 0 24px; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer p { color: #b7cce8; }
.footer ul li { margin-bottom: 10px; }
.footer a:hover { color: #fff; }
.footer__logo { margin-bottom: 14px; }
.footer__logo img { height: 46px; width: auto; display: block; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: .85rem;
  color: #9db8dc;
}

/* ===== Galería de trabajos (mosaico) ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 20px;
}
.gallery figure {
  margin: 0;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(7,62,110,.85), transparent);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  padding: 28px 14px 10px;
}
.gallery-wide { grid-column: span 2; }
.gallery-tall { grid-row: span 2; }

@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
}
@media (max-width: 460px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-wide, .gallery-tall { grid-column: span 1; grid-row: span 1; }
}

/* ===== WhatsApp flotante ===== */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #25d366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  z-index: 200;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .footer .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav { position: fixed; top: 0; right: -100%; height: 100vh; width: 280px; background: #fff; flex-direction: column; align-items: stretch; padding: 90px 24px 24px; box-shadow: -10px 0 30px rgba(0,0,0,.15); transition: right .25s ease; }
  .nav.is-open { right: 0; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .nav__list > li { width: 100%; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding-left: 10px; }
  .has-dropdown.is-open .dropdown { display: block; }
  .header__cta .btn span.btn-text { display: none; }
  .nav-toggle { display: flex; }
  .footer .container { grid-template-columns: 1fr; }
}
