/* Estilos personalizados para Dr. José Ramos Cruz - Centro Médico Atacama */

:root {
  --primary: #0284c7;        /* Azul Médico Atacama */
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --secondary: #0f172a;      /* Navy profundo para textos y elegancia */
  --accent: #0ea5e9;
  --gold: #d97706;           /* Dorado sutil para 40 años de experiencia */
  --gold-light: #fef3c7;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border-color: #e2e8f0;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --whatsapp-green: #25D366;
  --whatsapp-dark: #128C7E;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 25px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 35px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--surface-alt);
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Tipografía y encabezados */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--secondary);
}

/* Utilities */
.container-custom {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-experience {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  box-shadow: var(--shadow-sm);
}

.btn-primary-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  transition: var(--transition);
  box-shadow: 0 4px 14px 0 rgba(2, 132, 199, 0.39);
}

.btn-primary-gradient:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(2, 132, 199, 0.49);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
  color: white;
  transition: var(--transition);
  box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #1ea952 0%, #15803d 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(37, 211, 102, 0.45);
}

/* Logos & Media */
.logo-blend {
  mix-blend-mode: multiply;
  object-fit: contain;
}

.card-hover {
  transition: var(--transition);
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

/* Accordion FAQ */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  background-color: var(--surface);
  transition: var(--transition);
  overflow: hidden;
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.faq-question {
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--secondary);
  user-select: none;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Floating WhatsApp Widget */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.floating-whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--whatsapp-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
  animation: pulse-green 2s infinite;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.08);
  background-color: #1eb956;
}

.floating-whatsapp-tooltip {
  background-color: var(--secondary);
  color: white;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.825rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  position: relative;
  display: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (min-width: 768px) {
  .floating-whatsapp-tooltip {
    display: block;
  }
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Decorative image borders and shadows */
.doctor-photo-frame {
  position: relative;
}

.doctor-photo-frame::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 1.75rem;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(217, 119, 6, 0.15));
  z-index: 0;
  transform: rotate(-1.5deg);
}

.doctor-photo-frame img {
  position: relative;
  z-index: 1;
}

/* Custom tabs for treatments */
.filter-btn.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}
