/* ========================================
   SECCIÓN CATERING - Videos Verticales
   ======================================== */

.catering-section {
  padding: var(--section-padding);
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

/* Header de la sección */
.catering-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.catering-header .section-subtitle {
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.catering-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.catering-header .section-description {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* Grid de videos */
.catering-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Card individual */
.catering-card {
  position: relative;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  aspect-ratio: 9/16;
  min-height: 600px;
}

.catering-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Contenedor del video */
.catering-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--color-dark);
}

.catering-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay con degradado */
.catering-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.1) 0%,
    rgba(26, 26, 26, 0.3) 50%,
    rgba(26, 26, 26, 0.8) 100%
  );
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.catering-card.playing .catering-overlay {
  opacity: 0;
}

/* Contenido de la card */
.catering-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: white;
  z-index: 2;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.catering-card.playing .catering-content {
  transform: translateY(100%);
  opacity: 0;
}

.catering-card:not(.playing) .catering-content {
  transform: translateY(0);
  opacity: 1;
}

/* Ícono de categoría */
.catering-icon {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

/* Título del video */
.catering-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: white;
}

/* Descripción */
.catering-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

/* Botón de reproducción */
.catering-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(212, 175, 55, 0.95);
  border: 3px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.catering-play-btn::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent white;
  margin-left: 4px;
}

.catering-card.playing .catering-play-btn {
  opacity: 0;
  pointer-events: none;
}

.catering-card:hover .catering-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--color-primary);
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.5);
}

/* Botón "Ver video" */
.catering-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.catering-watch-btn:hover {
  background: #b8941f;
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.catering-watch-btn::after {
  content: '▶';
  font-size: 0.8rem;
}

/* Controles del video al reproducir */
.catering-video-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.catering-card.playing .catering-video-controls {
  opacity: 1;
}

.catering-control-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.catering-control-btn:hover {
  background: white;
  transform: scale(1.1);
}

.catering-control-btn.pause::before {
  content: '⏸';
  font-size: 1.2rem;
  color: var(--color-dark);
}

.catering-control-btn.play::before {
  content: '▶';
  font-size: 1.2rem;
  color: var(--color-dark);
  margin-left: 3px;
}

/* Responsive Design */

/* Tablets */
@media (max-width: 1024px) {
  .catering-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }

  .catering-card {
    min-height: 550px;
  }

  .catering-title {
    font-size: 1.6rem;
  }

  .catering-description {
    font-size: 0.9rem;
  }
}

/* Móviles grandes */
@media (max-width: 768px) {
  .catering-section {
    padding: 4rem 0;
  }

  .catering-header {
    margin-bottom: 3rem;
  }

  .catering-grid {
    /* En móvil: videos apilados verticalmente */
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .catering-card {
    min-height: 500px;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }

  .catering-content {
    padding: 1.5rem;
  }

  .catering-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .catering-title {
    font-size: 1.4rem;
  }

  .catering-description {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .catering-play-btn {
    width: 70px;
    height: 70px;
  }

  .catering-play-btn::before {
    border-width: 10px 0 10px 16px;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .catering-card {
    flex: 0 0 90%;
    min-height: 450px;
  }

  .catering-header h2 {
    font-size: 2rem;
  }

  .catering-content {
    padding: 1.2rem;
  }

  .catering-title {
    font-size: 1.3rem;
  }

  .catering-description {
    font-size: 0.8rem;
  }
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.catering-card {
  animation: fadeInUp 0.6s ease-out backwards;
}

.catering-card:nth-child(1) {
  animation-delay: 0.1s;
}

.catering-card:nth-child(2) {
  animation-delay: 0.2s;
}

.catering-card:nth-child(3) {
  animation-delay: 0.3s;
}
