/* SOSCotiza.com — Style Principal */
:root {
  --sc-blue: #0033A0;
  --sc-red: #CE1126;
  --sc-green: #25D366;
  --sc-dark: #0A0E1A;
  --sc-gray: #f8f9fa;
  --sc-text: #1a1a2e;
}

* { box-sizing: border-box; }

body {
  font-family: "Open Sans", sans-serif;
  color: var(--sc-text);
  background: #fff;
}

h1,h2,h3,h4,h5,h6,
.navbar-brand,
.sc-brand-text { font-family: "Montserrat", sans-serif; }

.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }

/* NAVBAR */
.sc-navbar {
  background: linear-gradient(135deg, var(--sc-dark) 0%, #0a1a4a 100%);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  padding: 0.6rem 0;
}
.sc-navbar .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 600;
  font-size: 0.88rem;
  transition: color 0.2s;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}
.sc-navbar .nav-link:hover { color: white !important; background: rgba(255,255,255,0.08); }
.sc-logo-badge { flex-shrink: 0; }
.sc-brand-text { font-size: 1.35rem; letter-spacing: -0.5px; }

/* BUTTONS */
.btn-wa {
  background: var(--sc-green);
  color: white !important;
  border: none;
  font-weight: 700;
  border-radius: 25px;
  transition: all 0.2s;
}
.btn-wa:hover { background: #1da851; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(37,211,102,0.4); }

.btn-primary {
  background: var(--sc-blue) !important;
  border-color: var(--sc-blue) !important;
  font-weight: 700;
  border-radius: 8px;
}
.btn-primary:hover { background: #0044cc !important; }

.btn-danger {
  background: var(--sc-red) !important;
  border-color: var(--sc-red) !important;
}

/* HERO */
.sc-hero {
  background: linear-gradient(135deg, var(--sc-dark) 0%, #001a5e 50%, #0033A0 100%);
  min-height: 88vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.sc-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.sc-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: white;
}
.sc-hero-title span { color: #FF8C00; }
.sc-hero-subtitle { color: rgba(255,255,255,0.8); font-size: 1.15rem; line-height: 1.6; }

/* SEARCH BOX */
.sc-search-box {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.sc-search-box .form-select,
.sc-search-box .form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.sc-search-box .form-select:focus,
.sc-search-box .form-control:focus {
  border-color: var(--sc-blue);
  box-shadow: 0 0 0 3px rgba(0,51,160,0.1);
}

/* STATS BAR */
.sc-stats-bar {
  background: white;
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}
.sc-stat-item {
  text-align: center;
  padding: 0.5rem 1.5rem;
  border-right: 1px solid #eee;
}
.sc-stat-item:last-child { border-right: none; }
.sc-stat-num {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--sc-blue);
}
.sc-stat-label { font-size: 0.8rem; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* CARDS */
.sc-metier-card {
  background: white;
  border: 2px solid #eee;
  border-radius: 14px;
  padding: 1.5rem;
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}
.sc-metier-card:hover {
  border-color: var(--sc-blue);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0,51,160,0.15);
  color: inherit;
}
.sc-metier-icon { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }
.sc-metier-name { font-family: "Montserrat",sans-serif; font-weight: 700; font-size: 1rem; color: var(--sc-text); }
.sc-metier-desc { font-size: 0.82rem; color: #777; margin-top: 0.4rem; }
.sc-metier-count { font-size: 0.78rem; font-weight: 700; color: var(--sc-blue); margin-top: 0.5rem; }

.sc-barrio-card {
  background: linear-gradient(135deg, var(--sc-blue), #0055CC);
  color: white;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  transition: all 0.25s;
  text-decoration: none;
  display: block;
}
.sc-barrio-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,51,160,0.3); color: white; }
.sc-barrio-name { font-family: "Montserrat",sans-serif; font-weight: 700; }
.sc-barrio-zona { font-size: 0.78rem; opacity: 0.8; }

.sc-artisan-card {
  border: 2px solid #eee;
  border-radius: 14px;
  padding: 1.5rem;
  transition: all 0.25s;
  background: white;
}
.sc-artisan-card:hover { border-color: var(--sc-green); box-shadow: 0 8px 25px rgba(37,211,102,0.15); }
.sc-artisan-avatar {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--sc-blue), var(--sc-red));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 900; font-size: 1.4rem; font-family: "Montserrat",sans-serif;
  flex-shrink: 0;
}
.sc-stars { color: #FF8C00; font-size: 0.85rem; }
.sc-badge-verified { background: rgba(37,211,102,0.1); color: #1a8a3a; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.sc-badge-pro { background: rgba(0,51,160,0.1); color: var(--sc-blue); font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }

/* SECTIONS */
.sc-section { padding: 4rem 0; }
.sc-section-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--sc-text);
}
.sc-section-title span { color: var(--sc-blue); }
.sc-section-subtitle { color: #777; font-size: 1rem; }
.sc-section-alt { background: #f8f9fc; }

/* BREADCRUMB */
.sc-breadcrumb { background: #f8f9fc; border-bottom: 1px solid #eee; padding: 0.6rem 0; }
.sc-breadcrumb .breadcrumb { margin: 0; font-size: 0.85rem; }
.sc-breadcrumb .breadcrumb-item a { color: var(--sc-blue); text-decoration: none; }
.sc-breadcrumb .breadcrumb-item.active { color: #666; }

/* PAGE HERO */
.sc-page-hero {
  background: linear-gradient(135deg, var(--sc-blue) 0%, #001a5e 100%);
  color: white;
  padding: 3rem 0;
}
.sc-page-hero h1 { font-family: "Montserrat",sans-serif; font-weight: 900; }

/* JSON-LD FAQ */
.sc-faq-item { border: none; border-bottom: 1px solid #eee; border-radius: 0 !important; }
.sc-faq-item .accordion-button { font-weight: 600; color: var(--sc-text); background: none; }
.sc-faq-item .accordion-button:not(.collapsed) { color: var(--sc-blue); background: rgba(0,51,160,0.03); box-shadow: none; }
.sc-faq-item .accordion-button:focus { box-shadow: none; }

/* HOW IT WORKS */
.sc-step {
  text-align: center;
  padding: 2rem 1.5rem;
}
.sc-step-num {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--sc-blue), #0055CC);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: "Montserrat",sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(0,51,160,0.3);
}
.sc-step-icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.sc-step h5 { font-family: "Montserrat",sans-serif; font-weight: 700; }

/* FOOTER */
.sc-footer {
  background: linear-gradient(180deg, var(--sc-dark) 0%, #060a14 100%);
  border-top: 3px solid var(--sc-red);
}
.sc-footer-links li { margin-bottom: 0.4rem; }
.sc-footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.sc-footer-links a:hover { color: white; }

/* FLOATING WA */
.sc-wa-float {
  position: fixed;
  bottom: 100px; right: 20px;
  width: 58px; height: 58px;
  background: var(--sc-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.7rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  z-index: 1000;
  transition: all 0.3s;
  animation: waPulse 2.5s infinite;
}
.sc-wa-float:hover { transform: scale(1.1); color: white; }
@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 35px rgba(37,211,102,0.8), 0 0 0 8px rgba(37,211,102,0.15); }
}

/* CHAT WIDGET */
.sc-chat-widget {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 340px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  z-index: 999;
  font-size: 0.88rem;
}
.sc-chat-header {
  background: linear-gradient(135deg, var(--sc-blue), #0044cc);
  color: white;
  padding: 0.9rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
}
.sc-chat-avatar { font-size: 1.5rem; }
.sc-online-dot {
  display: inline-block; width: 8px; height: 8px;
  background: var(--sc-green); border-radius: 50%; margin-right: 4px;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.sc-chat-body { background: white; display: block; }
.sc-chat-messages { max-height: 260px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.sc-msg { max-width: 85%; padding: 0.6rem 0.9rem; border-radius: 12px; font-size: 0.85rem; line-height: 1.4; }
.sc-msg-bot { background: #f0f4ff; color: var(--sc-text); align-self: flex-start; border-bottom-left-radius: 3px; }
.sc-msg-user { background: var(--sc-blue); color: white; align-self: flex-end; border-bottom-right-radius: 3px; }
.sc-msg-typing { background: #f0f4ff; padding: 0.6rem 1rem; border-radius: 12px; align-self: flex-start; }
.sc-chat-chips { padding: 0 1rem 0.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sc-chip { background: #f0f4ff; border: 1px solid #d0dcff; color: var(--sc-blue); border-radius: 20px; padding: 0.3rem 0.8rem; font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.sc-chip:hover { background: var(--sc-blue); color: white; border-color: var(--sc-blue); }
.sc-chat-input-wrap { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid #eee; }
.sc-chat-input-wrap .form-control { border-radius: 20px; font-size: 0.85rem; }
.sc-chat-input-wrap .btn { border-radius: 20px; flex-shrink: 0; }
.sc-chat-collapsed .sc-chat-body { display: none; }

/* ADMIN */
.sc-admin-sidebar { background: var(--sc-dark); min-height: 100vh; width: 240px; }
.sc-admin-sidebar .nav-link { color: rgba(255,255,255,0.7); padding: 0.7rem 1.2rem; border-radius: 8px; font-size: 0.9rem; }
.sc-admin-sidebar .nav-link:hover, .sc-admin-sidebar .nav-link.active { color: white; background: rgba(255,255,255,0.1); }
.sc-kpi { border-radius: 14px; padding: 1.5rem; color: white; }
.sc-kpi-val { font-family: "Montserrat",sans-serif; font-weight: 900; font-size: 2.2rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .sc-chat-widget { width: calc(100vw - 20px); right: 10px; bottom: 10px; }
  .sc-hero { min-height: 70vh; }
  .sc-stat-item { border-right: none; border-bottom: 1px solid #eee; }
  .sc-stats-bar .row { flex-direction: column; }
}
