:root {
  --color-primary: #1e3a8a; /* deep blue */
  --color-accent: #2563eb; /* bright blue */
  --color-text: #1f2937; /* dark gray */
  --color-muted: #6b7280; /* medium gray */
  --color-bg: #f8fafc; /* very light gray/blue */
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary);
}

/* HEADER */
#site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.logo:hover {
  text-decoration: none;
}

/* MAIN CONTENT */
#main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  min-height: calc(100vh - 160px);
}

/* BREADCRUMB */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--color-accent);
}

.breadcrumb span {
  color: var(--color-text);
  font-weight: 500;
}

/* BUTTONS */
.btn-secondary {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-primary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-telefono {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  width: 100%;
  margin-top: 1rem;
}

.btn-telefono:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* SCORE AND TAGS */
.score-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  display: block;
  margin-bottom: 2px;
}

.score-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
}

.score-max {
  font-size: 1rem;
  color: var(--color-muted);
  font-weight: 500;
}

.perfil-score-block, .ranking-score {
  margin: 0.6rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.specialty-tag {
  display: inline-block;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--color-primary);
  font-size: 0.82rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin: 0.3rem 0.3rem 0.3rem 0;
  font-weight: 500;
}

/* FOOTER */
#site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 0.9rem;
}

/* MODAL */
.modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative;
  background: var(--color-surface);
  width: 90%;
  max-width: 400px;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none; border: none;
  font-size: 1.5rem; color: var(--color-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-abogado-nombre {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.modal-phone-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 1rem 0;
  text-decoration: none;
}

.modal-phone-number:hover {
  text-decoration: underline;
}

.modal-phone-hint {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.modal-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1.5rem 0;
}

.modal-wa-title {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* WHATSAPP BLINKING BUTTON */
.btn-whatsapp-blink {
  display: inline-block;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 0.5rem;
  animation: blink-green 1.1s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  width: 100%;
}

.btn-whatsapp-blink:hover {
  background: #1ebe5d;
  animation: none;
  text-decoration: none;
  color: #fff;
}

@keyframes blink-green {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); background: #25D366; }
  50%  { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); background: #1ebe5d; }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); background: #25D366; }
}
