/* ================================================================
   EcoClimaNova — style.css
   Versión 3.0 | Producción | Responsive completo
   Paleta: #67c10f | #1f7a2e | #00a8ff | #005baa | #fff | #f5f5f5 | #1a1a1a
   ================================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── CSS Variables ── */
:root {
  --green:       #67c10f;
  --green-dark:  #1f7a2e;
  --green-mid:   #4da30a;
  --blue:        #00a8ff;
  --blue-deep:   #005baa;
  --white:       #ffffff;
  --gray-light:  #f5f5f5;
  --gray-mid:    #6b7280;
  --gray-dark:   #1a1a1a;
  --glass:       rgba(255,255,255,0.07);
  --glass-b:     rgba(255,255,255,0.13);
  --sh-sm:       0 2px 16px rgba(0,0,0,0.07);
  --sh-md:       0 8px 40px rgba(0,0,0,0.11);
  --sh-lg:       0 24px 64px rgba(0,0,0,0.17);
  --sh-green:    0 6px 28px rgba(103,193,15,0.28);
  --sh-blue:     0 6px 28px rgba(0,168,255,0.22);
  --r-sm:        8px;
  --r-md:        16px;
  --r-lg:        24px;
  --r-xl:        40px;
  --ease:        all 0.35s cubic-bezier(0.4,0,0.2,1);
  --font-head:   'Outfit', sans-serif;
  --font-body:   'DM Sans', sans-serif;
}

/* ── Reset ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-body); color: var(--gray-dark); background: var(--white); overflow-x: hidden; line-height: 1.65; width: 100%; max-width: 100vw; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.14; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }

/* ── Critical overflow guard ── */
.container, .container-fluid { max-width: 100%; overflow-x: hidden; }
section { overflow-x: hidden; }
.row { --bs-gutter-x: 1.5rem; margin-left: 0; margin-right: 0; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--gray-light); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 99px; }


/* ================================================================
   PAGE LOADER
   ================================================================ */
#pageLoader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--gray-dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#pageLoader.hide { opacity: 0; visibility: hidden; pointer-events: none; }

/* Logo in loader
   ── Reemplazá /assets/img/logo-white.svg con tu logo real ── */
.loader-logo {
  width: 200px;
  /* Si usás logo.png: width: 200px; */
}

.loader-bar-wrap {
  width: 180px; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px; overflow: hidden;
}

.loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: 99px;
  animation: loaderFill 1.2s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes loaderFill {
  from { width: 0; }
  to   { width: 100%; }
}

.loader-text {
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 600;
  color: rgba(255,255,255,0.35); letter-spacing: 1.5px; text-transform: uppercase;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%,100% { opacity: 0.35; }
  50%     { opacity: 0.7; }
}


/* ================================================================
   NAVBAR
   ================================================================ */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 14px 0;
  transition: var(--ease);
  background: transparent;
  width: 100%; max-width: 100vw;
}

#mainNav .container {
  padding-left: 16px;
  padding-right: 16px;
}

#mainNav.scrolled {
  padding: 10px 0;
  background: rgba(26,26,26,0.92);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

/* Logo */
.nav-logo {
  height: 34px; width: auto; max-width: 160px;
  object-fit: contain; flex-shrink: 0;
}

.nav-logo-fallback {
  display: none;
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
  color: #fff; letter-spacing: -0.3px; white-space: nowrap;
}

.nav-logo-fallback span { color: var(--green); }

/* Nav links */
.navbar-nav .nav-link {
  color: rgba(255,255,255,0.82) !important;
  font-family: var(--font-head); font-weight: 500; font-size: 0.88rem;
  letter-spacing: 0.2px; padding: 8px 12px !important;
  border-radius: 99px; transition: var(--ease); position: relative;
}

.navbar-nav .nav-link::after {
  content: ''; position: absolute; bottom: 2px; left: 50%;
  transform: translateX(-50%); width: 0; height: 2px;
  background: var(--green); border-radius: 99px; transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover { color: #fff !important; }
.navbar-nav .nav-link:hover::after { width: 58%; }

.btn-nav-cta {
  background: linear-gradient(135deg, var(--green), var(--green-mid)) !important;
  color: #fff !important; border-radius: 99px !important;
  padding: 8px 20px !important; font-weight: 700 !important; font-size: 0.85rem !important;
  box-shadow: var(--sh-green); transition: var(--ease) !important;
  white-space: nowrap;
}

.btn-nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(103,193,15,0.48) !important; }
.btn-nav-cta::after { display: none !important; }

/* Hamburger */
.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.3); border-radius: var(--r-sm);
  padding: 6px 9px; flex-shrink: 0;
}

.navbar-toggler:focus { box-shadow: none; outline: none; }

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.2em; height: 1.2em;
}

/* Mobile collapse panel */
.navbar-collapse {
  width: 100%;
}

@media (max-width: 991.98px) {
  #mainNav .container {
    flex-wrap: nowrap;
    align-items: center;
  }

  .navbar-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(15,15,20,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 16px 16px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    /* prevent off-screen spill */
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .navbar-collapse .navbar-nav {
    gap: 2px !important;
    flex-direction: column !important;
    width: 100%;
  }

  .navbar-collapse .nav-link {
    padding: 11px 14px !important;
    border-radius: var(--r-sm) !important;
    font-size: 0.95rem !important;
    width: 100%;
  }

  .navbar-collapse .nav-link:hover {
    background: rgba(103,193,15,0.1);
  }

  .navbar-collapse .nav-link::after { display: none !important; }

  .navbar-collapse .btn-nav-cta {
    display: block !important;
    text-align: center;
    margin-top: 10px;
    border-radius: var(--r-sm) !important;
    padding: 12px 20px !important;
    width: 100%;
  }

  /* Hide desktop CTA button */
  .d-none.d-lg-flex { display: none !important; }
}


/* ================================================================
   HERO
   ================================================================ */
#hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center;
  overflow: hidden; background: var(--gray-dark);
  width: 100%; max-width: 100vw;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 72% 38%, rgba(0,168,255,0.16) 0%, transparent 58%),
    radial-gradient(ellipse 58% 48% at 18% 72%, rgba(103,193,15,0.14) 0%, transparent 54%),
    linear-gradient(135deg, #0d1117 0%, #0a1628 52%, #111a10 100%);
  z-index: 0;
}

.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(103,193,15,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103,193,15,0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  animation: gridDrift 22s linear infinite;
}

@keyframes gridDrift {
  0%   { transform: translate(0,0); }
  100% { transform: translate(58px,58px); }
}

.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.42;
  animation: orbFloat 9s ease-in-out infinite; z-index: 0;
}

.hero-orb-1 { width: 480px; height: 480px; background: radial-gradient(circle, var(--blue), transparent 68%); top: -14%; right: -4%; animation-delay: 0s; }
.hero-orb-2 { width: 340px; height: 340px; background: radial-gradient(circle, var(--green), transparent 68%); bottom: 8%; left: -5%; animation-delay: 3.5s; }
.hero-orb-3 { width: 240px; height: 240px; background: radial-gradient(circle, var(--blue-deep), transparent 68%); top: 42%; left: 36%; animation-delay: 7s; }

@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-28px) scale(1.05); }
}

.particle {
  position: absolute; border-radius: 50%;
  opacity: 0; animation: particleFly linear infinite; z-index: 0;
}

@keyframes particleFly {
  0%   { opacity: 0; transform: translateY(100vh) scale(0); }
  10%  { opacity: 0.55; }
  90%  { opacity: 0.28; }
  100% { opacity: 0; transform: translateY(-8vh) scale(1); }
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(103,193,15,0.11);
  border: 1px solid rgba(103,193,15,0.28);
  border-radius: 99px; padding: 6px 16px;
  color: var(--green); font-family: var(--font-head); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.5px; text-transform: uppercase;
  margin-bottom: 22px; backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 7px; height: 7px; background: var(--green);
  border-radius: 50%; animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.45); }
}

.hero-title {
  font-size: clamp(2.3rem, 5.2vw, 4.4rem);
  font-weight: 900; color: #fff; line-height: 1.07;
  margin-bottom: 18px; letter-spacing: -1.4px;
}

.grad-text {
  background: linear-gradient(90deg, var(--green) 0%, var(--blue) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-sub {
  font-size: clamp(0.97rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.6); font-weight: 300;
  max-width: 520px; line-height: 1.78; margin-bottom: 38px;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-hero-primary {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: #fff; border: none; padding: 15px 32px; border-radius: 99px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.94rem;
  cursor: pointer; transition: var(--ease); box-shadow: var(--sh-green);
  display: inline-flex; align-items: center; gap: 9px;
}

.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 38px rgba(103,193,15,0.52); color: #fff; }

.btn-hero-ghost {
  background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.18); padding: 15px 32px;
  border-radius: 99px; font-family: var(--font-head); font-weight: 600;
  font-size: 0.94rem; cursor: pointer; transition: var(--ease);
  backdrop-filter: blur(10px); display: inline-flex; align-items: center; gap: 9px;
}

.btn-hero-ghost:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.38); transform: translateY(-3px); color: #fff; }

.hero-stats {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.stat-num {
  font-family: var(--font-head); font-size: 2rem; font-weight: 900; line-height: 1;
  background: linear-gradient(90deg, var(--green), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 3px;
}

.stat-lbl { font-size: 0.8rem; color: rgba(255,255,255,0.42); text-transform: uppercase; letter-spacing: 0.5px; }

.hero-card-main {
  background: rgba(255,255,255,0.05); backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,0.11); border-radius: var(--r-lg);
  padding: 38px 36px; max-width: 390px; width: 100%;
  box-shadow: var(--sh-lg); animation: cardLevitate 6s ease-in-out infinite;
}

@keyframes cardLevitate {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.card-ico {
  width: 66px; height: 66px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; color: #fff; margin-bottom: 22px;
}

.hero-card-main h3 { font-size: 1.45rem; color: #fff; margin-bottom: 10px; }
.hero-card-main p  { color: rgba(255,255,255,0.52); font-size: 0.88rem; line-height: 1.72; }

.mini-row { display: flex; gap: 10px; margin-top: 22px; }

.mini-stat {
  flex: 1; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09); border-radius: var(--r-sm); padding: 11px; text-align: center;
}

.mini-stat .mn { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; color: var(--green); }
.mini-stat .ml { font-size: 0.68rem; color: rgba(255,255,255,0.38); text-transform: uppercase; letter-spacing: 0.3px; }

.float-card {
  position: absolute; background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--r-md); padding: 13px 17px;
  display: flex; align-items: center; gap: 9px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.float-card-1 { top: -18px; right: -28px; animation: cardLevitate 5s ease-in-out infinite 1s; }
.float-card-2 { bottom: 28px; left: -38px; animation: cardLevitate 5s ease-in-out infinite 3s; }
.float-card span { font-size: 0.8rem; color: rgba(255,255,255,0.8); font-weight: 500; }

.scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: rgba(255,255,255,0.35); font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; z-index: 2;
}

.scroll-mouse {
  width: 21px; height: 34px; border: 2px solid rgba(255,255,255,0.28);
  border-radius: 99px; display: flex; justify-content: center; padding-top: 5px;
}

.scroll-mouse::after {
  content: ''; width: 3px; height: 7px; background: var(--green);
  border-radius: 99px; animation: mouseScroll 1.8s ease-in-out infinite;
}

@keyframes mouseScroll {
  0%,100% { transform: translateY(0); opacity: 1; }
  80%      { transform: translateY(9px); opacity: 0; }
}


/* ================================================================
   SECTIONS — Shared
   ================================================================ */
section { padding: 96px 0; }

.s-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(103,193,15,0.09); border: 1px solid rgba(103,193,15,0.2);
  border-radius: 99px; padding: 5px 14px; color: var(--green-dark);
  font-family: var(--font-head); font-weight: 700; font-size: 0.77rem;
  letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 14px;
}

.s-title {
  font-size: clamp(1.85rem, 3.3vw, 2.95rem);
  font-weight: 800; color: var(--gray-dark); letter-spacing: -0.7px; margin-bottom: 16px;
}

.s-sub { font-size: 1.03rem; color: var(--gray-mid); max-width: 570px; line-height: 1.75; }

.grad-line {
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: 99px; margin: 18px 0 34px;
}

/* ── Shared buttons ── */

.btn-primary {
  background: linear-gradient(
    135deg,
    #0b5d3f 0%,
    #0f7a52 50%,
    #0b5d3f 100%
  );

  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.08);

  padding: 14px 32px;
  border-radius: 999px;

  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;

  cursor: pointer;
  transition: all 0.35s ease;

  display: inline-flex;
  align-items: center;
  gap: 9px;

  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.25),
    0 0 0 rgba(0, 255, 170, 0);

  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    #11996a 0%,
    #16c784 50%,
    #11a36f 100%
  );

  transform: translateY(-3px);

  box-shadow:
    0 0 15px rgba(0, 255, 170, 0.45),
    0 0 35px rgba(0, 255, 170, 0.25),
    0 12px 30px rgba(0, 0, 0, 0.35);

  filter: brightness(1.08);
}



/* ================================================================
   ABOUT
   ================================================================ */
#about { background: var(--gray-light); }

.about-img-ph {
  width: 100%; aspect-ratio: 4/3; border-radius: var(--r-lg);
  background: linear-gradient(135deg, #0d1117, #0a1628, #111a10);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  position: relative; overflow: hidden;
}

.about-img-ph::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 45% at 70% 40%, rgba(0,168,255,0.18), transparent),
              radial-gradient(ellipse 48% 38% at 28% 70%, rgba(103,193,15,0.13), transparent);
}

/* ── IMPORTANT: Replace logo placeholder in About section ──
   When you have a photo, replace the entire .about-img-ph div with:
   <img src="assets/img/tu-foto-equipo.jpg" alt="Equipo EcoClimaNova"
        class="img-fluid rounded-4 w-100" style="object-fit:cover;aspect-ratio:4/3;">
── */
.about-img-ph-ico { font-size: 5rem; color: var(--green); opacity: 0.75; position: relative; z-index: 1; }
.about-img-ph p   { color: rgba(255,255,255,0.45); font-size: 0.87rem; position: relative; z-index: 1; }

.exp-pill {
  position: absolute; bottom: 22px; right: 22px;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: #fff; border-radius: var(--r-md); padding: 14px 20px; text-align: center;
  box-shadow: var(--sh-green);
}

.exp-pill .en { font-family: var(--font-head); font-size: 2.1rem; font-weight: 900; line-height: 1; }
.exp-pill .el { font-size: 0.76rem; opacity: 0.82; font-weight: 500; }

.af { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }

.af-ico {
  width: 46px; height: 46px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(103,193,15,0.11), rgba(0,168,255,0.07));
  border: 1px solid rgba(103,193,15,0.18); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; color: var(--green);
}

.af h5 { font-size: 0.93rem; font-weight: 700; color: var(--gray-dark); margin-bottom: 3px; }
.af p  { font-size: 0.86rem; color: var(--gray-mid); line-height: 1.62; margin: 0; }


/* ================================================================
   SERVICES (Home)
   ================================================================ */
#services { background: var(--white); }

.svc-card {
  background: var(--white); border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--r-md); padding: 34px 26px; height: 100%;
  transition: var(--ease); position: relative; overflow: hidden; cursor: pointer;
}

.svc-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(103,193,15,0.04), rgba(0,168,255,0.04));
  opacity: 0; transition: opacity 0.35s ease;
}

.svc-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--green), var(--blue));
  transform: scaleX(0); transition: transform 0.35s ease;
}

.svc-card:hover { transform: translateY(-7px); box-shadow: var(--sh-md); border-color: rgba(103,193,15,0.2); }
.svc-card:hover::before { opacity: 1; }
.svc-card:hover::after  { transform: scaleX(1); }
.svc-card:hover .svc-ico { transform: scale(1.1) rotate(-5deg); }

.svc-ico {
  width: 60px; height: 60px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.45rem; color: #fff; margin-bottom: 20px;
  transition: var(--ease); box-shadow: var(--sh-green); position: relative; z-index: 1;
}

.svc-ico.blue { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); box-shadow: var(--sh-blue); }

.svc-card h4 { font-size: 1.06rem; font-weight: 700; color: var(--gray-dark); margin-bottom: 9px; position: relative; z-index: 1; }
.svc-card p  { font-size: 0.86rem; color: var(--gray-mid); line-height: 1.7; position: relative; z-index: 1; margin: 0; }


/* ================================================================
   BENEFITS
   ================================================================ */
#benefits {
  background: linear-gradient(135deg, #0d1117 0%, #0a1628 58%, #111a10 100%);
  position: relative; overflow: hidden;
}

#benefits::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 58% 48% at 80% 28%, rgba(0,168,255,0.11), transparent),
              radial-gradient(ellipse 48% 40% at 18% 82%, rgba(103,193,15,0.09), transparent);
}

#benefits .s-title { color: #fff; }
#benefits .s-sub   { color: rgba(255,255,255,0.52); }

.ben-card {
  background: var(--glass); backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.09); border-radius: var(--r-md);
  padding: 30px 24px; height: 100%; transition: var(--ease); position: relative; z-index: 1;
}

.ben-card:hover { background: var(--glass-b); border-color: rgba(103,193,15,0.28); transform: translateY(-5px); }

.ben-ico {
  font-size: 2.4rem; display: block; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.ben-card h5 { font-size: 0.97rem; font-weight: 700; color: #fff; margin-bottom: 9px; }
.ben-card p  { font-size: 0.84rem; color: rgba(255,255,255,0.48); line-height: 1.7; margin: 0; }


/* ================================================================
   TESTIMONIALS
   ================================================================ */
#testimonials { background: var(--gray-light); }

.swiper-testi { padding-bottom: 48px !important; }

.testi-card {
  background: var(--white); border-radius: var(--r-md); padding: 34px 28px;
  box-shadow: var(--sh-sm); border: 1px solid rgba(0,0,0,0.055); height: 100%;
}

.stars { color: #fbbf24; font-size: 0.95rem; margin-bottom: 16px; }

.testi-card p {
  font-size: 0.93rem; color: var(--gray-mid); line-height: 1.76; margin-bottom: 22px;
  font-style: italic;
}

.testi-card p::before { content: '"'; font-size: 2rem; color: var(--green); line-height: 0; vertical-align: -0.45rem; margin-right: 3px; font-style: normal; }

.testi-author { display: flex; align-items: center; gap: 13px; }

.t-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: #fff;
}

.t-name { font-weight: 700; font-size: 0.9rem; color: var(--gray-dark); margin-bottom: 2px; }
.t-role { font-size: 0.77rem; color: var(--gray-mid); }

.swiper-pagination-bullet       { background: var(--green) !important; }
.swiper-pagination-bullet-active{ background: var(--green-dark) !important; }


/* ================================================================
   CONTACT
   ================================================================ */
#contact { background: var(--white); }

.contact-box { background: var(--gray-light); border-radius: var(--r-lg); padding: 46px 38px; height: 100%; }

.ci { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 26px; }

.ci-ico {
  width: 44px; height: 44px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; color: #fff; box-shadow: var(--sh-green);
}

.ci h6 { font-weight: 700; font-size: 0.86rem; color: var(--gray-dark); margin-bottom: 2px; }
.ci p  { font-size: 0.85rem; color: var(--gray-mid); margin: 0; }

.map-ph {
  border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16/7;
  background: linear-gradient(135deg, #e6f5d4, #cce8ff);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; border: 1px solid rgba(0,0,0,0.06);
}

.map-ph i { font-size: 2.8rem; color: var(--green); }
.map-ph p { font-size: 0.84rem; color: var(--gray-mid); margin: 0; }

.form-label { font-weight: 600; font-size: 0.86rem; color: var(--gray-dark); margin-bottom: 5px; }

.form-control, .form-select {
  border: 1.5px solid rgba(0,0,0,0.09); border-radius: var(--r-sm);
  padding: 12px 15px; font-size: 0.88rem; color: var(--gray-dark);
  background: var(--white); transition: var(--ease); font-family: var(--font-body);
}

.form-control:focus, .form-select:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(103,193,15,0.11); outline: none;
}

textarea.form-control { resize: vertical; min-height: 115px; }

.btn-submit {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: #fff; border: none; padding: 14px 38px; border-radius: 99px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.93rem;
  width: 100%; cursor: pointer; transition: var(--ease); box-shadow: var(--sh-green);
  display: flex; align-items: center; justify-content: center; gap: 9px;
}

.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 12px 38px rgba(103,193,15,0.48); }


/* ================================================================
   FOOTER
   ================================================================ */
#footer { background: var(--gray-dark); padding: 68px 0 0; color: rgba(255,255,255,0.68); }

/* ── Logo in footer
   Replace /assets/img/logo-white.svg with your real logo
── */
.footer-logo { height: 36px; width: auto; object-fit: contain; }

.footer-desc { font-size: 0.86rem; line-height: 1.76; color: rgba(255,255,255,0.42); max-width: 275px; margin: 14px 0 22px; }

.soc { display: flex; gap: 9px; }

.soc-btn {
  width: 36px; height: 36px; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); font-size: 0.88rem; transition: var(--ease);
}

.soc-btn:hover { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-3px); }

.f-head { font-size: 0.83rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 18px; }

.f-links { list-style: none; padding: 0; }
.f-links li { margin-bottom: 9px; }

.f-links a { font-size: 0.85rem; color: rgba(255,255,255,0.42); transition: var(--ease); display: inline-flex; align-items: center; gap: 5px; }
.f-links a:hover { color: rgba(255,255,255,0.82); padding-left: 4px; }

.footer-bottom {
  margin-top: 48px; padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.28); margin: 0; }
.footer-bottom span { color: var(--green); }


/* ================================================================
   WHATSAPP FAB
   ================================================================ */
.wa-btn {
  position: fixed; bottom: 26px; right: 26px; z-index: 998;
  width: 56px; height: 56px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem; color: #fff;
  box-shadow: 0 6px 28px rgba(37,211,102,0.48);
  transition: var(--ease); animation: waPop 2s ease-in-out infinite 4s;
}

.wa-btn:hover { transform: scale(1.1); box-shadow: 0 10px 38px rgba(37,211,102,0.58); color: #fff; }

@keyframes waPop {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.wa-tip {
  position: absolute; right: 64px; top: 50%; transform: translateY(-50%);
  background: var(--gray-dark); color: #fff; font-size: 0.8rem; font-weight: 600;
  padding: 6px 13px; border-radius: 99px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: var(--ease);
}

.wa-btn:hover .wa-tip { opacity: 1; }


/* ================================================================
   PAGE HERO (servicios.html)
   ================================================================ */
.page-hero {
  background: linear-gradient(135deg, #0d1117 0%, #0a1628 58%, #111a10 100%);
  padding: 136px 0 76px; position: relative; overflow: hidden;
}

.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 58% 48% at 72% 28%, rgba(0,168,255,0.14), transparent),
              radial-gradient(ellipse 48% 38% at 20% 72%, rgba(103,193,15,0.11), transparent);
}

.page-hero .s-title { color: #fff; }
.page-hero .s-sub   { color: rgba(255,255,255,0.52); }


/* ================================================================
   PORTFOLIO — servicios.html
   ================================================================ */

/* ── Filter strip ──  */
.filter-strip {
  background: var(--white); padding: 22px 0 0;
  position: sticky; top: 64px; z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.06); margin-bottom: 34px;
}

.filter-wrap { display: flex; gap: 7px; flex-wrap: wrap; padding-bottom: 16px; justify-content: center; }

.f-btn {
  background: var(--white); border: 1.5px solid rgba(0,0,0,0.09); border-radius: 99px;
  padding: 7px 18px; font-family: var(--font-head); font-size: 0.82rem;
  font-weight: 600; color: var(--gray-mid); cursor: pointer;
  transition: var(--ease); white-space: nowrap;
}

.f-btn:hover, .f-btn.active {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  border-color: transparent; color: #fff; box-shadow: var(--sh-green); transform: translateY(-2px);
}

/* ── Gallery count ── */
.gallery-count { font-size: 0.83rem; color: var(--gray-mid); text-align: center; margin-bottom: 22px; }
.gallery-count b { color: var(--green); }

/* ================================================================
   MASONRY GALLERY
   ── CSS columns masonry — no JS library needed
   ── Supports vertical, horizontal, square photos
   ── object-fit: cover = NEVER distorted
   ── 3 col → desktop | 2 → tablet | 1 → mobile
   ── Scales to 100+ images without breaking
   ================================================================ */
.gallery-masonry {
  columns: 3 270px;
  column-gap: 16px;
}

@media (max-width: 991px) { .gallery-masonry { columns: 2 240px; } }
@media (max-width: 575px) { .gallery-masonry { columns: 1; } }

/* ── Work card ── */
.work-card {
  break-inside: avoid;
  margin-bottom: 16px; display: block;
  border-radius: 13px; overflow: hidden;
  background: #0d1117; cursor: pointer;
  box-shadow: 0 3px 18px rgba(0,0,0,0.11);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s ease;
}

.work-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.2); }
.work-card.hidden { display: none; }

/* ── Work image
   KEY: object-fit keeps every photo shape intact.
   Vertical (phone shot), landscape, square — all work perfectly.
   ── */
.work-img-wrap { position: relative; overflow: hidden; }

.work-img {
  width: 100%; height: auto; /* preserves original aspect ratio */
  display: block; object-fit: cover;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}

.work-card:hover .work-img { transform: scale(1.06); }

/* For very wide panoramic shots — optional height cap */
.work-card.panoramic .work-img { max-height: 235px; object-fit: cover; }

/* ── Overlay ── */
.work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,12,4,.92) 0%, rgba(4,12,4,.5) 42%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px; opacity: 0; transition: opacity 0.34s ease;
}

.work-card:hover .work-overlay { opacity: 1; }

.w-cat {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(103,193,15,.86); backdrop-filter: blur(8px);
  color: #fff; font-size: 0.69rem; font-weight: 700;
  letter-spacing: .55px; text-transform: uppercase;
  padding: 3px 11px; border-radius: 99px;
  margin-bottom: 7px; width: fit-content;
  font-family: var(--font-head);
}

.w-cat.blue   { background: rgba(0,168,255,.86); }
.w-cat.orange { background: rgba(251,146,60,.86); }

.work-overlay h5 { color: #fff; font-size: .93rem; font-weight: 700; margin-bottom: 3px; line-height: 1.3; font-family: var(--font-head); }
.work-overlay p  { color: rgba(255,255,255,.68); font-size: .78rem; margin: 0; line-height: 1.5; }

.w-zoom {
  position: absolute; top: 11px; right: 11px;
  width: 33px; height: 33px; background: rgba(255,255,255,.11);
  backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .78rem; opacity: 0; transform: scale(.7);
  transition: all .3s ease;
}

.work-card:hover .w-zoom { opacity: 1; transform: scale(1); }

/* ── Placeholder (while you add real photos) ── */
.work-ph {
  width: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #0d1117 0%, #0d2210 55%, #0a1628 100%);
  color: rgba(255,255,255,.26); font-size: .77rem; letter-spacing: .3px;
}

.work-ph i { font-size: 2.5rem; opacity: .32; }
.work-ph.ph-tall   { height: 330px; }
.work-ph.ph-square { height: 235px; }
.work-ph.ph-wide   { height: 172px; }


/* ================================================================
   PROCESS STEPS (servicios.html)
   ================================================================ */
.step-row { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }

.step-n {
  width: 46px; height: 46px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 900; font-size: 1rem; color: #fff;
  box-shadow: var(--sh-green);
}

.step-c h5 { font-weight: 700; font-size: .94rem; color: var(--gray-dark); margin-bottom: 3px; }
.step-c p  { font-size: .84rem; color: var(--gray-mid); line-height: 1.62; margin: 0; }


/* ================================================================
   PRICING CARDS (servicios.html)
   ================================================================ */
.price-card {
  background: var(--white); border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 20px; padding: 36px 28px; text-align: center;
  transition: var(--ease); position: relative; overflow: hidden; height: 100%;
}

.price-card.featured {
  background: linear-gradient(135deg, #0d1117, #0a1628);
  border-color: rgba(103,193,15,.28); box-shadow: 0 20px 56px rgba(0,0,0,.2);
}

.price-card:not(.featured):hover { transform: translateY(-8px); box-shadow: var(--sh-md); border-color: rgba(103,193,15,.2); }
.price-card.featured:hover { transform: translateY(-6px); }

.p-badge {
  position: absolute; top: 15px; right: 15px;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: #fff; font-size: .67rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; padding: 3px 11px; border-radius: 99px; font-family: var(--font-head);
}

.p-ico {
  width: 58px; height: 58px; border-radius: 13px;
  background: linear-gradient(135deg, rgba(103,193,15,.1), rgba(0,168,255,.07));
  border: 1px solid rgba(103,193,15,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.48rem; color: var(--green); margin: 0 auto 15px;
}

.price-card.featured .p-ico { background: rgba(103,193,15,.14); border-color: rgba(103,193,15,.28); }

.p-title { font-family: var(--font-head); font-size: 1.08rem; font-weight: 800; color: var(--gray-dark); margin-bottom: 7px; }
.price-card.featured .p-title { color: #fff; }

.p-desc { font-size: .83rem; color: var(--gray-mid); margin-bottom: 20px; line-height: 1.6; }
.price-card.featured .p-desc { color: rgba(255,255,255,.48); }

.p-list { list-style: none; padding: 0; text-align: left; margin-bottom: 22px; }
.p-list li { font-size: .85rem; color: var(--gray-mid); padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,.05); display: flex; align-items: center; gap: 9px; }
.price-card.featured .p-list li { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.06); }
.p-list li i { color: var(--green); font-size: .74rem; flex-shrink: 0; }

.btn-p {
  display: block; width: 100%; padding: 12px; border-radius: 99px;
  font-family: var(--font-head); font-weight: 700; font-size: .88rem;
  border: none; cursor: pointer; transition: var(--ease);
}

.btn-p-outline { background: transparent; border: 1.5px solid rgba(0,0,0,.11); color: var(--gray-dark); }
.btn-p-outline:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn-p-solid { background: linear-gradient(135deg, var(--green), var(--green-mid)); color: #fff; box-shadow: var(--sh-green); }
.btn-p-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(103,193,15,.48); }


/* ================================================================
   CTA STRIP (servicios.html)
   ================================================================ */
.cta-strip {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 50%, var(--blue-deep) 100%);
  border-radius: 22px; padding: 54px 36px; text-align: center;
  position: relative; overflow: hidden;
}

.cta-strip::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='2' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E");
}

.cta-strip h2 { color: #fff; font-size: clamp(1.5rem,3vw,2.3rem); font-weight: 900; margin-bottom: 12px; position: relative; }
.cta-strip p  { color: rgba(255,255,255,.78); max-width: 480px; margin: 0 auto 26px; position: relative; }

.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

.btn-cta-w {
  background: #fff; color: var(--green-dark); border: none;
  padding: 13px 30px; border-radius: 99px;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  cursor: pointer; transition: var(--ease); box-shadow: 0 6px 22px rgba(0,0,0,.17);
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}

.btn-cta-w:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.23); color: var(--green-dark); }

.btn-cta-g {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4);
  padding: 13px 30px; border-radius: 99px;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  cursor: pointer; transition: var(--ease);
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}

.btn-cta-g:hover { background: rgba(255,255,255,.1); border-color: #fff; transform: translateY(-3px); color: #fff; }


/* ================================================================
   UTILITIES
   ================================================================ */
.text-green { color: var(--green) !important; }
.text-blue  { color: var(--blue) !important; }

/* AOS pointer-events fix */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* Animations */
@keyframes fadeInUp   { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInLeft { from { opacity:0; transform:translateX(-28px); } to { opacity:1; transform:translateX(0); } }


/* ================================================================
   RESPONSIVE — Mobile First
   ================================================================ */

/* ── Tablet / small desktop ── */
@media (max-width: 991.98px) {
  section { padding: 68px 0; }

  /* Hero */
  .hero-card-main, .float-card { display: none !important; }
  .hero-title  { letter-spacing: -0.8px; }
  .hero-stats  { gap: 18px; }
  .hero-content { padding-top: 20px; }

  /* Gallery / filter */
  .filter-strip { top: 56px; }
  .gallery-masonry { columns: 2 220px; }
}

/* ── Mobile landscape + large phones ── */
@media (max-width: 767.98px) {
  section { padding: 52px 0; }

  /* Hero */
  #hero { min-height: 100svh; padding-top: 80px; padding-bottom: 40px; }
  .hero-title { font-size: clamp(1.9rem, 7vw, 2.6rem); letter-spacing: -0.5px; }
  .hero-sub   { font-size: 0.95rem; }
  .hero-btns  { flex-direction: column; width: 100%; }
  .btn-hero-primary,
  .btn-hero-ghost { width: 100%; justify-content: center; padding: 14px 20px; }
  .hero-stats { gap: 14px; flex-wrap: wrap; }
  .stat-num   { font-size: 1.6rem; }

  /* Sections */
  .s-title      { font-size: clamp(1.6rem, 5.5vw, 2rem); }
  .s-sub        { font-size: 0.93rem; }
  .grad-line    { margin: 14px 0 26px; }

  /* Service cards */
  .svc-card { padding: 24px 18px; }

  /* Contact */
  .contact-box { padding: 26px 18px; }

  /* Footer */
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }

  /* CTA strip */
  .cta-strip { padding: 34px 16px; }
  .cta-btns  { flex-direction: column; align-items: stretch; }
  .btn-cta-w,
  .btn-cta-g { width: 100%; justify-content: center; }

  /* WhatsApp FAB */
  .wa-btn { bottom: 16px; right: 16px; width: 50px; height: 50px; font-size: 1.35rem; }

  /* Pricing cards */
  .price-card { padding: 28px 20px; }

  /* Gallery filter — horizontal scroll on mobile */
  .filter-wrap {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    justify-content: flex-start;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-wrap::-webkit-scrollbar { display: none; }
  .f-btn { flex-shrink: 0; }

  /* Gallery masonry 1 col on small mobile */
  .gallery-masonry { columns: 1; }

  /* Page hero */
  .page-hero { padding: 110px 0 52px; }
}

/* ── Small phones (≤ 480px) ── */
@media (max-width: 480px) {
  #mainNav .container { padding-left: 12px; padding-right: 12px; }

  .nav-logo { height: 28px; }

  .hero-title { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .hero-badge { font-size: 0.72rem; padding: 5px 12px; }

  .s-title { font-size: 1.55rem; }

  .ben-card  { padding: 24px 16px; }
  .svc-card  { padding: 22px 16px; }
  .testi-card{ padding: 26px 18px; }

  .hero-stats { gap: 10px; }
  .stat-num   { font-size: 1.4rem; }

  /* Footer columns stacked */
  #footer .row > div { margin-bottom: 8px; }

  /* Gallery */
  .gallery-masonry { columns: 1; column-gap: 0; }
  .work-card { margin-bottom: 12px; }

  /* CTA */
  .cta-strip h2 { font-size: 1.4rem; }
  .cta-strip p  { font-size: 0.88rem; }
}
