/* ============================================================
   FRÍO ECOLOGICO — Plantilla de aire acondicionado
   CSS compilado a partir de styles.scss
   (Si editás el .scss, recompilá con: sass css/styles.scss css/styles.css)
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: #0a1628;
  background: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.accent { color: #55b14e; }

.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; color: #55b14e; margin-bottom: 12px; }
.eyebrow--light { color: #55b14e; }

h1, h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; letter-spacing: -0.01em; line-height: 1; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1rem;
  padding: 16px 28px; border-radius: 6px;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn--sm { padding: 8px 16px; font-size: 0.875rem; border-radius: 4px; }
.btn--lg { padding: 20px 32px; font-size: 1.125rem; border-radius: 12px; }
.btn--whatsapp { background: #25D366; color: #ffffff; }
.btn--whatsapp:hover { background: #1ebe59; transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,0.08); color: #ffffff; border: 1px solid rgba(255,255,255,0.15); }
.btn--ghost:hover { background: rgba(255,255,255,0.15); }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}
.navbar.is-scrolled {
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,180,216,0.15);
}
.navbar__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.navbar__brand { display: flex; align-items: center; gap: 8px; }
.navbar__logo {
  width: 32px; height: 32px; border-radius: 6px; background: #55b14e; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.navbar__brand-text { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: 0.04em; color: #fff; font-size: 1.125rem; }
.navbar__links { display: none; align-items: center; gap: 32px; }
.navbar__links a:not(.btn) { font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.7); transition: color 0.25s ease; }
.navbar__links a:not(.btn):hover { color: #55b14e; }
.navbar__toggle { color: #fff; font-size: 1.375rem; display: block; }
.navbar__mobile {
  max-height: 0; overflow: hidden; background: rgba(10,22,40,0.98);
  transition: max-height 0.3s ease; display: flex; flex-direction: column; gap: 16px; padding: 0 24px;
}
.navbar__mobile.is-open { max-height: 320px; padding: 16px 24px; }
.navbar__mobile a:not(.btn) { color: rgba(255,255,255,0.8); font-size: 0.875rem; font-weight: 500; }
.navbar__mobile-cta { width: fit-content; }

@media (min-width: 768px) {
  .navbar__links { display: flex; }
  .navbar__toggle { display: none; }
}

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; overflow: hidden; background: #0a1628;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1642749776312-aa42ce20c9f5?w=1600&h=900&fit=crop&auto=format');
  background-size: cover; background-position: center; opacity: 0.18;
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,180,216,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 192px; background: linear-gradient(to bottom, transparent, #f0f4f8); }
.hero__content { position: relative; padding: 128px 24px 96px; }
.hero__title { color: #fff; font-size: clamp(3rem, 8vw, 6.5rem); margin-bottom: 24px; }
.hero__text { color: rgba(255,255,255,0.6); font-size: 1.125rem; max-width: 560px; margin-bottom: 40px; line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 64px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.08); }
.hero__scroll-down {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.4); font-size: 1.25rem; animation: bounce 1.8s infinite;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em;
  background: rgba(0,180,216,0.15); color: #55b14e; border: 1px solid rgba(0,180,216,0.3); margin-bottom: 32px;
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: #55b14e; animation: pulse 1.6s infinite; }

.stat__value { color: #fff; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.875rem; }
.stat__label { color: rgba(255,255,255,0.4); font-size: 0.875rem; margin-top: 2px; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -6px); } }

/* ── Servicios ── */
.services { padding: 64px 0; background: #fff; }
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 768px) { .services__grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  padding: 24px; border-radius: 8px; border: 1px solid rgba(10,22,40,0.08);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.service-card:hover { border-color: #55b14e; box-shadow: 0 4px 24px rgba(0,180,216,0.12); transform: translateY(-3px); }
.service-card__icon { color: #55b14e; font-size: 1.5rem; margin-bottom: 12px; }
.service-card__title { font-weight: 600; margin-bottom: 4px; }
.service-card__desc { font-size: 0.875rem; color: #4a6080; }

/* ── Heading genérico ── */
.section-heading { margin-bottom: 56px; }
.section-heading h2 { font-size: clamp(2rem, 5vw, 3.5rem); }

/* ── Misión y Visión ── */
.mission { padding: 96px 0; background: #f0f4f8; }
.mission__grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .mission__grid { grid-template-columns: repeat(2, 1fr); } }

.mission-card { position: relative; overflow: hidden; padding: 40px; border-radius: 12px; height: 100%; }
.mission-card--dark { background: #0a1628; }
.mission-card--light { background: #fff; border: 1px solid rgba(10,22,40,0.08); }

.mission-card__glow {
  position: absolute; top: 0; right: 0; width: 192px; height: 192px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(0,180,216,0.15) 0%, transparent 70%); transform: translate(30%, -30%);
}
.mission-card__glow--light {
  top: auto; bottom: 0; right: auto; left: 0;
  background: radial-gradient(circle, rgba(0,180,216,0.08) 0%, transparent 70%); transform: translate(-30%, 30%);
}

.mission-card__icon {
  position: relative; width: 48px; height: 48px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; background: rgba(0,180,216,0.15); border: 1px solid rgba(0,180,216,0.3); color: #55b14e;
}
.mission-card__icon--light { background: rgba(0,180,216,0.1); border-color: rgba(0,180,216,0.2); }

.mission-card__title { position: relative; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: 0.02em; margin-bottom: 16px; color: #fff; }
.mission-card__title--dark { color: #0a1628; }

.mission-card__text { position: relative; color: rgba(255,255,255,0.65); line-height: 1.7; }
.mission-card__text--dark { color: #4a6080; }

.mission-card__list { position: relative; margin-top: 32px; display: flex; flex-direction: column; gap: 8px; }
.mission-card__list li { position: relative; padding-left: 16px; font-size: 0.875rem; color: rgba(255,255,255,0.5); }
.mission-card__list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: #55b14e; }
.mission-card__list--dark li { color: #4a6080; }

/* ── Galería ── */
.gallery { padding: 96px 0; background: #fff; }
.gallery__header { display: flex; flex-direction: column; gap: 24px; margin-bottom: 48px; }
.gallery__header h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 768px) { .gallery__header { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

.gallery__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); } }
.gallery__empty { text-align: center; color: #4a6080; padding: 40px 0; }

.filter-btn {
  padding: 8px 16px; border-radius: 4px; font-size: 0.875rem; font-weight: 600; color: #4a6080;
  border: 1px solid rgba(10,22,40,0.15); transition: all 0.25s ease; background: transparent;
}
.filter-btn.is-active { background: #0a1628; color: #fff; border-color: #0a1628; }

.gallery-item { border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(10,22,40,0.08); cursor: pointer; }
.gallery-item__media { position: relative; height: 220px; background: #dce6f0; overflow: hidden; }
.gallery-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover .gallery-item__media img { transform: scale(1.07); }
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

.gallery-item__tag {
  position: absolute; top: 12px; left: 12px; padding: 2px 8px; border-radius: 4px;
  font-size: 0.75rem; font-weight: 600; color: #fff; background: #55b14e;
}
.gallery-item__overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px; opacity: 0;
  transition: opacity 0.25s ease; background: linear-gradient(to top, rgba(10,22,40,0.8) 0%, transparent 60%);
}
.gallery-item__overlay span { color: #fff; font-weight: 600; font-size: 0.875rem; }
.gallery-item__body { padding: 16px; background: #fff; }
.gallery-item__title { font-weight: 600; font-size: 0.875rem; color: #0a1628; }
.gallery-item__meta { font-size: 0.75rem; margin-top: 4px; color: #4a6080; }

.gallery-item.is-hidden { display: none; }

/* ── Contacto ── */
.contact { padding: 96px 0; background: #0a1628; }
.contact__grid { display: grid; gap: 64px; align-items: center; }
@media (min-width: 768px) { .contact__grid { grid-template-columns: repeat(2, 1fr); } }

.contact__title { color: #fff; font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 24px; }
.contact__text { color: rgba(255,255,255,0.55); line-height: 1.7; max-width: 420px; margin-bottom: 40px; }
.contact__info { display: flex; flex-direction: column; gap: 20px; }

.info-card {
  display: flex; align-items: flex-start; gap: 16px; padding: 20px; border-radius: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07);
}
.info-card__icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,180,216,0.15); color: #55b14e; margin-top: 2px;
}
.info-card__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; color: #55b14e; margin-bottom: 2px; }
.info-card__value { color: rgba(255,255,255,0.75); font-size: 0.875rem; transition: color 0.25s ease; }
.info-card__value:hover { color: #fff; }

/* ── Footer ── */
.footer { background: #060e1c; border-top: 1px solid rgba(0,180,216,0.1); }
.footer__inner {
  padding: 32px 24px; display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: 16px; text-align: center;
}
@media (min-width: 768px) { .footer__inner { flex-direction: row; text-align: left; } }

.footer__brand { display: flex; align-items: center; gap: 8px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); font-size: 0.875rem; }
.footer__logo { width: 24px; height: 24px; border-radius: 4px; background: #55b14e; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }
.footer__copy { color: rgba(255,255,255,0.3); font-size: 0.75rem; }
.footer__contact { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; color: #25D366; transition: color 0.25s ease; }
.footer__contact:hover { color: #1ebe59; }

/* ── Carrusel (Destacados) ── */
.carousel-container {
  padding: 64px 24px; background: #f0f4f8;
}

.carousel-header {
  text-align: center; margin-bottom: 48px; max-width: 600px; margin-left: auto; margin-right: auto;
}

.carousel-header h2 {
  font-size: clamp(2rem, 5vw, 3rem); color: #0a1628; margin-bottom: 8px;
}

.carousel-wrapper {
  position: relative; display: flex; align-items: center; gap: 24px;
  background: transparent; margin-bottom: 32px;
}

.carousel-viewport {
  flex: 1; overflow: hidden; background: #fff; border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.carousel-track {
  display: flex; gap: 16px; padding: 16px; height: 300px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
  flex: 0 0 calc(33.333% - 11px); height: 268px; border-radius: 8px; overflow: hidden;
  cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carousel-item:hover {
  transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.carousel-item img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Botones de navegación */
.carousel-btn {
  width: 48px; height: 48px; border-radius: 50%; background: #55b14e; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
  transition: background 0.25s ease, transform 0.25s ease; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(85, 177, 78, 0.2);
}

.carousel-btn:hover {
  background: #4a9a3d; transform: scale(1.1);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-btn:disabled {
  background: rgba(85, 177, 78, 0.4); cursor: not-allowed; transform: none;
}

/* Indicadores (dots) */
.carousel-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 16px;
}

.carousel-dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(10, 22, 40, 0.2);
  cursor: pointer; transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot:hover {
  background: rgba(10, 22, 40, 0.4);
}

.carousel-dot.is-active {
  background: #55b14e; transform: scale(1.2);
}

.carousel-item img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ── Modal Lightbox ── */
.carousel-modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fadeIn 0.25s ease; overflow: auto;
}

.carousel-modal[hidden] { display: none !important; }

.carousel-modal__content {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 100%; height: auto; animation: scaleIn 0.25s ease;
}

.carousel-modal__image {
  width: auto; height: auto; max-width: 95vw; max-height: 95vh; object-fit: contain;
  border-radius: 8px; display: block;
}

.carousel-modal__close {
  position: fixed; top: 24px; right: 24px; width: 48px; height: 48px;
  background: rgba(255,255,255,0.15); color: #fff; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  transition: background 0.25s ease, transform 0.25s ease; cursor: pointer; z-index: 101;
}

.carousel-modal__close:hover {
  background: rgba(255,255,255,0.25); transform: rotate(90deg);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ── Botón flotante WhatsApp ── */
.float-whatsapp {
  position: fixed; bottom: 24px; right: 24px; z-index: 50; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: #25D366; color: #fff;
  font-size: 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,0.2); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.float-whatsapp:hover { transform: scale(1.1); box-shadow: 0 8px 24px rgba(37,211,102,0.5); }

/* ── Animación de aparición al hacer scroll ── */
.fade-in { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ── Accesibilidad: reduce motion ── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
