/* ==========================================================================
   GRUPO SOL SALUD S.A. - Design System & Modern Responsive Stylesheet
   Color Palette: Midnight Navy (#071426) & Radiant Gold (#D4AF37)
   ========================================================================== */

:root {
  /* Color Tokens */
  --primary-dark: #071426;
  --primary-navy: #0b1e38;
  --primary-surface: #102847;
  --accent-gold: #d4af37;
  --accent-gold-light: #f5d77f;
  --accent-gold-dark: #aa7c11;
  --accent-gold-glow: rgba(212, 175, 55, 0.25);
  
  --bg-light: #f8fafc;
  --bg-subtle: #f1f5f9;
  --surface-white: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.85);
  --surface-dark-glass: rgba(11, 30, 56, 0.92);
  
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --text-gold: #d4af37;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(7, 20, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(7, 20, 38, 0.1);
  --shadow-lg: 0 16px 40px rgba(7, 20, 38, 0.15);
  --shadow-gold: 0 8px 25px rgba(212, 175, 55, 0.3);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 700;
}

/* Section Header Container */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-gold-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.25rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--accent-gold-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Navbar / Sticky Header */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--surface-dark-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: var(--transition);
  padding: 0.75rem 0;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-svg {
  height: 52px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
  text-align: center;
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold-dark));
  color: var(--primary-dark);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.45);
  background: linear-gradient(135deg, #ffffff, var(--accent-gold));
}

.btn-outline-gold {
  background: transparent;
  color: var(--accent-gold);
  border: 1.5px solid var(--accent-gold);
}

.btn-outline-gold:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-navy {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.btn-navy:hover {
  background-color: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 110px;
  padding-bottom: 80px;
  background-color: var(--primary-dark);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mask-image: linear-gradient(to right, transparent 0%, black 35%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 35%);
  opacity: 0.85;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(7, 20, 38, 0.95) 0%, rgba(7, 20, 38, 0.7) 60%, rgba(7, 20, 38, 0.4) 100%);
  z-index: 2;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-content {
  max-width: 680px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.2rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-full);
  color: var(--accent-gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.25rem;
  color: var(--text-light);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-title span {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-gold-light) 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: rgba(248, 250, 252, 0.85);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item h3 {
  font-size: 1.8rem;
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Quiénes Somos Section */
.about-section {
  padding: 6rem 0;
  background-color: var(--surface-white);
}

.about-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-card-box {
  background: linear-gradient(145deg, var(--primary-dark), var(--primary-navy));
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: var(--text-light);
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212, 175, 55, 0.25);
  overflow: hidden;
}

.about-card-box::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.about-card-title {
  color: var(--accent-gold);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.about-text {
  font-size: 1.05rem;
  color: rgba(248, 250, 252, 0.9);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.highlight-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: bold;
}

.highlight-text h4 {
  font-size: 1rem;
  color: var(--surface-white);
  margin-bottom: 0.2rem;
}

.highlight-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Dirección Médica Section */
.doctor-section {
  padding: 6rem 0;
  background-color: var(--bg-subtle);
  position: relative;
}

.doctor-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.doctor-card {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 420px 1fr;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.doctor-image-wrapper {
  position: relative;
  background: var(--primary-dark);
  height: 100%;
  min-height: 480px;
}

.doctor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.doctor-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(7, 20, 38, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--accent-gold);
  padding: 1rem;
  border-radius: var(--radius-md);
  color: var(--text-light);
  text-align: center;
}

.doctor-badge h4 {
  color: var(--accent-gold);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.doctor-badge p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.doctor-content {
  padding: 3.5rem;
}

.doctor-header {
  margin-bottom: 1.5rem;
}

.doctor-role {
  color: var(--accent-gold-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.doctor-name {
  font-size: 2.25rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.doctor-bio {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.doctor-achievements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-body);
}

.achievement-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  flex-shrink: 0;
}

/* Servicios Section */
.services-section {
  padding: 6rem 0;
  background-color: var(--surface-white);
}

.services-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  transform: translateY(-6px);
  background: var(--surface-white);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-gold);
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--primary-dark);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold-dark));
  color: var(--primary-dark);
  box-shadow: var(--shadow-gold);
}

.service-title {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-gold-dark);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: auto;
}

.service-link:hover {
  color: var(--primary-dark);
}

/* Staff Directivo Section */
.staff-section {
  padding: 6rem 0;
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.staff-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.staff-card {
  background: var(--primary-navy);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: var(--transition);

}

.staff-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold);
}

.staff-avatar-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: bold;
  margin: 0 auto 1.25rem auto;
}

.staff-name {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.staff-role {
  color: var(--accent-gold);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.staff-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.staff-contact-btn:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
}

/* Contacto & Sede Central Section */
.contact-section {
  padding: 6rem 0;
  background-color: var(--bg-subtle);
}

.contact-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-card {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-dark);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.info-details h4 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.info-details p, .info-details a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.info-details a:hover {
  color: var(--accent-gold-dark);
}

.contact-form-card {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  background-color: var(--bg-light);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  background-color: var(--surface-white);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

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

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: rgba(248, 250, 252, 0.7);
  margin-top: 1rem;
  max-width: 360px;
  font-size: 0.9rem;
}

.footer-title {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(248, 250, 252, 0.75);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.5);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 38, 0.8);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-backdrop.active .modal-box {
  transform: translateY(0);
}

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

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

/* Responsive Queries */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .doctor-card {
    grid-template-columns: 1fr;
  }
  .doctor-image-wrapper {
    min-height: 380px;
  }
  .about-container, .contact-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: var(--transition);
    border-bottom: 1px solid var(--accent-gold);
  }
  .nav-menu.active {
    transform: translateY(0);
  }
  .mobile-toggle {
    display: block;
  }
  .hero-bg-wrapper {
    width: 100%;
    opacity: 0.35;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
