/* ============================================================
   MethodVS — components.css
   Componentes reutilizables de la UI
   ============================================================ */

/* ----------------------------------------------------------
   CARDS
   ---------------------------------------------------------- */

.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  padding: 2rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.card-gold {
  border-left: 4px solid #e8960a;
}

.card-dark {
  background: #1e1a14;
  color: #ffffff;
}
.card-dark p { color: #9c8f82; }

.card-image {
  padding: 0;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  display: block;
  border-radius: 12px 12px 0 0;
}
.card-image .card-body {
  padding: 1.5rem;
}

/* ----------------------------------------------------------
   SERVICE CARD
   ---------------------------------------------------------- */

.service-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-card:hover {
  box-shadow: 0 12px 32px rgba(232, 150, 10, 0.15);
  transform: translateY(-5px);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff8e7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto;
  border: 2px solid rgba(232, 150, 10, 0.3);
}

.service-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  color: #2c2416;
  margin: 0;
}

.service-desc {
  color: #70655a;
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.service-price {
  font-weight: 700;
  color: #e8960a;
  font-size: 1.05rem;
}

/* ----------------------------------------------------------
   BADGES / TAGS
   ---------------------------------------------------------- */

.badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.badge-gold    { background: #fff8e7; color: #b97500; border: 1px solid rgba(232,150,10,0.4); }
.badge-green   { background: #e6f9ef; color: #1a7a40; }
.badge-blue    { background: #e7f0fb; color: #1a4a8a; }
.badge-purple  { background: #f0e7fb; color: #6a1ab0; }
.badge-red     { background: #fde8e8; color: #9a1a1a; }
.badge-gray    { background: #f0ebe2; color: #70655a; }

/* Status badges */
.status-pendiente  { background: #fff3e0; color: #b96a00; border: 1px solid #f0c040; }
.status-confirmada { background: #e6f9ef; color: #1a7a40; border: 1px solid #4caf7a; }
.status-completada { background: #e7f0fb; color: #1a4a8a; border: 1px solid #4a7abf; }
.status-cancelada  { background: #fde8e8; color: #9a1a1a; border: 1px solid #e07070; }
.status-no-show    { background: #f0ebe2; color: #70655a; border: 1px solid #c0b0a0; }
.status-lead       { background: #fff8e7; color: #b97500; border: 1px solid rgba(232,150,10,0.4); }
.status-activo     { background: #e6f9ef; color: #1a7a40; border: 1px solid #4caf7a; }
.status-inactivo   { background: #f0ebe2; color: #70655a; }

/* Tipo citas */
.tipo-presencial_sp { background: #e7f0fb; color: #1a4a8a; }
.tipo-online        { background: #f0e7fb; color: #6a1ab0; }
.tipo-bolivia       { background: #e6f9ef; color: #1a7a40; }

/* ----------------------------------------------------------
   MODALS
   ---------------------------------------------------------- */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 13, 10, 0.75);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(3px);
}
.modal-overlay.active { display: flex; }

.modal {
  background: #ffffff;
  border-radius: 14px;
  padding: 2rem;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: bounceIn 0.35s ease;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0ebe2;
}

.modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: #2c2416;
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f0ebe2;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: #70655a;
}
.modal-close:hover { background: #e8ddf0; color: #2c2416; }

/* ----------------------------------------------------------
   TOASTS / ALERTS
   ---------------------------------------------------------- */

.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  font-size: 0.95rem;
  font-weight: 500;
  pointer-events: all;
  animation: fadeInLeft 0.3s ease;
  min-width: 260px;
  max-width: 360px;
}

.toast-success { background: #e6f9ef; color: #1a7a40; border-left: 4px solid #4caf7a; }
.toast-error   { background: #fde8e8; color: #9a1a1a; border-left: 4px solid #e07070; }
.toast-info    { background: #e7f0fb; color: #1a4a8a; border-left: 4px solid #4a7abf; }
.toast-warning { background: #fff3e0; color: #b96a00; border-left: 4px solid #f0c040; }

/* ----------------------------------------------------------
   TABLES
   ---------------------------------------------------------- */

.table-responsive {
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  background: #ffffff;
}

.table th {
  background: #1e1a14;
  color: #ffffff;
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #f0ebe2;
  color: #2c2416;
  vertical-align: middle;
}

.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #faf9f7; }

/* ----------------------------------------------------------
   PAGINATION
   ---------------------------------------------------------- */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.page-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #e8ddf0;
  border-radius: 6px;
  background: #ffffff;
  color: #70655a;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}
.page-btn:hover         { border-color: #e8960a; color: #e8960a; }
.page-btn.active        { background: #e8960a; color: #0f0d0a; border-color: #e8960a; font-weight: 700; }
.page-btn:disabled      { opacity: 0.4; cursor: default; }

/* ----------------------------------------------------------
   FORMS (nivel componente)
   ---------------------------------------------------------- */

.search-bar {
  display: flex;
  border: 1px solid #e8ddf0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.search-bar input {
  flex: 1;
  border: none;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  outline: none;
  background: transparent;
}

.search-bar button {
  padding: 0.7rem 1.2rem;
  background: #e8960a;
  color: #0f0d0a;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
.search-bar button:hover { background: #b97500; }

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

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Checkboxes / radios personalizados */
.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-group label,
.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-weight: 400;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #e8960a;
  cursor: pointer;
}

/* ----------------------------------------------------------
   DIVIDERS
   ---------------------------------------------------------- */

.divider-gold {
  width: 60px;
  height: 3px;
  background: #e8960a;
  border-radius: 2px;
  margin: 1rem auto;
}

.divider-left {
  margin-left: 0;
}

/* ----------------------------------------------------------
   STATS / COUNTERS
   ---------------------------------------------------------- */

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #e8960a;
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9c8f82;
  margin-top: 0.5rem;
  display: block;
}

/* ----------------------------------------------------------
   TESTIMONIALS
   ---------------------------------------------------------- */

.testimonial {
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  border-left: 4px solid #e8960a;
  background: #faf9f7;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #2c2416;
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-size: 4rem;
  color: #e8960a;
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.3;
}

.testimonial-text { font-size: 1.05rem; line-height: 1.7; margin: 0; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  font-style: normal;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8960a, #b97500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial-name  { font-weight: 600; color: #2c2416; font-size: 0.95rem; }
.testimonial-city  { color: #9c8f82; font-size: 0.85rem; }

.stars { color: #e8960a; font-size: 0.9rem; letter-spacing: 2px; }

/* Carousel */
.testimonial-carousel {
  overflow: hidden;
  position: relative;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  min-width: 100%;
  padding: 0.5rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e8ddf0;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: #e8960a;
  transform: scale(1.2);
}

/* ----------------------------------------------------------
   BEFORE / AFTER
   ---------------------------------------------------------- */

.before-after {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: ew-resize;
  user-select: none;
}

.before-after img {
  display: block;
  width: 100%;
  pointer-events: none;
}

.before-after-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #e8960a;
  cursor: ew-resize;
  left: 50%;
}

.before-after-slider::before {
  content: '◀ ▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #e8960a;
  color: #0f0d0a;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.before-label,
.after-label {
  position: absolute;
  top: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.before-label { left: 0.75rem;  background: rgba(15,13,10,0.7); color: #ffffff; }
.after-label  { right: 0.75rem; background: rgba(232,150,10,0.9); color: #0f0d0a; }

/* ----------------------------------------------------------
   RESULT CARD
   ---------------------------------------------------------- */

.result-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  background: #ffffff;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.result-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.14);
  transform: translateY(-4px);
}

.result-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 200px;
}

.result-photo {
  background: #f0ebe2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #9c8f82;
  position: relative;
}
.result-photo span {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.result-photo.after { background: #fff8e7; }

.result-info {
  padding: 1rem 1.25rem;
}
.result-info h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: #2c2416;
}
.result-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #9c8f82;
}

/* ----------------------------------------------------------
   DOCTOR CARD (aliados)
   ---------------------------------------------------------- */

.doctor-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.doctor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  background: linear-gradient(135deg, #e8960a, #b97500);
}

.doctor-name       { font-weight: 700; color: #2c2416; margin-bottom: 0.25rem; }
.doctor-specialty  { color: #9c8f82; font-size: 0.9rem; }

.doctor-credentials {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  text-align: left;
}
.doctor-credentials li {
  font-size: 0.85rem;
  color: #70655a;
  padding: 0.2rem 0;
}
.doctor-credentials li::before {
  content: '✓ ';
  color: #e8960a;
  font-weight: 700;
}

/* ----------------------------------------------------------
   BLOG CARD
   ---------------------------------------------------------- */

.blog-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.blog-card-image {
  height: 180px;
  background: linear-gradient(135deg, #1e1a14, #2b2118);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-card-body    { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-category     { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; color: #e8960a; letter-spacing: 0.06em; }
.blog-title        { font-family: 'Playfair Display', Georgia, serif; font-size: 1.1rem; margin: 0.5rem 0 0.75rem; color: #2c2416; }
.blog-excerpt      { font-size: 0.9rem; color: #70655a; line-height: 1.6; flex: 1; }
.blog-meta         { font-size: 0.8rem; color: #9c8f82; margin-top: 1rem; }

/* ----------------------------------------------------------
   TIMELINE
   ---------------------------------------------------------- */

.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #e8960a, transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.85rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e8960a;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 3px rgba(232,150,10,0.3);
}

.timeline-title   { font-weight: 700; color: #2c2416; margin-bottom: 0.3rem; }
.timeline-content { color: #70655a; font-size: 0.95rem; }

/* ----------------------------------------------------------
   ACCORDION (FAQ)
   ---------------------------------------------------------- */

.accordion-item {
  border-bottom: 1px solid #f0ebe2;
}

.accordion-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  color: #2c2416;
  font-size: 1rem;
  user-select: none;
  transition: color 0.2s;
}
.accordion-question:hover { color: #e8960a; }

.accordion-icon {
  font-size: 1.3rem;
  color: #e8960a;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.accordion-item.open .accordion-answer { max-height: 500px; padding-bottom: 1.25rem; }

.accordion-answer p {
  color: #70655a;
  line-height: 1.7;
  margin: 0;
}

/* ----------------------------------------------------------
   CREDENTIAL BADGES (Nosotros)
   ---------------------------------------------------------- */

.credential-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.credential-badge {
  background: #fff8e7;
  color: #b97500;
  border: 1px solid rgba(232,150,10,0.35);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ----------------------------------------------------------
   FEATURE LIST (Medicina Regenerativa)
   ---------------------------------------------------------- */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.feature-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(232, 150, 10, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.feature-title   { font-weight: 700; color: #ffffff; margin-bottom: 0.2rem; font-size: 1rem; }
.feature-desc    { color: #9c8f82; font-size: 0.9rem; line-height: 1.5; }

/* Dark bg variant */
.feature-list.light .feature-title { color: #2c2416; }

/* ----------------------------------------------------------
   CONTACT INFO ITEMS
   ---------------------------------------------------------- */

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

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(232,150,10,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-item strong { display: block; color: #ffffff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.2rem; }
.contact-info-item span   { color: #9c8f82; font-size: 0.95rem; }

/* ----------------------------------------------------------
   SOCIAL LINKS
   ---------------------------------------------------------- */

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9c8f82;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.social-link:hover { background: #e8960a; color: #0f0d0a; }
