/* ============================================
   HacemosTuWeb — estilos
   ============================================ */

:root {
  --bg: #FBFBF8;
  --ink: #14241D;
  --green-deep: #0B3D2E;
  --green: #1E7A57;
  --green-soft: #EAF3EE;
  --green-bright: #2E9E72;
  --line: #E5E4DB;
  --muted: #5C6B63;
  --white: #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;

  --radius: 18px;
  --container: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-solid {
  background: var(--green-deep);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(11, 61, 46, .22);
}
.btn-solid:hover { background: var(--green); }

.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); }

.btn-light {
  background: var(--white);
  color: var(--green-deep);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}

.btn-lg { padding: 16px 32px; font-size: 16.5px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 248, .85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand-name em {
  font-style: normal;
  color: var(--green);
}

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s;
}
.main-nav a:hover { color: var(--green-deep); }

/* ---------- hero ---------- */
.hero { padding: 90px 0 70px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}
.eyebrow-light { color: #8FD4B4; }

.hero h1 {
  font-size: clamp(40px, 5.4vw, 62px);
  margin-bottom: 22px;
}
.hero .accent { color: var(--green); font-style: italic; }

.lead {
  font-size: 18.5px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-proof {
  display: flex;
  gap: 40px;
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.hero-proof li { display: flex; flex-direction: column; }
.hero-proof strong {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--green-deep);
}
.hero-proof span { font-size: 13.5px; color: var(--muted); }

/* mockup decorativo */
.hero-visual { position: relative; }

.mockup {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(11, 61, 46, .12);
  overflow: hidden;
  transform: rotate(1.5deg);
}
.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.mockup-bar i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line);
}
.mockup-bar i:first-child { background: #BFE3D2; }

.mockup-body { padding: 30px 26px 34px; }
.mk-line {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: #EFEEE7;
  margin-bottom: 12px;
}
.mk-title { height: 22px; width: 85%; background: var(--green-soft); }
.w-70 { width: 70%; }
.w-45 { width: 45%; }
.mk-btn {
  display: inline-block;
  width: 130px; height: 38px;
  border-radius: 999px;
  background: var(--green-deep);
  margin: 10px 0 24px;
}
.mk-cards { display: flex; gap: 12px; }
.mk-cards i {
  flex: 1;
  height: 64px;
  border-radius: 10px;
  background: #F4F3EC;
  border: 1px solid var(--line);
}

.badge-float {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 13.5px;
  line-height: 1.35;
  box-shadow: 0 14px 36px rgba(11, 61, 46, .14);
  color: var(--muted);
}
.badge-float strong { color: var(--green-deep); font-size: 16px; }
.badge-days { top: -18px; right: -8px; transform: rotate(-2deg); }
.badge-pay {
  bottom: -16px; left: -14px;
  color: var(--green-deep);
  font-weight: 600;
  transform: rotate(1deg);
}

/* ---------- secciones ---------- */
section { padding: 90px 0; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* servicios */
.services { background: var(--white); border-block: 1px solid var(--line); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  background: var(--bg);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(11, 61, 46, .10);
}
.service-num {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--green-bright);
  display: block;
  margin-bottom: 18px;
}
.service h3 { font-size: 22px; margin-bottom: 12px; }
.service p { color: var(--muted); font-size: 15.5px; }

/* casos */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.case {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.case:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(11, 61, 46, .10);
}
.case-shot {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 26px;
  background: var(--bg);
  box-shadow: 0 10px 30px rgba(11, 61, 46, .08);
  transition: box-shadow .2s ease;
}
.case-shot:hover { box-shadow: 0 16px 40px rgba(11, 61, 46, .16); }
.case-shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.case-shot-bar i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
}
.case-shot-bar i:first-child { background: #BFE3D2; }
.case-shot-bar b {
  margin-left: 10px;
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .02em;
}
.case-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 980 / 748;
  object-fit: cover;
  object-position: top;
  transition: transform .35s ease;
}
.case-shot:hover img { transform: scale(1.025); }

.case-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}
.case h3 { font-size: 26px; margin-bottom: 12px; }
.case p { color: var(--muted); margin-bottom: 26px; }
.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 15px;
}
.case-meta strong { color: var(--green-deep); }
.case-meta a {
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.case-meta a:hover { text-decoration: underline; }

/* proceso */
.process { background: var(--white); border-block: 1px solid var(--line); }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step { position: relative; padding-top: 8px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 19px;
  margin-bottom: 20px;
}
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* por qué */
.why {
  background: var(--green-deep);
  color: #F2F7F3;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.why h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 18px; }
.why-copy p { color: #BCD6C7; font-size: 17px; }

.why-list { list-style: none; display: grid; gap: 0; }
.why-list li {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  color: #D9E8DE;
  font-size: 16.5px;
}
.why-list li:first-child { border-top: 1px solid rgba(255, 255, 255, .14); }
.why-list strong { color: var(--white); }

/* precios */
.pricing { background: var(--bg); }
.pricing-panel {
  background: var(--green-soft);
  border: 1px solid #D5E7DD;
  border-radius: 26px;
  padding: 64px 56px;
}
.pricing-head { max-width: 720px; margin-bottom: 44px; }
.pricing-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 18px; }
.pricing-head .accent { color: var(--green); font-style: italic; }
.pricing-lead { color: var(--muted); font-size: 17.5px; }

.pricing-points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 48px;
}
.pricing-points li { display: flex; gap: 14px; align-items: flex-start; }
.pp-ico {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}
.pricing-points strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--green-deep);
}
.pricing-points p { color: var(--muted); font-size: 15px; }

.pricing-cta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  border-top: 1px solid #D5E7DD;
  padding-top: 36px;
}
.pricing-note { color: var(--muted); font-size: 14.5px; }

/* faq */
.faq-wrap {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.faq .section-head { margin-bottom: 0; }

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  padding: 20px 36px 20px 0;
  position: relative;
  transition: color .15s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--green);
  transition: transform .2s;
  font-family: var(--font-body);
  font-weight: 400;
}
.faq-list details[open] summary { color: var(--green-deep); }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p {
  color: var(--muted);
  padding: 0 24px 22px 0;
  font-size: 15.5px;
}

/* cta final */
.cta-final {
  background: linear-gradient(160deg, var(--green-deep) 0%, #11553F 60%, var(--green) 100%);
  color: var(--white);
  text-align: center;
  padding: 110px 0;
}
.cta-mark {
  margin: 0 auto 28px;
  filter: brightness(0) invert(1);
  opacity: .95;
}
.cta-final h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 18px;
}
.cta-final h2 em { font-style: italic; color: #9FE0BF; }
.cta-final p {
  color: #C9E2D3;
  font-size: 18px;
  margin-bottom: 36px;
}
.cta-phone {
  display: block;
  margin-top: 22px;
  font-size: 15px;
  color: #A8CDB8;
  letter-spacing: .04em;
}

/* footer */
.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer p { color: var(--muted); font-size: 14.5px; }
.site-footer small { color: #9AA59E; font-size: 13px; }

/* whatsapp flotante */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* animación reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .why-grid, .faq-wrap { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 30px; max-width: 480px; }
  .services-grid, .steps, .cases-grid { grid-template-columns: 1fr; }
  .pricing-points { grid-template-columns: 1fr; gap: 22px; }
  .pricing-panel { padding: 40px 26px; }
  .main-nav { display: none; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-proof { gap: 26px; }
  .badge-days { right: 0; }
  .badge-pay { left: 0; }
}

@media (max-width: 520px) {
  .nav-cta { padding: 10px 16px; font-size: 13.5px; }
  .brand-name { font-size: 18px; }
  .hero h1 { font-size: 34px; }
}
