/* styles.css - Estilos premium para el Timeline Interactivo de MARBACON */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  --color-primary: #722F37;
  --color-primary-dark: #5A2027;
  --color-primary-light: #F6EBEC;
  --color-accent: #D4AF37;
  --color-accent-light: #FCF7E6;
  --color-bg-base: #FAF5EF;
  --color-bg-card: rgba(255, 255, 255, 0.85);
  --color-text-main: #2B2D42;
  --color-text-muted: #6C757D;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  background-image: 
    radial-gradient(at 10% 20%, rgba(212, 175, 55, 0.05) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(114, 47, 55, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.font-script {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

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

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(114, 47, 55, 0.05);
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(114, 47, 55, 0.3);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px 0 rgba(114, 47, 55, 0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px 0 rgba(114, 47, 55, 0.12);
  border-color: rgba(114, 47, 55, 0.2);
}

/* Timeline Connection Line (Desktop) */
.timeline-line-horizontal {
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(114, 47, 55, 0.15);
  z-index: 1;
}

.timeline-line-horizontal-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--color-primary);
  width: 0%;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Timeline Connection Line (Mobile) */
.timeline-line-vertical {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 32px;
  width: 4px;
  background: rgba(114, 47, 55, 0.15);
  z-index: 1;
}

.timeline-line-vertical-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-primary);
  height: 0%;
  transition: height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Timeline Nodes */
.timeline-node {
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-node-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: white;
  border: 4px solid rgba(114, 47, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.25rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 10px rgba(114, 47, 55, 0.1);
}

.timeline-node:hover .timeline-node-circle,
.timeline-node.active .timeline-node-circle {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-accent);
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(114, 47, 55, 0.15);
}

/* Custom classes for the toggle button */
.toggle-pill {
  position: relative;
  background: rgba(114, 47, 55, 0.08);
  border: 1px solid rgba(114, 47, 55, 0.15);
  border-radius: 9999px;
  padding: 4px;
  display: inline-flex;
}

.toggle-pill-btn {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease;
  color: var(--color-text-main);
}

.toggle-pill-btn.active {
  color: white;
  background: var(--color-primary);
  box-shadow: 0 4px 12px rgba(114, 47, 55, 0.2);
}

/* Stagger Entry Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Modal / Detailed view */
.modal-overlay {
  background: rgba(43, 45, 66, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.modal-content-container {
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-content-container {
  transform: scale(1) translateY(0);
}

/* Accent shapes and decorative details */
.card-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: 12px 12px 0 0;
}

/* Custom Star and Icons Styling */
.text-accent {
  color: var(--color-accent);
}

.bg-primary-light {
  background-color: var(--color-primary-light);
}

.text-primary-dark {
  color: var(--color-primary-dark);
}
