/**
 * FRIO SERVICIOS L.S. - Components CSS
 */

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  user-select: none;
  min-height: 44px;
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-dark);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-brand-blue);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: #ffffff;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-hero-secondary {
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
  backdrop-filter: blur(4px);
}

.btn-hero-secondary:hover {
  background-color: #ffffff;
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--color-primary);
  border-color: #ffffff;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
  min-height: 38px;
}

.btn-lg {
  padding: 0.9rem 1.65rem;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  min-height: 48px;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  border: none;
  border-bottom: none;
  box-shadow: none;
  outline: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  height: clamp(74px, 8vh, 82px);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: 0 4px 16px rgba(10, 37, 64, 0.05);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-4);
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
  padding: 4px 0;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-main);
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-brand-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-brand-blue);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-toggle-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height-mobile));
  background-color: #ffffff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-4);
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
  overflow-y: auto;
  border-bottom: 1px solid var(--color-border);
}

.mobile-drawer.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

.mobile-nav-link:hover {
  background-color: rgba(0, 119, 182, 0.08);
  color: var(--color-brand-blue);
}

/* ==========================================================================
   Hero Section (Full-Bleed Photographic Background from Top)
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: clamp(700px, 100svh, 840px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #f8fafc;
  padding-top: 0;
}

/* Layer 0: Full-Bleed Background Picture starting from absolute top */
.hero-bg-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

/* Layer 1: Seamless natural readability gradient */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.88) 25%,
    rgba(255, 255, 255, 0.48) 46%,
    rgba(255, 255, 255, 0.10) 62%,
    rgba(255, 255, 255, 0) 76%
  );
  pointer-events: none;
}

/* Layer 2: Content positioned on top with compensation for header height */
.hero-content-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: calc(var(--header-height, 78px) + clamp(1.5rem, 3.5vh, 3.5rem));
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}

.hero-content {
  max-width: 620px;
}

@keyframes heroContentFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content {
    animation: heroContentFadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

/* Editorial Clean Eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-brand-blue);
  margin-bottom: var(--space-3);
  padding: 0;
  background: transparent;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background-color: var(--color-brand-blue);
  flex-shrink: 0;
}

/* Simplified Impactful Headline */
.hero-title {
  font-size: clamp(2.5rem, 4.2vw, 3.85rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.06;
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--color-brand-blue);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: var(--space-6);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.hero-trust-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.hero-trust-line svg {
  color: var(--color-brand-blue);
  flex-shrink: 0;
}

/* ==========================================================================
   Trust Bar (Barra de Confianza)
   ========================================================================== */
.trust-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border-light);
  padding: var(--space-6) 0;
  box-shadow: 0 4px 16px rgba(10, 37, 64, 0.03);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
}

.trust-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(0, 119, 182, 0.08);
  color: var(--color-brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-item-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
}

.trust-item-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 119, 182, 0.35);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.1) 0%, rgba(0, 180, 216, 0.15) 100%);
  color: var(--color-brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-brand-blue);
  background: rgba(0, 119, 182, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.service-card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}

.service-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-5);
}

.service-features-list {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--color-border);
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-main);
  font-weight: 500;
}

.service-feature-item svg {
  color: var(--color-brand-blue);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.service-card-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Secondary Service Card */
.service-card-secondary {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  box-shadow: var(--shadow-subtle);
}

.secondary-content {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.secondary-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.06);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Service Details Accordion/Modal trigger */
.service-details-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-brand-blue);
  padding: 4px 0;
}

.service-details-toggle:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Problem → Solution Section
   ========================================================================== */
.problem-solution-box {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border: 1px solid rgba(0, 119, 182, 0.2);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-8);
  align-items: center;
}

.problem-title {
  font-size: var(--text-2xl);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.problem-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.issue-chips-wrapper {
  margin-bottom: var(--space-6);
}

.issue-chips-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary-light);
  margin-bottom: var(--space-3);
  display: block;
}

.issue-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.issue-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.issue-chip:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.problem-cta-card {
  background: var(--color-primary);
  color: #ffffff;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  text-align: center;
}

.problem-cta-card h3 {
  color: #ffffff;
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.problem-cta-card p {
  color: #94a3b8;
  font-size: var(--text-xs);
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   B2B / Corporativo Section
   ========================================================================== */
.b2b-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.b2b-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.b2b-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--color-brand-cyan);
  transform: translateY(-4px);
}

.b2b-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 180, 216, 0.15);
  color: var(--color-brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.b2b-card-title {
  font-size: var(--text-lg);
  color: #ffffff;
  margin-bottom: var(--space-2);
}

.b2b-card-desc {
  font-size: var(--text-xs);
  color: #cbd5e1;
  line-height: 1.5;
}

.b2b-bottom-banner {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* ==========================================================================
   Projects Gallery & Lightbox
   ========================================================================== */
.gallery-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.filter-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  background: #ffffff;
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #ffffff;
  border: 1px solid var(--color-border);
  cursor: pointer;
  group: true;
}

.gallery-thumb-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: #e2e8f0;
}

.gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.gallery-item:hover .gallery-thumb-img {
  transform: scale(1.05);
}

.gallery-overlay-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 37, 64, 0.85) 0%, rgba(10, 37, 64, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  opacity: 0.95;
  transition: opacity var(--transition-fast);
}

.gallery-item-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brand-cyan);
  background: rgba(0, 180, 216, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
  width: fit-content;
}

.gallery-item-title {
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.3;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  max-width: 900px;
  width: 100%;
  position: relative;
  background: #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.lightbox-img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.lightbox-caption {
  padding: var(--space-3) var(--space-4);
  background: #111827;
  color: #ffffff;
  font-size: var(--text-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lightbox-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Why Choose Us (Beneficios)
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.why-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: left;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-base);
}

.why-card:hover {
  border-color: var(--color-brand-blue);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.why-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 119, 182, 0.08);
  color: var(--color-brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.why-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.why-card-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Reviews / Testimonials
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.review-stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
}

.review-badge-google {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.review-text {
  font-size: var(--text-sm);
  color: var(--color-text-main);
  line-height: 1.5;
  margin-bottom: var(--space-4);
  font-style: italic;
}

.review-author {
  margin-top: auto;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
}

.review-context {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Conversion Form
   ========================================================================== */
.form-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 5vw, 3rem);
  box-shadow: var(--shadow-card-hover);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 16px; /* Prevents auto zoom on iOS */
  color: var(--color-text-main);
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background-color: #ffffff;
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
  outline: none;
}

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

.form-feedback {
  display: none;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: var(--space-3);
}

.form-feedback.success {
  display: block;
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-feedback.error {
  display: block;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-alt-cta {
  text-align: center;
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.form-alt-link {
  color: var(--color-whatsapp-dark);
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--color-brand-blue);
}

.faq-question-btn {
  width: 100%;
  text-align: left;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  background: transparent;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--color-brand-blue);
  flex-shrink: 0;
  transition: transform var(--transition-smooth);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
  padding: 0 var(--space-5);
}

.faq-answer-content {
  padding-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   CTA Final Banner
   ========================================================================== */
.final-cta-box {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  color: #ffffff;
  box-shadow: var(--shadow-card-hover);
  position: relative;
  overflow: hidden;
}

.final-cta-title {
  color: #ffffff;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.final-cta-desc {
  color: #cbd5e1;
  font-size: var(--text-lg);
  max-width: 620px;
  margin: 0 auto var(--space-6);
}

.final-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  padding-top: var(--space-12);
  padding-bottom: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.footer-brand-logo {
  height: 48px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer-bio {
  font-size: var(--text-xs);
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.footer-col-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-link {
  font-size: var(--text-xs);
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-brand-cyan);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: #cbd5e1;
  margin-bottom: var(--space-3);
}

.footer-contact-item svg {
  color: var(--color-brand-cyan);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: #64748b;
}

/* ==========================================================================
   Floating WhatsApp Button (Pure Circular Icon)
   ========================================================================== */
.floating-whatsapp {
  position: fixed !important;
  bottom: 24px !important;
  right: 20px !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px !important;
  height: 56px !important;
  background-color: #25D366 !important;
  color: #ffffff !important;
  padding: 0 !important;
  border-radius: 50% !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.floating-whatsapp:hover {
  background-color: #1eb954 !important;
  transform: translateY(-3px) scale(1.06) !important;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.6) !important;
}

.floating-whatsapp-icon {
  width: 28px !important;
  height: 28px !important;
  fill: currentColor !important;
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 980;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.mobile-sticky-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  min-height: 44px;
}

/* ==========================================================================
   Service / Quote Modal (Sobrio, Técnico, Accesible)
   ========================================================================== */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background-color: rgba(10, 25, 47, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.service-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.service-modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 48px rgba(10, 37, 64, 0.18);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  transform: translateY(12px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.service-modal.is-open .service-modal-dialog {
  transform: translateY(0);
}

.service-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-light);
  gap: var(--space-3);
}

.service-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.service-modal-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.service-modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.service-modal-close:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
}

/* Form Fields */
.modal-field-group {
  margin-bottom: 1rem;
}

.form-field-wrapper {
  position: relative;
}

.modal-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.modal-label .req {
  color: #dc2626;
}

.modal-label .opt {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 12px;
}

.field-error-msg {
  display: none;
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
}

.field-error-msg.visible {
  display: block;
}

.modal-input.has-error,
.modal-select.has-error,
.modal-textarea.has-error {
  border-color: #dc2626;
  background-color: #fffaf0;
}

/* Segmented selector buttons */
.segmented-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented-option {
  position: relative;
}

.segmented-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.segmented-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.segmented-option input[type="radio"]:checked + .segmented-label {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.segmented-label:hover {
  border-color: var(--color-brand-blue);
  color: var(--color-primary);
}

.modal-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.modal-disclaimer {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: -4px;
  margin-bottom: var(--space-4);
  font-style: italic;
}

.modal-input,
.modal-select,
.modal-textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  font-size: 16px; /* 16px prevents iOS zoom */
  color: var(--color-text-main);
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-input:focus,
.modal-select:focus,
.modal-textarea:focus {
  background-color: #ffffff;
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.12);
  outline: none;
}

.modal-textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-feedback {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: var(--space-3);
}

.modal-feedback.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Success View */
.modal-success-view {
  text-align: center;
  padding: var(--space-6) var(--space-3);
}

.modal-success-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #d1fae5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.modal-success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.modal-success-desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto;
}


/* ==========================================================================
   BTU Thermal Calculator Component - Ultra Responsive & High Density
   ========================================================================== */
.btu-calc-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.05);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .btu-calc-box {
    grid-template-columns: 1fr;
    padding: 1.15rem;
    gap: 1.25rem;
  }
}

.btu-calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.btu-control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.btu-control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-primary);
}

.btu-val-badge {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--color-brand-blue);
  background: rgba(0, 119, 182, 0.08);
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

.btu-range-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  margin: 4px 0;
  box-sizing: border-box;
}

.btu-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-brand-blue);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 119, 182, 0.4);
  transition: transform 0.15s ease;
}

.btu-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--color-text-muted);
  width: 100%;
  box-sizing: border-box;
}

.btu-options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.btu-toggle-btn {
  flex: 1 1 calc(50% - 4px);
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
}

.btu-toggle-btn input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.btu-toggle-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.btu-toggle-btn:has(input:checked) {
  background: #0a2540;
  border-color: #0a2540;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.15);
}

/* Result Card */
.btu-result-card {
  background: #0a2540;
  border-radius: 12px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 10px 28px rgba(10, 37, 64, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.btu-result-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 0.65rem;
}

.btu-result-number {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.btu-result-unit {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.btu-result-desc {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0 0 1.25rem;
  max-width: 320px;
}

.btu-result-btn {
  width: 100%;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 700;
  box-sizing: border-box;
}

/* ==========================================================================
   Clean Service Protocol Standards
   ========================================================================== */
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.protocol-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.protocol-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(10, 37, 64, 0.06);
}

.protocol-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-brand-blue);
  background: rgba(0, 119, 182, 0.08);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.protocol-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.protocol-card-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

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

@media (max-width: 480px) {
  .protocol-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Maintenance Plans Component
   ========================================================================== */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  max-width: 960px;
  margin: 0 auto;
}

.plan-card {
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.04);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
}

.plan-card.plan-featured {
  border-color: var(--color-brand-blue);
  box-shadow: 0 12px 32px rgba(0, 119, 182, 0.12);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--color-brand-blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 12px;
}

.plan-header {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-light);
}

.plan-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.plan-desc {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6) 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--color-text-main);
  line-height: 1.4;
}

.plan-feature-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-brand-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Service Text Link (Clean & Concise)
   ========================================================================== */
.service-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-brand-blue, #0077b6);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.service-text-link:hover {
  color: var(--color-primary, #0a2540);
  transform: translateX(4px);
}

/* ==========================================================================
   Section Dark Closing Box
   ========================================================================== */
.section-dark {
  background: linear-gradient(135deg, #0a2540 0%, #0d3b66 100%);
  color: #ffffff;
  padding: 4.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}


/* ==========================================================================
   Live Promo Announcement Bar (Admin Connected & Perfectly Positioned)
   ========================================================================== */
.site-promo-announcement-bar {
  background: #07192c;
  color: #ffffff;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1002;
  width: 100%;
}

body.has-promo-bar .site-header {
  top: 37px !important;
}

body.has-promo-bar .hero {
  padding-top: 37px !important;
}

.promo-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.promo-badge {
  background: #38bdf8;
  color: #0a2540;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.promo-text {
  font-weight: 600;
}

.promo-link {
  color: #38bdf8;
  font-weight: 700;
  text-decoration: none;
}

.promo-link:hover {
  text-decoration: underline;
}
