/* video-ia.css — estilos exclusivos de Producción de Video con IA */

.page-hero::before {
  content: '01';
}

/* Intro highlights */
.intro-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight {
  padding: 1.5rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-tint);
  border-radius: 0 0.5rem 0.5rem 0;
}

.highlight-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: 0.4rem;
}

.highlight-desc {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 300;
  line-height: 1.6;
}

/* Gallery */
.gallery {
  background: var(--black);
  padding: 6rem 3rem;
}

.gallery .section-title {
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

/* Video cards */
.vcard {
  position: relative;
  cursor: pointer;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16/9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.vcard-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.vcard:hover .vcard-thumb {
  transform: scale(1.04);
}

.vcard-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1a0a 100%);
}

.vcard-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  transition: background 0.3s ease;
}

.vcard:hover .vcard-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.25) 65%);
}

.vcard-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.35rem;
}

.vcard-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.25;
}

.vcard-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.3rem;
  font-weight: 300;
  line-height: 1.4;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.vcard:hover .vcard-desc {
  max-height: 3rem;
  opacity: 1;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.vcard:hover .play-btn {
  background: var(--accent);
  border-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-btn svg {
  width: 22px;
  height: 22px;
  fill: white;
  margin-left: 3px;
}

.vimeo-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 0.3rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vcard.featured {
  grid-column: 1 / -1;
  aspect-ratio: 21/9;
}

.vcard.featured .vcard-title {
  font-size: 1.4rem;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 960px;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
  background: #000;
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.modal-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.modal-info {
  padding: 1rem 1.5rem 1.25rem;
  background: #0d0d0d;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.modal-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--white);
}

.modal-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.2rem;
  font-weight: 300;
}

.modal-vimeo-link {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  align-self: center;
}

.modal-vimeo-link:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Herramientas */
.tools {
  background: var(--gray-100);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.tool-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: 0.4rem;
}

.tool-desc {
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.5;
  font-weight: 300;
}

.tool-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  background: var(--black);
  color: var(--white);
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

/* Casos de uso */
.cases {
  background: var(--white);
}

.cases-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.case-item {
  padding: 2rem;
  background: var(--gray-100);
  border-radius: 0.75rem;
}

.case-num {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

.case-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.case-desc {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.7;
  font-weight: 300;
}

/* CTA — fondo negro */
.cta-section {
  background: var(--black);
}

.cta-title {
  color: var(--white);
}

.btn-primary {
  background: var(--accent);
  transition: opacity 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.85;
  background: var(--accent);
}

.btn-ghost {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Other cards */
.other-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.other-card:hover {
  border-color: var(--black);
  transform: translateY(-2px);
}

.gallery-instagram {
  margin-top: 3rem;
  text-align: center;
}

.gallery-instagram-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.gallery-instagram-link:hover {
  color: var(--accent-light);
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .vcard.featured {
    grid-column: 1;
    aspect-ratio: 16/9;
  }
}

@media (max-width: 900px) {
  .gallery {
    padding: 4rem 1.5rem;
  }

  .modal-overlay {
    padding: 0.75rem;
  }
}