/* =============================================
   TESIS DE GRADO — Salón de Clases
   ============================================= */

/* ─── VARIABLES ─── */
:root {
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body: 'DM Sans', system-ui, sans-serif;
  --ff-mono: 'DM Mono', monospace;
  --gold: #d4852c;
  --gold-light: #e8a752;
  --red: #ff6b6b;
  --orange: #ff8e53;
  --yellow: #feca57;
  --pink: #ff6b9d;
  --cyan: #48dbfb;
  --cream: #1a1a1a;
  --text: #2d2d2d;
  --text-muted: #666666;
  --text-dim: #555555;
  --bg: #f8f9fa;
  --bg-2: #f0f2f7;
  --bg-card: #ffffff;
  --border: rgba(212,133,44,0.15);
  --border-dim: rgba(212,133,44,0.08);
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-gold: 0 4px 16px rgba(212,133,44,0.15);
}

/* ─── SECCIÓN BIENVENIDA ─── */
#dcreativo-bienvenida {
  background: linear-gradient(180deg, rgba(155, 89, 182, 0.08) 0%, rgba(155, 89, 182, 0.05) 100%);
  padding: 40px 0 20px;
  border-bottom: 2px solid rgba(155, 89, 182, 0.2);
}

.dcreativo-entregas {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  border-radius: 12px;
  padding: 12px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(155, 89, 182, 0.15);
  transition: all .4s cubic-bezier(.175,.885,.32,1.275);
}

.dcreativo-entregas::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.dcreativo-entregas::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}

.dcreativo-entregas:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(155, 89, 182, 0.25);
}

.dcreativo-entregas:hover::after {
  animation: shimmer .8s ease;
}

.dcreativo-entregas-title {
  font-family: var(--ff-display);
  font-size: .95rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.dcreativo-entregas-desc {
  color: rgba(255,255,255,0.9);
  font-size: .73rem;
  line-height: 1.3;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.dcreativo-entregas-button {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.95);
  color: #9b59b6;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: .7rem;
  transition: all .3s ease;
  position: relative;
  z-index: 1;
  cursor: pointer;
  border: none;
}

.dcreativo-entregas-button:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ─── SECCIÓN AULA (CURSOS) ─── */
#dcreativo-aula {
  background: linear-gradient(180deg, var(--bg) 0%, #fef5f8 100%);
  padding: 40px 0;
}

.dcreativo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
  margin-top: 40px;
}

.dcreativo-curso {
  background: var(--bg-card);
  border: 2px solid var(--border-dim);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: all .4s cubic-bezier(.175,.885,.32,1.275);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  text-align: center;
}

.dcreativo-curso::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--curso-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.dcreativo-curso::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 150% 50%, rgba(155,89,182,.08), transparent);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}

.dcreativo-curso:hover {
  border-color: var(--curso-color);
  box-shadow: 0 12px 32px rgba(0,0,0,.12), 0 0 20px var(--curso-color, rgba(155,89,182,.2));
  transform: translateY(-8px) scale(1.02);
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.98) 100%);
}

.dcreativo-curso:hover::before {
  transform: scaleX(1);
}

.dcreativo-curso:hover::after {
  opacity: 1;
}

/* ─── COLORES POR PAUTA ─── */
.dcreativo-curso-1 {
  --curso-color: #9b59b6;
  background: rgba(155, 89, 182, 0.08);
}

.dcreativo-curso-2 {
  --curso-color: #8e44ad;
  background: rgba(142, 68, 173, 0.08);
}

.dcreativo-curso-3 {
  --curso-color: #af7ac5;
  background: rgba(175, 122, 197, 0.08);
}

.dcreativo-curso-4 {
  --curso-color: #d7bde2;
  background: rgba(215, 189, 226, 0.08);
}

.dcreativo-curso-numero {
  font-family: var(--ff-display);
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--curso-color), rgba(255,255,255,0.3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform .3s;
  margin: 0;
}

.dcreativo-curso:hover .dcreativo-curso-numero {
  transform: scale(1.15) rotate(-5deg);
}

.dcreativo-curso-nombre {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--curso-color), var(--cream));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  transition: all .3s;
}

.dcreativo-curso:hover .dcreativo-curso-nombre {
  color: var(--curso-color);
  transform: translateY(-2px);
}

.dcreativo-curso-desc {
  font-size: .88rem;
  color: var(--text-dim);
  line-height: 1.5;
  flex-grow: 1;
  transition: color .3s;
  margin: 0;
}

.dcreativo-curso:hover .dcreativo-curso-desc {
  color: var(--text);
}

.dcreativo-curso-arrow {
  font-size: .9rem;
  color: var(--gold);
  font-weight: 700;
  transition: all .3s cubic-bezier(.34, 1.56, .64, 1);
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
}

.dcreativo-curso:hover .dcreativo-curso-arrow {
  transform: translateX(6px);
  color: var(--curso-color);
}

/* ─── BOTÓN WHATSAPP ─── */
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #25d366, #20ba5a);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: all .3s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  border: none;
  cursor: pointer;
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  background: linear-gradient(135deg, #20ba5a, #1a9d4a);
}

/* ─── ANIMACIONES ─── */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(15px) rotate(3deg); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  #dcreativo-aula {
    padding: 30px 0;
  }

  .dcreativo-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 30px;
  }

  .dcreativo-curso {
    padding: 18px;
    gap: 8px;
  }

  .dcreativo-curso-numero {
    font-size: 2rem;
  }

  .dcreativo-curso-nombre {
    font-size: 1.1rem;
  }

  .dcreativo-curso-desc {
    font-size: .8rem;
  }
}

@media (max-width: 600px) {
  #dcreativo-bienvenida {
    padding: 30px 0 16px;
  }

  #dcreativo-aula {
    padding: 30px 0;
  }

  .dcreativo-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 24px;
  }

  .dcreativo-curso {
    padding: 16px;
    gap: 6px;
  }

  .dcreativo-curso-numero {
    font-size: 1.8rem;
    margin-bottom: 2px;
  }

  .dcreativo-curso-nombre {
    font-size: 1rem;
  }

  .dcreativo-curso-desc {
    font-size: .75rem;
    line-height: 1.4;
  }

  .whatsapp-button {
    padding: 10px 16px;
    font-size: .85rem;
    gap: 6px;
  }
}
