@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
/* Variables (las usa el panel en estilos internos) */
:root {
  --climaport-azul: #0aa3c2;
  --climaport-azul-oscuro: #066e86;
  --cp-azul: #3b55e6;
  --cp-fondo: #eaf2fb;
  --cp-tinta: #101c33;
  --cp-star: #f0a32f;
}

/* Seguridad: ninguna imagen se desborda */
img { max-width: 100%; }

body { font-family: 'Poppins', system-ui, sans-serif; color: #101c33; }

/* Panel interno */
.bg-login { background: linear-gradient(135deg, #066e86 0%, #0aa3c2 100%); }
.login-card { width: 100%; max-width: 420px; border: 0; border-radius: 1rem; }
.login-logo { max-height: 70px; }

/* Página pública */
.navbar-cp { background: #ffffff; box-shadow: 0 2px 12px rgba(16, 28, 51, 0.08); }
.navbar-cp .nav-link { color: #101c33; font-weight: 500; }
.navbar-cp .nav-link:hover { color: #3b55e6; }

.btn-cp { border: 2px solid #3b55e6; color: #3b55e6; background: transparent; text-transform: uppercase; font-weight: 600; letter-spacing: 1.5px; font-size: 0.85rem; border-radius: 2px; padding: 12px 30px; }
.btn-cp:hover { background: #3b55e6; color: #ffffff; }

.section { padding: 100px 0; }
.hero-img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; }

.servicio-card { position: relative; overflow: hidden; min-height: 340px; }
.servicio-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.servicio-card:hover img { transform: scale(1.05); }
.servicio-card .overlay { position: absolute; inset: 0; background: rgba(16, 28, 51, 0.45); }
.servicio-card h3 { position: relative; z-index: 2; color: #ffffff; padding: 36px; max-width: 430px; }

.bloque-azul { background: #3b55e6; color: #ffffff; padding: 60px 40px; }
.trabajo-img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }

.star { color: #f0a32f; }
.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.nombre-test { color: #3b55e6; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; font-weight: 600; }

.blog-card { background: #ffffff; border: 0; }
.blog-card img { height: 200px; object-fit: cover; width: 100%; }
.blog-fecha { color: #3b55e6; font-size: 0.78rem; font-weight: 600; }

.whatsapp-float { position: fixed; bottom: 20px; right: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); z-index: 1000; }
.whatsapp-float:hover { color: #ffffff; }
/* =============================================
   PANEL MODERNO - solo paginas del panel
   ============================================= */
body:has(.navbar[style*="climaport"]),
body.bg-login {
  background: #f4f6fb;
  font-family: 'Poppins', system-ui, sans-serif;
  color: #101c33;
}

/* Barra superior con degradado y sombra suave */
body:has(.navbar[style*="climaport"]) .navbar[style] {
  background: linear-gradient(90deg, #0b7f98, #0aa3c2 55%, #22b8d4) !important;
  box-shadow: 0 6px 24px rgba(10, 163, 194, .28);
}
body:has(.navbar[style*="climaport"]) .navbar-brand { font-weight: 700; letter-spacing: .3px; }

/* Tarjetas sin borde, redondeadas, sombra suave */
body:has(.navbar[style*="climaport"]) .card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 3px 16px rgba(16, 28, 51, .07);
}
body:has(.navbar[style*="climaport"]) .card-header {
  background: #fff;
  border-bottom: 1px solid #eef1f8;
  border-radius: 18px 18px 0 0 !important;
  font-weight: 600;
}

/* Iconos de indicadores convertidos en "chips" */
body:has(.navbar[style*="climaport"]) .card.text-center > i.bi {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(59, 85, 230, .12); color: #3b55e6;
  font-size: 1.25rem; margin-bottom: .5rem;
}

/* Botones y formularios redondeados */
body:has(.navbar[style*="climaport"]) .btn { border-radius: 10px; font-weight: 500; }
body:has(.navbar[style*="climaport"]) .btn-sm { border-radius: 9px; }
body:has(.navbar[style*="climaport"]) .btn-primary {
  background: #3b55e6; border-color: #3b55e6;
  box-shadow: 0 4px 12px rgba(59, 85, 230, .25);
}
body:has(.navbar[style*="climaport"]) .btn-primary:hover { background: #2941c2; }
body:has(.navbar[style*="climaport"]) .btn-success { box-shadow: 0 4px 12px rgba(25, 135, 84, .22); }
body:has(.navbar[style*="climaport"]) .form-control,
body:has(.navbar[style*="climaport"]) .form-select { border-radius: 10px; border-color: #e3e8f4; }
body:has(.navbar[style*="climaport"]) .form-control:focus,
body:has(.navbar[style*="climaport"]) .form-select:focus {
  border-color: #3b55e6; box-shadow: 0 0 0 .2rem rgba(59, 85, 230, .12);
}

/* Tablas tipo SaaS: encabezado suave y filas limpias */
body:has(.navbar[style*="climaport"]) .table thead th {
  background: #f7f9ff; color: #546582;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .8px; border: 0;
}
body:has(.navbar[style*="climaport"]) .table > :not(caption) > * > * { border-bottom-color: #eef1f8; }

/* Badges tipo píldora y alertas suaves */
body:has(.navbar[style*="climaport"]) .badge { border-radius: 50rem; }
body:has(.navbar[style*="climaport"]) .alert { border: 0; border-radius: 14px; }

/* Titulares con más presencia */
body:has(.navbar[style*="climaport"]) h4,
body:has(.navbar[style*="climaport"]) h5 { font-weight: 700; }

/* ===== MEJORAS MOVIL PANEL ===== */
@media (max-width: 576px) {
  body:has(.navbar[style*="climaport"]) .table { font-size: .78rem; }
  body:has(.navbar[style*="climaport"]) .table th,
  body:has(.navbar[style*="climaport"]) .table td { padding: .35rem .3rem; }
  body:has(.navbar[style*="climaport"]) .btn-sm { padding: .28rem .5rem; font-size: .75rem; }
  body:has(.navbar[style*="climaport"]) h4 { font-size: 1.1rem; }
  body:has(.navbar[style*="climaport"]) .card-header { font-size: .85rem; }
  body:has(.navbar[style*="climaport"]) .form-control,
  body:has(.navbar[style*="climaport"]) .form-select { font-size: .88rem; }
  body:has(.navbar[style*="climaport"]) .fs-3 { font-size: 1.5rem; }
  body:has(.navbar[style*="climaport"]) .fs-4 { font-size: 1.2rem; }
}