/* ==========================================================================
   Clínica Centro Alcalá - Modern Mobile-First Theme
   Primary Palette: Deep Teal (#1b433e), Mint (#469390, #70b9b0, #00d3b8)
   ========================================================================== */

:root {
  --primary-dark: #1b433e;
  --primary: #2d6760;
  --primary-light: #469390;
  --accent: #70b9b0;
  --accent-bright: #00d3b8;
  --accent-gold: #f39c12;
  --bg-light: #f4f8f7;
  --bg-surface: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --shadow-sm: 0 4px 12px rgba(27, 67, 62, 0.05);
  --shadow-md: 0 10px 30px rgba(27, 67, 62, 0.08);
  --shadow-lg: 0 20px 40px rgba(27, 67, 62, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  padding-bottom: 70px; /* Space for mobile sticky bottom bar */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
}

a {
  text-decoration: none;
  color: var(--primary-light);
  transition: all 0.25s ease;
}

a:hover {
  color: var(--accent-bright);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
#header {
  height: 72px;
  background: rgba(27, 67, 62, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1030;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#header.scrolled {
  height: 62px;
  background: rgba(27, 67, 62, 0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.logo img {
  max-height: 48px;
  transition: all 0.3s ease;
}

#header.scrolled .logo img {
  max-height: 40px;
}

/* Desktop Navbar */
.navbar-desktop ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 8px;
}

.navbar-desktop a {
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-desktop a:hover,
.navbar-desktop a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

/* Mobile Nav Offcanvas Header */
.offcanvas-header {
  background: var(--primary-dark);
  color: #fff;
}

.offcanvas-body {
  background: #ffffff;
  padding: 24px;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-list li {
  margin-bottom: 12px;
}

.mobile-menu-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  font-weight: 600;
  color: var(--primary-dark);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
}

.mobile-menu-list a i {
  color: var(--accent);
  font-size: 20px;
}

.mobile-menu-list a.active,
.mobile-menu-list a:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

.mobile-menu-list a.active i,
.mobile-menu-list a:hover i {
  color: var(--accent-bright);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #1b433e 0%, #2d6760 60%, #469390 100%);
  padding: 100px 0 60px 0;
  color: #ffffff;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--bg-light);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-bright);
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 30px;
}

/* Quick Appointment Cards in Hero */
.hero-appointment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .hero-appointment-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.quick-cita-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  text-align: center;
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.quick-cita-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  color: #ffffff;
}

.quick-cita-card .icon-box {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--accent-bright);
}

.quick-cita-card .title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.quick-cita-card .btn-tag {
  font-size: 12px;
  font-weight: 600;
  background: #25d366;
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Trust Badges */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #e2e8f0;
}

.trust-item i {
  color: var(--accent-bright);
}

/* ==========================================================================
   Specialty Filter Tabs (Mobile-Scrollable)
   ========================================================================== */
.filter-tabs-wrapper {
  position: sticky;
  top: 72px;
  z-index: 1020;
  background: rgba(244, 248, 247, 0.95);
  backdrop-filter: blur(8px);
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.filter-tabs-scroll {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 4px 16px;
  scrollbar-width: none;
}

.filter-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.filter-tab-btn {
  white-space: nowrap;
  background: var(--bg-surface);
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--text-main);
  padding: 10px 22px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.filter-tab-btn i {
  color: var(--primary-light);
}

.filter-tab-btn.active,
.filter-tab-btn:hover {
  background: var(--primary-dark);
  color: #ffffff;
  border-color: var(--primary-dark);
}

.filter-tab-btn.active i,
.filter-tab-btn:hover i {
  color: var(--accent-bright);
}

/* ==========================================================================
   Specialty Cards Layout (Side Image Layout for PC & Mobile)
   ========================================================================== */
.specialty-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.specialty-card:hover {
  box-shadow: var(--shadow-lg);
}

.specialty-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.specialty-img-wrapper img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: var(--radius-md);
}

.specialty-card:hover .specialty-img-wrapper img {
  transform: scale(1.03);
}

.specialty-badge-floating {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(27, 67, 62, 0.9);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.specialty-body {
  padding: 24px;
}

@media (min-width: 768px) {
  .specialty-body {
    padding: 36px;
  }
}

.specialty-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.specialty-title-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  color: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.specialty-title-group h2 {
  font-size: 1.8rem;
  margin: 0;
}

.treatment-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 768px) {
  .treatment-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.treatment-list li {
  background: var(--bg-light);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.treatment-list li i {
  color: var(--primary-light);
  font-size: 16px;
}

/* Pricing Grid Inside Card */
.pricing-box {
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
  border: 1px solid rgba(0,0,0,0.05);
}

.pricing-box h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #cbd5e1;
  font-size: 14px;
}

.pricing-item:last-child {
  border-bottom: none;
}

.pricing-item .name {
  font-weight: 500;
  color: var(--text-main);
}

.pricing-item .price {
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(70, 147, 144, 0.12);
  padding: 4px 12px;
  border-radius: 20px;
}

/* Contact Box Inside Card */
.contact-info-card {
  background: var(--primary-dark);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
}

.contact-info-card h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.contact-details-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.contact-details-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.contact-details-list li i {
  color: var(--accent-bright);
  font-size: 18px;
}

.contact-details-list a {
  color: #e2e8f0;
}

.contact-details-list a:hover {
  color: var(--accent-bright);
}

.btn-whatsapp-action {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-action:hover {
  background: #1eb956;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Accordion FAQ Styling */
.custom-accordion {
  margin-top: 24px;
}

.custom-accordion .accordion-item {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--bg-surface);
}

.custom-accordion .accordion-button {
  font-weight: 600;
  font-size: 15px;
  color: var(--primary-dark);
  background: var(--bg-light);
  padding: 16px 20px;
}

.custom-accordion .accordion-button:not(.collapsed) {
  background: rgba(70, 147, 144, 0.1);
  color: var(--primary-dark);
  box-shadow: none;
}

.custom-accordion .accordion-body {
  font-size: 14px;
  color: var(--text-muted);
  padding: 18px 20px;
  line-height: 1.6;
}

/* ==========================================================================
   Map & Parking Switcher
   ========================================================================== */
.map-section {
  padding: 60px 0;
  background: var(--bg-surface);
}

.nav-pills-custom {
  display: inline-flex;
  background: var(--bg-light);
  padding: 6px;
  border-radius: 40px;
  margin-bottom: 30px;
}

.nav-pills-custom .nav-link {
  border-radius: 30px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 24px;
  transition: all 0.25s ease;
}

.nav-pills-custom .nav-link.active {
  background: var(--primary-dark);
  color: #ffffff;
}

.map-container-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 450px;
}

.map-container-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Mobile Fixed Bottom Navigation Bar
   ========================================================================== */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(27, 67, 62, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

@media (min-width: 992px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.mobile-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
}

.mobile-bottom-item i {
  font-size: 20px;
  margin-bottom: 2px;
}

.mobile-bottom-item.highlight {
  color: #ffffff;
  background: #25d366;
  border-radius: 30px;
  padding: 8px 18px;
  flex-direction: row;
  gap: 6px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.mobile-bottom-item.highlight i {
  font-size: 18px;
  margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--primary-dark);
  color: #94a3b8;
  padding: 40px 0 30px 0;
  font-size: 14px;
}

footer h5 {
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: all 0.3s ease;
}

.footer-social-links a:hover {
  background: var(--accent-bright);
  color: var(--primary-dark);
}
