@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Official Brand Colors */
  --brand-magenta: #BB0D70;
  --brand-magenta-rgb: 187, 13, 112;
  --brand-blue: #1F5A93;
  --brand-blue-rgb: 31, 90, 147;
  
  --brand-magenta-hover: #9c0a5c;
  --brand-blue-hover: #184876;
  
  /* HSL Tailored Colors for Light Mode */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  
  /* Glassmorphism settings */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: 12px;
  
  /* Typography */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

[data-theme="dark"] {
  /* HSL Tailored Colors for Dark Mode */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: #1a2236;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #2e3b52;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  
  /* Glassmorphism settings */
  --glass-bg: rgba(26, 34, 54, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

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

/* Scrollbar Custom */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Utility Layout Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-magenta));
  border-radius: 2px;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 8px 0;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

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

.logo-img {
  height: 45px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
  transform: scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .main-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--brand-blue);
  line-height: 1.2;
}

.logo-text .sub-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-magenta);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

nav a:hover, nav a.active {
  color: var(--brand-blue);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-magenta);
  transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-muted);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

.btn-menu {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: white;
}

.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 90, 147, 0.3);
}

.btn-accent {
  background-color: var(--brand-magenta);
  color: white;
}

.btn-accent:hover {
  background-color: var(--brand-magenta-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(187, 13, 112, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

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

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
  padding: 150px 0 100px 0;
  background: radial-gradient(circle at top right, rgba(31, 90, 147, 0.08), transparent 45%),
              radial-gradient(circle at bottom left, rgba(187, 13, 112, 0.05), transparent 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-content h1 span.gradient-text {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hours Calculator Widget */
.hours-widget {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.hours-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--brand-blue), var(--brand-magenta));
}

.widget-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hours-progress-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 24px 0;
}

.progress-circle {
  position: relative;
  width: 140px;
  height: 140px;
}

.progress-circle svg {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}

.progress-circle circle {
  fill: none;
  stroke-width: 10;
}

.progress-circle .circle-bg {
  stroke: var(--bg-secondary);
}

.progress-circle .circle-progress {
  stroke: url(#progress-gradient);
  stroke-dasharray: 408.4;
  stroke-dashoffset: 408.4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}

.progress-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-number {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.progress-total {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.hours-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 500;
}

.control-label span:last-child {
  color: var(--brand-blue);
  font-weight: 700;
}

.control-group input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  outline: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-blue);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.control-group:last-of-type input[type="range"]::-webkit-slider-thumb {
  background: var(--brand-magenta);
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-feedback {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-secondary);
  font-size: 0.85rem;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

/* Steps Section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 32px 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-blue);
}

.step-number {
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(31, 90, 147, 0.1);
  transition: color 0.3s ease;
}

.step-card:hover .step-number {
  color: rgba(187, 13, 112, 0.15);
}

.step-icon {
  background: linear-gradient(135deg, rgba(31, 90, 147, 0.1), rgba(187, 13, 112, 0.1));
  color: var(--brand-blue);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.step-icon svg {
  width: 24px;
  height: 24px;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Directory Section */
.directory-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.directory-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.search-bar-wrapper {
  position: relative;
  width: 100%;
}

.search-bar-wrapper svg {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 20px;
  height: 20px;
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(31, 90, 147, 0.15);
  background-color: var(--bg-card);
}

.filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tag {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tag:hover {
  background-color: var(--border-color);
  color: var(--text-primary);
}

.filter-tag.active {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  color: white;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.space-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 20px;
  transition: all 0.3s ease;
  background-color: var(--bg-card);
  display: flex;
  flex-direction: column;
}

.space-card:hover {
  border-color: var(--brand-magenta);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.space-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.space-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.space-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.tag-judicial { background-color: rgba(31, 90, 147, 0.1); color: var(--brand-blue); }
.tag-estudio { background-color: rgba(187, 13, 112, 0.1); color: var(--brand-magenta); }
.tag-publica { background-color: rgba(16, 185, 129, 0.1); color: #10b981; }
.tag-investigacion { background-color: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.space-info {
  margin-bottom: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}

.info-item {
  display: flex;
  gap: 8px;
  color: var(--text-secondary);
}

.info-item svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}

.space-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy:hover {
  background-color: var(--border-color);
  color: var(--text-primary);
}

.directory-empty {
  text-align: center;
  padding: 48px 0;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.directory-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.directory-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 16px;
}

.directory-footer-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* CV Builder Section */
.cv-builder-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 32px;
  align-items: start;
}

.cv-form-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.cv-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
}

.cv-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.cv-step-node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.cv-step-node.active {
  border-color: var(--brand-blue);
  background-color: var(--brand-blue);
  color: white;
  box-shadow: 0 0 0 4px rgba(31, 90, 147, 0.2);
}

.cv-step-node.completed {
  border-color: var(--brand-magenta);
  background-color: var(--brand-magenta);
  color: white;
}

.cv-step-pane {
  display: none;
}

.cv-step-pane.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input, .form-group textarea, .form-group select {
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--brand-blue);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.cv-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

/* CV Live Preview Box */
.cv-preview-wrapper {
  position: sticky;
  top: 100px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.preview-header span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cv-preview-paper {
  background-color: white;
  color: #1a1a1a;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 40px;
  min-height: 580px;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.preview-cv-header {
  border-bottom: 2px solid #1F5A93;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.preview-cv-name {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 800;
  color: #1F5A93;
  line-height: 1.1;
  margin-bottom: 6px;
}

.preview-cv-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #BB0D70;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.preview-cv-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #555;
  font-size: 0.7rem;
}

.preview-cv-section {
  margin-bottom: 16px;
}

.preview-cv-section-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: #1F5A93;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.preview-cv-item {
  margin-bottom: 10px;
}

.preview-cv-item-title {
  font-weight: 700;
  color: #222;
  display: flex;
  justify-content: space-between;
}

.preview-cv-item-sub {
  color: #666;
  font-style: italic;
  margin-bottom: 4px;
}

.preview-cv-item-desc {
  color: #444;
  white-space: pre-line;
}

.preview-cv-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preview-cv-skill-tag {
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 500;
}

/* Consultorios Section */
.consultorios-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.consultorios-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.consultorios-info h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.consultorios-info p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.consultorios-requirements {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-sm);
  padding: 20px;
  border-left: 4px solid var(--brand-magenta);
}

.consultorios-requirements h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.consultorios-requirements p {
  font-size: 0.85rem;
  margin-bottom: 0;
  color: var(--text-secondary);
}

.consultorios-scheduler {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background-color: var(--bg-primary);
}

.scheduler-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.scheduler-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 16px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.scheduler-tab:hover {
  background-color: var(--bg-secondary);
}

.scheduler-tab.active {
  background-color: var(--bg-card);
  color: var(--brand-blue);
  border-bottom: 3px solid var(--brand-blue);
}

.scheduler-content {
  padding: 24px;
}

.scheduler-pane {
  display: none;
}

.scheduler-pane.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.4s ease;
}

.schedule-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.schedule-icon-wrapper {
  background-color: rgba(187, 13, 112, 0.1);
  color: var(--brand-magenta);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.schedule-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.schedule-details h5 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.schedule-details p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.schedule-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.consultorio-postulate-footer {
  margin-top: 24px;
  text-align: center;
}

/* Clinica Section */
.clinica-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.clinica-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.clinica-header {
  margin-bottom: 24px;
}

.clinica-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-magenta);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.clinica-card h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.clinica-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.clinica-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.clinica-footer span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Testimonios Section (Slider) */
.testimonials-slider-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonials-track-container {
  overflow: hidden;
  border-radius: var(--border-radius-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 48px;
}

.testimonials-slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 24px;
  border: 3px solid var(--brand-magenta);
  object-fit: cover;
  background-color: var(--bg-secondary);
}

.testimonial-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 600px;
  position: relative;
}

.testimonial-quote::before, .testimonial-quote::after {
  content: '"';
  font-size: 3rem;
  color: rgba(187, 13, 112, 0.15);
  position: absolute;
  line-height: 1;
}

.testimonial-quote::before {
  top: -20px;
  left: -20px;
}

.testimonial-quote::after {
  bottom: -40px;
  right: -20px;
}

.testimonial-author {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.testimonial-location {
  font-size: 0.85rem;
  color: var(--brand-blue);
  font-weight: 600;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
  z-index: 10;
}

.slider-nav:hover {
  background-color: var(--bg-secondary);
  color: var(--brand-magenta);
}

.slider-prev {
  left: -24px;
}

.slider-next {
  right: -24px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-dot.active {
  background-color: var(--brand-blue);
  transform: scale(1.2);
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-container {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 2001;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.modal-close svg {
  width: 24px;
  height: 24px;
}

.modal-body {
  padding: 24px;
}

.modal-body p {
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Toast/Alert notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--bg-card);
  color: var(--text-primary);
  padding: 16px 24px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--brand-magenta);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast.active {
  transform: translateY(0);
  opacity: 1;
}

/* Footer styling */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h4 {
  color: var(--brand-blue);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
  max-width: 300px;
}

.footer-links h5, .footer-contact h5 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--brand-magenta);
}

.footer-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--brand-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cv-builder-grid {
    grid-template-columns: 1fr;
  }
  .cv-preview-wrapper {
    position: static;
    margin-top: 32px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .section {
    padding: 60px 0;
  }
  .section-title h2 {
    font-size: 2rem;
  }
  .btn-menu {
    display: block;
    font-size: 24px;
    z-index: 1001;
  }
  nav ul {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    flex-direction: column;
    padding: 32px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  nav ul.active {
    transform: translateY(0);
  }
  .consultorios-container {
    grid-template-columns: 1fr;
  }
  .clinica-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
}

/* Print Stylesheet integration */
@media print {
  body * {
    visibility: hidden;
  }
  #cv-preview-section, #cv-preview-section * {
    visibility: visible;
  }
  #cv-preview-section {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }
  .preview-header {
    display: none;
  }
}
