/* ==========================================================================
   DKLIMA Climatización - Estilos de Alto Rendimiento y Motor 3D
   ========================================================================== */

:root {
  --color-primary: #0284c7;
  --color-primary-dark: #0369a1;
  --color-primary-light: #38bdf8;
  --color-primary-ice: #f0f9ff;
  --color-slate-dark: #0f172a;
  --color-slate-light: #f8fafc;
  --color-accent-green: #10b981;
  --color-accent-amber: #f59e0b;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow-card: 0 10px 25px -5px rgba(2, 132, 199, 0.08), 0 8px 10px -6px rgba(2, 132, 199, 0.04);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: #ffffff;
  color: #1e293b;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Contenedores y Layout */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Barra Superior de Contacto */
.top-bar {
  background: var(--color-slate-dark);
  color: #94a3b8;
  font-size: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-links a {
  color: #e2e8f0;
  text-decoration: none;
  margin-left: 1rem;
  transition: color 0.2s;
}
.top-bar-links a:hover {
  color: var(--color-primary-light);
}

/* Header & Navegación */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}
.btn-whatsapp {
  background: #ffffff;
  color: #059669;
  border: 1.5px solid #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}
.btn-whatsapp:hover {
  background: #ecfdf5;
  border-color: #059669;
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--color-slate-dark);
  color: #ffffff;
}
.btn-dark:hover {
  background: #1e293b;
}

/* Hero Section (Opción 1: Conversión Directa) */
.hero-section {
  padding: 3rem 0 3.5rem;
  background: radial-gradient(circle at 50% 0%, #e0f2fe 0%, #ffffff 70%);
  text-align: center;
  position: relative;
}

.badge-certified {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  border: 1px solid #bae6fd;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--color-slate-dark);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 760px;
  margin: 0 auto 1rem;
}
.hero-title span {
  color: var(--color-primary);
  position: relative;
}

.hero-description {
  font-size: 1rem;
  color: #475569;
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 440px;
  margin: 0 auto 2rem;
}

@media (min-width: 640px) {
  .hero-title { font-size: 3rem; }
  .hero-ctas { flex-direction: row; }
  .hero-ctas .btn { flex: 1; }
}

/* Live Badge: Técnicos en Terreno */
.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--color-slate-dark);
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s;
}
.live-status-pill:hover {
  transform: scale(1.02);
}
.pulse-indicator {
  position: relative;
  display: flex;
  height: 0.625rem;
  width: 0.625rem;
}
.pulse-ping {
  position: absolute;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  background: #34d399;
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.pulse-dot {
  position: relative;
  border-radius: 50%;
  height: 0.625rem;
  width: 0.625rem;
  background: #10b981;
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
.live-action-link {
  color: var(--color-primary-light);
  font-weight: 700;
  cursor: pointer;
  margin-left: 0.25rem;
}
.live-action-link:hover {
  text-decoration: underline;
}

/* Métricas de Confianza */
.trust-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 520px;
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}
.metric-item .metric-number {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--color-slate-dark);
  line-height: 1;
}
.metric-item .metric-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 0.35rem;
}

/* Sección de Servicios */
.services-section {
  padding: 4rem 0;
  background: #f8fafc;
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.section-subtitle {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.08em;
}
.section-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--color-slate-dark);
  margin-top: 0.4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary-light);
  box-shadow: 0 15px 30px -5px rgba(2, 132, 199, 0.15);
}
.service-icon-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}
.icon-sky { background: #e0f2fe; color: #0284c7; }
.icon-emerald { background: #d1fae5; color: #059669; }
.icon-amber { background: #fef3c7; color: #d97706; }

.service-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-slate-dark);
  margin-bottom: 0.65rem;
}
.service-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.service-features {
  list-style: none;
  font-size: 0.8125rem;
  color: #334155;
  margin-bottom: 1.5rem;
}
.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.service-features li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: 800;
}

/* Marcas Soportadas */
.brands-banner {
  padding: 2.5rem 0;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
}
.brands-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}
.brands-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: 1.15rem;
  font-weight: 900;
  color: #64748b;
  letter-spacing: 0.05em;
}
.brands-list span {
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.brands-list span:hover {
  opacity: 1;
  color: var(--color-primary);
}

/* Asistente Virtual Flotante 3D */
.assistant-floater {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.assistant-bubble {
  background: #0f172a;
  color: #ffffff;
  padding: 1rem 1.2rem;
  border-radius: 1.25rem;
  max-width: 300px;
  margin-bottom: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid #334155;
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
}
.assistant-bubble.is-open {
  display: block;
  animation: popIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.85) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.assistant-name {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-primary-light);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.assistant-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
}
.assistant-message {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #e2e8f0;
  margin-bottom: 0.75rem;
}
.assistant-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.assistant-action-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f1f5f9;
  padding: 0.45rem 0.75rem;
  border-radius: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}
.assistant-action-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

/* Avatar 3D Trigger Button */
.assistant-avatar-btn {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  perspective: 600px;
}

/* Estilos 3D para el modelo DK-Bot */
.model-dk-bot {
  width: 58px;
  height: 64px;
  position: relative;
  transform-style: preserve-3d;
  animation: botHoverAnim 3.5s ease-in-out infinite alternate;
}
@keyframes botHoverAnim {
  0% { transform: translateY(0px) rotateY(-10deg) rotateX(5deg); }
  100% { transform: translateY(-10px) rotateY(15deg) rotateX(-5deg); }
}
.dk-head {
  width: 44px;
  height: 30px;
  background: #0f172a;
  border: 2px solid var(--color-primary-light);
  border-radius: 12px;
  margin: 0 auto;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dk-screen {
  width: 32px;
  height: 18px;
  background: #020617;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
}
.dk-eye {
  width: 6px;
  height: 9px;
  background: var(--color-primary-light);
  border-radius: 3px;
  box-shadow: 0 0 8px var(--color-primary-light);
  animation: eyeBlink 3.5s infinite;
}
@keyframes eyeBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}
.dk-body {
  width: 54px;
  height: 32px;
  margin: 3px auto 0;
  background: linear-gradient(135deg, #0f172a, #0369a1);
  border-radius: 12px;
  border: 1.5px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(2, 132, 199, 0.4);
}
.dk-letter-d {
  font-weight: 900;
  font-size: 15px;
  color: #ffffff;
}
.dk-letter-k {
  font-weight: 900;
  font-size: 15px;
  color: var(--color-primary-light);
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}
.dk-flame {
  width: 12px;
  height: 12px;
  background: linear-gradient(to bottom, #38bdf8, transparent);
  margin: 1px auto 0;
  border-radius: 50%;
  animation: flame 0.3s infinite alternate;
}
@keyframes flame {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.2); opacity: 1; }
}

/* Modal de Agendamiento */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.modal-backdrop.is-active .modal-content {
  transform: translateY(0);
}
.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #f1f5f9;
  border: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  color: #64748b;
}

/* Formularios */
.form-group {
  margin-bottom: 1.15rem;
}
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.4rem;
}
.form-input, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1.5px solid #cbd5e1;
  font-family: inherit;
  font-size: 0.875rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Footer */
.site-footer {
  background: var(--color-slate-dark);
  color: #94a3b8;
  padding: 3.5rem 0 2rem;
  margin-top: auto;
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}
.footer-links-list {
  list-style: none;
  space-y: 0.5rem;
}
.footer-links-list li {
  margin-bottom: 0.6rem;
}
.footer-links-list a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links-list a:hover {
  color: var(--color-primary-light);
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

