/* ===================================================
   COLI ARTE — Custom Styles
   Paleta: #25F8D8 | #09ABD1 | #FE6391 | #71182A | #71182A
   =================================================== */

/* --- Base --- */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: #71182A;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .font-display {
  font-family: 'Playfair Display', serif;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #71182A; }
::-webkit-scrollbar-thumb { background: #25F8D8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #09ABD1; }

/* =====================
   ANIMATIONS
   ===================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-16px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(37, 248, 216, 0.3); }
  50%       { box-shadow: 0 0 50px rgba(37, 248, 216, 0.7); }
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================
   SCROLL REVEAL
   ===================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* =====================
   UTILITY CLASSES
   ===================== */

.float-anim { animation: float 6s ease-in-out infinite; }
.glow-anim  { animation: pulseGlow 3s ease-in-out infinite; }
.spin-anim  { animation: spin 1s linear infinite; }

.gradient-text {
  background: linear-gradient(135deg, #25F8D8, #09ABD1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg {
  background: linear-gradient(135deg, #71182A 0%, #09ABD1 60%, #25F8D8 100%);
}

.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* =====================
   NAVBAR
   ===================== */

.navbar-transparent { background: transparent; }

.navbar-scrolled {
  background: rgba(113, 24, 42, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

/* =====================
   HERO
   ===================== */

.hero-bg {
  background: linear-gradient(135deg, #71182A 0%, #71182A 35%, #09ABD1 75%, #25F8D8 100%);
  position: relative;
}

.hero-grid-pattern {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* =====================
   ART CARDS
   ===================== */

.art-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
}
.art-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(9, 67, 127, 0.2);
}

.art-card .card-img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}
.art-card:hover .card-img img { transform: scale(1.07); }

/* =====================
   ARTIST CARDS (FLIP)
   ===================== */

.artist-card { perspective: 1200px; cursor: pointer; }

.artist-card-inner {
  position: relative;
  width: 100%;
  height: 420px;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
}
.artist-card:hover .artist-card-inner { transform: rotateY(180deg); }

.artist-card-front,
.artist-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}
.artist-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, #71182A, #09ABD1);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* =====================
   IMAGE OVERLAY
   ===================== */

.img-overlay { position: relative; overflow: hidden; }
.img-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(113,24,42,0.65) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.img-overlay:hover::after { opacity: 1; }

/* =====================
   EVENTS
   ===================== */

.event-card {
  border-left: 4px solid #25F8D8;
  transition: background 0.3s ease, transform 0.3s ease;
}
.event-card:hover { transform: translateX(4px); }

/* =====================
   FORM INPUTS
   ===================== */

.form-input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-input:focus {
  outline: none;
  border-color: #25F8D8;
  box-shadow: 0 0 0 3px rgba(37, 248, 216, 0.2);
}

/* =====================
   UPLOAD ZONE (publicar)
   ===================== */

.upload-zone {
  border: 3px dashed #25F8D8;
  border-radius: 16px;
  transition: all 0.3s ease;
  background: rgba(37, 248, 216, 0.03);
}
.upload-zone.drag-over {
  border-color: #71182A;
  background: rgba(37, 248, 216, 0.12);
  transform: scale(1.01);
}

/* =====================
   STEP INDICATOR
   ===================== */

.step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}
.step-dot.active   { background: #25F8D8; color: #71182A; box-shadow: 0 0 20px rgba(37,248,219,0.5); }
.step-dot.done     { background: #09ABD1; color: white; }
.step-dot.inactive { background: #e5e7eb; color: #9ca3af; }

.step-line {
  flex: 1;
  height: 3px;
  transition: background 0.5s ease;
}
.step-line.done   { background: #09ABD1; }
.step-line.active { background: linear-gradient(to right, #09ABD1, #e5e7eb); }
.step-line.inactive { background: #e5e7eb; }

/* =====================
   CATEGORY CARD (publicar)
   ===================== */

.category-card {
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}
.category-card:hover {
  border-color: #25F8D8;
  background: rgba(37, 248, 216, 0.06);
  transform: translateY(-4px);
}
.category-card.selected {
  border-color: #71182A;
  background: rgba(9, 67, 127, 0.05);
  box-shadow: 0 8px 30px rgba(9, 67, 127, 0.15);
}

/* =====================
   PHOTO PREVIEW
   ===================== */

.photo-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}
.photo-preview-item:hover { border-color: #25F8D8; }

.photo-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  background: rgba(113, 24, 42, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}
.photo-preview-item:hover .photo-remove-btn { opacity: 1; }

/* =====================
   MODAL
   ===================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(113, 24, 42, 0.8);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-content {
  animation: scaleIn 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

/* =====================
   TAGS / BADGES
   ===================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-primary { background: rgba(37,248,219,0.15); color: #71182A; }
.badge-secondary { background: rgba(9,171,209,0.15); color: #71182A; }
.badge-fondo { background: rgba(254,99,145,0.15); color: #71182A; }

/* =====================
   TOAST NOTIFICATION
   ===================== */

.toast {
  animation: slideUp 0.4s ease;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  min-width: 280px;
}

/* =====================
   LOADING SKELETON
   ===================== */

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 400px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 640px) {
  .artist-card-inner { height: 340px; }
  .modal-content { max-height: 95vh; }
}

/* =====================
   PRINT
   ===================== */

@media print {
  nav, footer, .no-print { display: none !important; }
}
