/* ==========================================================================
   JVALVASSORI REFRIGERACIÓN - Design System & Custom Stylesheet
   Color Palette: Cooling Cyan, Deep Navy, Ice Mint, Warm Amber
   ========================================================================== */

:root {
  --primary-color: #0077b6;
  --primary-dark: #03045e;
  --primary-light: #00b4d8;
  --accent-color: #ff6b35;
  --accent-hover: #e85d04;
  --bg-light: #f8fafc;
  --bg-ice: #e0f7fa;
  --card-bg: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 119, 182, 0.12);
  --shadow-lg: 0 20px 40px -10px rgba(3, 4, 94, 0.2);
  --font-family-heading: 'Outfit', -apple-system, sans-serif;
  --font-family-body: 'Inter', -apple-system, sans-serif;
}

body {
  font-family: var(--font-family-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-family-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --- NAVBAR --- */
.navbar-custom {
  background: rgba(3, 4, 94, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.9rem 0;
  transition: all 0.3s ease;
}

.navbar-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 56px;
  max-width: 290px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.brand-logo-img:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .brand-logo-img {
    height: 44px;
    max-width: 210px;
  }
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.4);
}

.brand-text-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  margin: 0;
}

.brand-text-sub {
  color: var(--primary-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.nav-link-custom {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 500;
  margin: 0 8px;
  transition: color 0.2s ease;
}

.nav-link-custom:hover {
  color: var(--primary-light) !important;
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #03045e 0%, #0077b6 60%, #00b4d8 100%);
  padding: 140px 0 100px;
  color: #ffffff;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title span {
  color: #caf0f8;
  background: linear-gradient(90deg, #caf0f8, #90e0ef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-bottom: 32px;
}

.btn-cta-primary {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: #ffffff;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 107, 53, 0.5);
  color: #ffffff;
}

.btn-cta-outline {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

/* --- BOTÓN DE INSTALACIÓN PWA (BARRA SUPERIOR) --- */
.btn-pwa-install {
  background: linear-gradient(135deg, rgba(3, 4, 94, 0.88), rgba(0, 119, 182, 0.92));
  color: #ffffff !important;
  border: 1.5px solid #00b4d8;
  font-weight: 700;
  border-radius: 50rem;
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.35);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  text-decoration: none;
  cursor: pointer;
}

.btn-pwa-install:hover {
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 180, 216, 0.55);
}

.btn-pwa-install i {
  color: #ffb703;
  animation: pulse-pwa-download 2s infinite ease-in-out;
}

@keyframes pulse-pwa-download {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}

/* --- BADGES DE DIFERENCIALES --- */
.diferenciales-section {
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  background: var(--bg-ice);
  color: var(--primary-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

/* --- SERVICIOS --- */
.section-title-wrapper {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-tag {
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card.highlight {
  border: 2px solid var(--primary-light);
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.badge-exclusivo {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
}

.service-card-body {
  padding: 32px 28px;
}

/* --- MATRÍCULA Y SOBRE NOSOTROS --- */
.about-box {
  background: linear-gradient(135deg, #03045e, #0077b6);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.matricula-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px dashed rgba(255, 255, 255, 0.4);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-top: 15px;
}

/* --- WIDGET DE WHATSAPP PROFESIONAL --- */
.whatsapp-widget-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

.whatsapp-float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff;
  border: none;
  padding: 8px 18px 8px 10px;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.whatsapp-float-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
  background: #20ba5a;
}

.whatsapp-icon-pulse {
  width: 44px;
  height: 44px;
  background: #ffffff;
  color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.whatsapp-float-label {
  font-size: 0.85rem;
  line-height: 1.2;
  text-align: left;
  color: #ffffff;
}

.whatsapp-float-label strong {
  display: block;
  font-weight: 700;
}

.whatsapp-badge-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 12px;
  height: 12px;
  background: #00f0ff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 240, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

/* POPUP CHAT CARD */
.whatsapp-chat-popup {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 320px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(3, 4, 94, 0.25);
  overflow: hidden;
  display: none;
  flex-direction: column;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(3, 4, 94, 0.08);
}

.whatsapp-chat-popup.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.whatsapp-chat-header {
  background: linear-gradient(135deg, #03045e 0%, #0077b6 100%);
  padding: 16px;
  color: #ffffff;
  display: flex;
  align-items: center;
  position: relative;
}

.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: #25d366;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.whatsapp-chat-body {
  padding: 16px;
  background: #f8fafc;
  background-image: radial-gradient(#cbd5e1 0.75px, transparent 0.75px);
  background-size: 12px 12px;
  min-height: 100px;
}

.chat-bubble {
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 14px 14px 14px 2px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  position: relative;
}

.chat-time {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
  text-align: right;
  margin-top: 4px;
}

.whatsapp-chat-footer {
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.btn-whatsapp-start {
  background: #25d366;
  color: #ffffff;
  border: none;
  padding: 10px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.btn-whatsapp-start:hover {
  background: #1eb957;
  color: #ffffff;
  transform: scale(1.02);
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .diferenciales-section {
    margin-top: 20px;
  }
  .about-box {
    padding: 28px;
  }
}

/* --- WIDGET FLOTANTE DE NAVEGACIÓN RÁPIDA (FLECHAS ARRIBA Y ABAJO) --- */
.quick-scroll-widget {
  position: fixed;
  bottom: 24px;
  left: 20px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-scroll-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(3, 4, 94, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quick-scroll-btn:hover {
  background: #0077b6;
  color: #ffffff;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 119, 182, 0.5);
}

@media (max-width: 576px) {
  .quick-scroll-widget {
    bottom: 20px;
    left: 14px;
    gap: 6px;
  }
  .quick-scroll-btn {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
}
