/* ===========================================
   KAIZEN HOME RD — styles.css
   =========================================== */

/* ---------- TOKENS ---------- */
:root {
  --navy:    #12395b;
  --deep:    #082846;
  --sky:     #12aee6;
  --paper:   #ffffff;
  --mist:    #f4f8fb;
  --cyan-soft: #e8f8fd;
  --ink:     #172431;
  --muted:   #5d6975;
  --line:    rgba(18, 57, 91, 0.14);
  --shadow:  0 24px 70px rgba(8, 40, 70, 0.12);
  --wa:      #25d366;
  --radius:  10px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

/* ---------- TYPOGRAPHY ---------- */
.eyebrow {
  color: var(--sky);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
h1 {
  color: var(--deep);
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.01;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
h2 {
  color: var(--navy);
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
h3 {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
h4 {
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 8px;
}
p { line-height: 1.65; }

/* ---------- BUTTONS ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  border: 2px solid transparent;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.button.primary:hover {
  background: var(--deep);
  border-color: var(--deep);
  box-shadow: 0 8px 24px rgba(8, 40, 70, 0.28);
}
.button.secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.button.secondary:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 24px rgba(8, 40, 70, 0.1);
}
.wa-button {
  background: var(--wa);
  color: #fff;
  border-color: var(--wa);
  font-size: 1rem;
  padding: 16px 32px;
}
.wa-button:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
}

/* ===========================================
   HEADER
   =========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.brand-logo { width: clamp(120px, 15vw, 170px); height: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}
.nav a {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 4px 0;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sky);
  transition: width 0.2s ease;
  border-radius: 2px;
}
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { padding: 10px 18px; font-size: 0.88rem; }

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===========================================
   HERO — pantalla completa con foto de casa
   =========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(100px, 14vw, 160px) clamp(18px, 5vw, 72px) clamp(60px, 8vw, 100px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(8, 40, 70, 0.92) 0%,
    rgba(8, 40, 70, 0.78) 50%,
    rgba(18, 57, 91, 0.55) 100%
  );
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-content .eyebrow { color: var(--sky); }
.hero-content h1 { color: #fff; margin-bottom: 22px; }
.hero-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  max-width: 600px;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.hero-trust span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  font-weight: 600;
}
.button.hero-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}
.button.hero-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Floating badges at bottom of hero */
.hero-badges {
  position: absolute;
  bottom: 36px;
  left: clamp(18px, 5vw, 72px);
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hbadge {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.hbadge.active {
  background: var(--sky);
  color: #fff;
  border-color: var(--sky);
}

/* ===========================================
   STATS BAR
   =========================================== */
.stats {
  background: var(--deep);
  padding: clamp(20px, 3vw, 32px) clamp(18px, 5vw, 72px);
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 44px;
  text-align: center;
  gap: 4px;
}
.stat strong {
  color: var(--sky);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
}
.stat span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-sep {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.18);
}

/* ===========================================
   ABOUT / NOSOTROS
   =========================================== */
.about {
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
  padding: clamp(58px, 9vw, 112px) clamp(18px, 5vw, 72px);
}
.about-text > p {
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 600px;
}
.about-text strong { color: var(--navy); }

/* Photo above the office card */
.about-photo {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 20px 60px rgba(8, 40, 70, 0.2);
}
.about-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.about-photo:hover img { transform: scale(1.04); }
.about-photo-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(8, 40, 70, 0.85);
  color: #fff;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.about-photo-badge svg { color: var(--sky); flex-shrink: 0; }
.about-features { display: flex; flex-direction: column; gap: 22px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--cyan-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky);
  margin-top: 2px;
}
.feature-item strong { display: block; color: var(--navy); font-size: 0.98rem; margin-bottom: 4px; }
.feature-item p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.office-card {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(26px, 4vw, 46px);
  box-shadow: var(--shadow);
}
.office-title {
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 22px;
  font-style: normal;
  font-family: inherit;
  letter-spacing: -0.02em;
}
.info-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 0.93rem;
  line-height: 1.5;
}
.info-list li svg { color: var(--sky); flex-shrink: 0; margin-top: 2px; }
.info-list a { color: var(--navy); font-weight: 600; }
.info-list a:hover { color: var(--sky); }

/* ===========================================
   SERVICES
   =========================================== */
.services {
  background: var(--mist);
  padding: clamp(58px, 9vw, 112px) clamp(18px, 5vw, 72px);
}
.section-heading { max-width: 860px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-heading h2 { color: var(--sky); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(8, 40, 70, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(8, 40, 70, 0.13);
}
.service-img {
  height: 180px;
  background-color: var(--cyan-soft);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.service-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.service-body h3 { font-size: 1.05rem; }
.service-body p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.service-badge {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 12px;
  background: var(--cyan-soft);
  color: var(--navy);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  align-self: flex-start;
}

/* ===========================================
   SHOWCASE / GALERÍA
   =========================================== */
.showcase {
  padding: clamp(58px, 9vw, 112px) clamp(18px, 5vw, 72px);
  background: var(--deep);
}
.showcase .section-heading h2 { color: #fff; }
.showcase .eyebrow { color: var(--sky); }
.showcase-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 12px;
}
.showcase-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy);
}
.si-tall { grid-row: span 2; }
.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.showcase-item:hover img { transform: scale(1.07); }
.sc-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 18px;
  background: linear-gradient(transparent, rgba(8, 40, 70, 0.88));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ===========================================
   WHY US — fondo con foto de casa
   =========================================== */
.why {
  position: relative;
  padding: clamp(58px, 9vw, 112px) clamp(18px, 5vw, 72px);
  overflow: hidden;
}
.why-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.why-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(244, 248, 251, 0.94);
}
.why-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.why-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(280px, 1.15fr);
  gap: clamp(36px, 7vw, 80px);
  align-items: center;
}
.why-text h2 { margin-bottom: 16px; }
.why-text > p { color: var(--muted); max-width: 440px; margin-bottom: 28px; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.why-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(8, 40, 70, 0.07);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.why-card:hover { box-shadow: 0 10px 28px rgba(8, 40, 70, 0.13); transform: translateY(-2px); }
.why-icon { font-size: 1.6rem; margin-bottom: 12px; }
.why-card p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* ===========================================
   SOFTWARE
   =========================================== */
.software {
  padding: clamp(58px, 9vw, 112px) clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 88% 8%, rgba(18, 174, 230, 0.2), transparent 32%),
    var(--deep);
  color: #fff;
}
.software .section-heading h2 { color: #fff; }
.software-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(300px, 1.15fr);
  gap: clamp(22px, 5vw, 54px);
  align-items: stretch;
}
.software-intro,
.software-services article {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}
.software-intro { padding: clamp(22px, 4vw, 36px); }
.software-intro h3 {
  color: #fff;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 900;
  margin-bottom: 14px;
  font-family: inherit;
  font-style: normal;
}
.software-intro p, .software-services p { color: rgba(255, 255, 255, 0.7); font-size: 0.93rem; }
.software-visual {
  min-height: 200px;
  position: relative;
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(18, 174, 230, 0.22), transparent 1px) 0 0/32px 32px,
    linear-gradient(rgba(18, 174, 230, 0.22), transparent 1px) 0 0/32px 32px,
    rgba(255, 255, 255, 0.06);
}
.software-visual span {
  position: absolute;
  display: block;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}
.software-visual span:nth-child(1) { width: 66%; height: 52%; left: 12%; top: 18%; }
.software-visual span:nth-child(2) { width: 38%; height: 10%; left: 18%; top: 32%; background: var(--sky); }
.software-visual span:nth-child(3) { width: 24%; height: 46%; right: 10%; bottom: 12%; background: #dff5fb; }
.software-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.software-services article { padding: 20px; }
.software-services strong { display: block; color: var(--sky); font-size: 1.05rem; margin-bottom: 20px; }
.software-services h4 { color: #fff; }

/* ===========================================
   CTA BAND — fondo con villa lujosa
   =========================================== */
.cta-band {
  position: relative;
  padding: clamp(72px, 11vw, 120px) clamp(18px, 5vw, 72px);
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 40, 70, 0.9) 0%,
    rgba(8, 40, 70, 0.75) 100%
  );
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}
.cta-inner h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  margin-bottom: 8px;
}
.cta-inner p { color: rgba(255, 255, 255, 0.72); margin: 0; }

/* ===========================================
   CONTACT
   =========================================== */
.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(58px, 9vw, 112px) clamp(18px, 5vw, 72px);
  background: var(--mist);
}
.contact-text h2 { color: var(--navy); }
.contact-text p { color: var(--muted); max-width: 440px; margin: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.contact-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(8, 40, 70, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  gap: 4px;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(8, 40, 70, 0.13); }
.cc-icon {
  color: var(--sky);
  margin-bottom: 8px;
}
.cc-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.contact-card strong { color: var(--navy); font-size: 0.95rem; overflow-wrap: anywhere; margin-top: 4px; }

/* ===========================================
   FOOTER
   =========================================== */
.footer { background: var(--deep); color: rgba(255, 255, 255, 0.7); }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(400px, 2.2fr);
  gap: clamp(36px, 6vw, 80px);
  padding: clamp(48px, 7vw, 76px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo { width: 140px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer-address { margin-top: 8px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.45); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links > div { display: flex; flex-direction: column; gap: 10px; }
.footer-links strong {
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.footer-links a { font-size: 0.87rem; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--sky); }
.footer-bottom {
  padding: 18px clamp(18px, 5vw, 72px);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
}

/* ===========================================
   FLOATING WHATSAPP
   =========================================== */
.wa-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 500;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 36px rgba(37, 211, 102, 0.65);
}

/* ===========================================
   SCROLL-REVEAL ANIMATIONS
   =========================================== */
.anim {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.anim.visible { opacity: 1; transform: translateY(0); }
.anim-d1 { transition-delay: 0.1s; }
.anim-d2 { transition-delay: 0.2s; }
.anim-d3 { transition-delay: 0.3s; }
.anim-d4 { transition-delay: 0.4s; }

/* Active nav link */
.nav a.nav-active { color: var(--sky); }
.nav a.nav-active::after { width: 100%; }

/* ===========================================
   TESTIMONIALS
   =========================================== */
.testimonials {
  padding: clamp(58px, 9vw, 112px) clamp(18px, 5vw, 72px);
  background: var(--mist);
}
.section-heading.centered { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 54px); }
.section-sub { color: var(--muted); font-size: 1.05rem; margin-top: 8px; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 6px 24px rgba(8, 40, 70, 0.07);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(8, 40, 70, 0.13); }
.tc-stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
}
.tc-stars svg { width: 18px; height: 18px; flex-shrink: 0; }
.testimonial-card blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 0.97rem;
  line-height: 1.68;
  font-style: italic;
  flex: 1;
}
.tc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.tc-author { display: flex; align-items: center; gap: 12px; }
.tc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  flex-shrink: 0;
}
.tc-author strong { display: block; color: var(--navy); font-size: 0.92rem; }
.tc-author span { color: var(--muted); font-size: 0.78rem; }
.tc-service {
  padding: 5px 12px;
  background: var(--cyan-soft);
  color: var(--navy);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

/* ===========================================
   MAP SECTION
   =========================================== */
.map-section {
  position: relative;
  height: 400px;
  background: var(--mist);
}
.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.15) contrast(1.02);
}
.map-overlay-card {
  position: absolute;
  top: 24px;
  left: clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 8px 32px rgba(8, 40, 70, 0.16);
  backdrop-filter: blur(10px);
  max-width: 280px;
}
.map-overlay-card strong { display: block; color: var(--navy); font-size: 1rem; margin-bottom: 8px; }
.map-overlay-card p { color: var(--muted); font-size: 0.88rem; margin: 0 0 2px; }
.map-overlay-card a {
  display: inline-block;
  margin-top: 12px;
  color: var(--sky);
  font-size: 0.85rem;
  font-weight: 700;
}
.map-overlay-card a:hover { color: var(--navy); }

/* ===========================================
   PROJECT PAGES (proyectos.html + sub-páginas)
   =========================================== */
.projects-hero,
.project-index,
.project-detail,
.project-sections {
  padding: clamp(58px, 9vw, 112px) clamp(18px, 5vw, 72px);
}
.projects-hero {
  background:
    radial-gradient(circle at 80% 18%, rgba(18, 174, 230, 0.18), transparent 32%),
    linear-gradient(135deg, #fff 0%, #f5fbfe 100%);
}
.projects-hero p,
.project-detail > p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.14rem;
}
.project-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.project-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(8, 40, 70, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.project-card:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(8, 40, 70, 0.14); }
.project-card h3 {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--navy);
  font-style: normal;
  font-family: inherit;
}
.project-card p { color: var(--muted); font-size: 0.93rem; }
.project-card > a { margin-top: auto; color: var(--sky); font-weight: 700; font-size: 0.92rem; }
.project-status {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 6px 12px;
  color: var(--navy);
  background: var(--cyan-soft);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.project-tags span {
  padding: 5px 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.project-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  background: var(--mist);
}
.project-sections article {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.project-sections h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.project-sections li { margin-bottom: 10px; color: var(--muted); font-size: 0.93rem; }

/* ===========================================
   RESPONSIVE
   =========================================== */

/* Tablet */
@media (max-width: 1080px) {
  .about { grid-template-columns: 1fr; }
  .why-inner { grid-template-columns: 1fr; }
  .software-layout { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .showcase-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .si-tall { grid-row: auto; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .header-cta { display: none; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(20px);
    padding: 8px 0 16px;
    box-shadow: 0 12px 32px rgba(8, 40, 70, 0.12);
    gap: 0;
  }
  .nav.nav-open { display: flex; }
  .nav a {
    width: 100%;
    padding: 14px clamp(18px, 5vw, 32px);
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }

  .hero-badges { display: none; }
  .stats-inner { flex-direction: column; gap: 0; }
  .stat { padding: 14px 28px; }
  .stat-sep { width: 40px; height: 1px; }

  .showcase-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 200px);
  }
  .why-grid { grid-template-columns: 1fr; }
  .software-services { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .project-sections { grid-template-columns: 1fr; }
  .project-toolbar { flex-direction: column; align-items: flex-start; }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero { padding-top: 120px; padding-bottom: 60px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .footer-links { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-inner .wa-button { width: 100%; }
}
