/* --- ICONOS REMIXICON --- */
:where([class^="ri-"])::before {
  content: "\f3c2";
}

/* --- RESET INPUT NUMBER --- */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* --- BODY --- */
body {
  font-family: 'Inter', sans-serif;
  background-color: #1a1a1a;
  color: #ffffff;
}

/* --- CUSTOM CHECKBOX --- */
.custom-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: relative;
  height: 20px;
  width: 20px;
  background-color: transparent;
  border: 2px solid #faea3c;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.custom-checkbox:hover input~.checkmark {
  background-color: rgba(250, 234, 60, 0.1);
}

.custom-checkbox input:checked~.checkmark {
  background-color: #faea3c;
  border-color: #faea3c;
}

.custom-checkbox input:checked~.checkmark:after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: block;
}

/* --- HERO VIDEO SECTION --- */
.hero-section {
  position: relative;
  overflow: hidden;
  /* Devuélvele la altura completa del vídeo */
  height: 60vh;
  /* O alternativamente: padding-top: 60vh; */
  /* y elimina el margin-top negativo del texto */
}

/* Ajustes específicos al contenedor de vídeo para no romper Tailwind */
.hero-section .video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60vh;
  /* fija la altura al 60% del viewport */
  overflow: hidden;
}

/* Gradient overlay encima del vídeo */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(26, 26, 26, 0.45),
      /* antes 0.9 */
      rgba(26, 26, 26, 0.30) 50%,
      /* antes 0.8 */
      rgba(26, 26, 26, 0.08)
      /* antes 0.4 */
    );
  z-index: 1;
}


/* Vídeo justo debajo del degradado */
.hero-section video {
  position: absolute;
  inset: 0;
  object-fit: cover;
  z-index: 0;
}

/* Ocultar vídeos inactivos */
.video-container video.hidden {
  display: none;
}

/* Indicador activo más visible */
.video-indicator.active {
  background-color: #ffffff !important;
  /* indicador activo en blanco */
  transform: scale(1.2);
}

/* --- SERVICE CARDS HOVER --- */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* --- NAV UNDERLINE ON HOVER --- */
.nav-link {
  position: relative;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #faea3c;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* --- PROFILE TABS --- */
.profile-tab {
  position: relative;
  color: #6b7280;
  transition: all 0.3s ease;
}

.profile-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #faea3c;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.profile-tab:hover {
  color: #111827;
}

.profile-tab.active {
  color: #111827;
}

.profile-tab.active::after {
  transform: scaleX(1);
}

/* --- IFRAME CONTAINER --- */
.iframe-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- PORTFOLIO GALLERY --- */
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.portfolio-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  background-color: #1e1e1e;
}

.portfolio-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.bg-\[\#ffffff\] .portfolio-item {
  background-color: #172a46;
}

.bg-\[\#112240\] .portfolio-item {
  background-color: #1e3a5f;
}

.bg-\[\#1D1836\] .portfolio-item {
  background-color: #2a2649;
}

/* --- PORTFOLIO TABS --- */
.portfolio-tabs {
  display: flex;
  border-bottom: 1px solid #faea3c;
  margin-bottom: 20px;
  overflow-x: auto;
  background-color: #fff;
  border-radius: 8px 8px 0 0;
  padding: 0 10px;
}

.portfolio-tabs::-webkit-scrollbar {
  display: none;
}

.portfolio-tab {
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.3s ease;
  color: #000;
}

.portfolio-tab.active {
  background-color: #faea3c;
  border-bottom-color: #faea3c;
  font-weight: 700;
}

.portfolio-tab:hover:not(.active) {
  background-color: rgba(250, 234, 60, 0.3);
}

/* Show/hide portfolio content */
.portfolio-content {
  display: none;
}

.portfolio-content.active {
  display: block;
}

/* --- VFX SLIDER --- */
#vfx-slider {
  display: flex;
  transition: transform 0.5s ease;
}

#vfx-slider .portfolio-item {
  flex: 0 0 calc(100%/4);
}

/* --- MODALS --- */
.portfolio-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.portfolio-modal-content {
  background: #1e1e1e;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
  border-radius: 8px;
  position: relative;
  padding: 1rem;
  color: #fff;
}

.portfolio-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
}

/* --- VIRTUAL PRODUCTION --- */
#produccion-virtual .iframe-container,
#produccion-virtual .vp-card {
  max-width: 500px;
  margin: 0 auto;
}

/* ==== Estilos extraídos de Portafolio.html ==== */

/* Remixicon */
:where([class^="ri-"])::before {
  content: "\f3c2";
}

/* Nav underline (inline en Portafolio.html) */
.nav-link {
  position: relative;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #faea3c;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Profile tabs */
.profile-tab {
  position: relative;
  color: #6b7280;
  transition: all 0.3s ease;
}

.profile-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #faea3c;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.profile-tab:hover {
  color: #111827;
}

.profile-tab.active {
  color: #111827;
}

.profile-tab.active::after {
  transform: scaleX(1);
}

/* Skill bar hover */
.skill-bar {
  transition: all 0.3s ease;
}

.skill-bar:hover {
  transform: translateX(10px);
}

/* Body override (asegura fondo y tipografía consistentes) */
body {
  font-family: 'Inter', sans-serif;
  background-color: #1a1a1a;
  color: #ffffff;
}

/* Iframe container (vídeos, mapping, etc.) */
.iframe-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Remove number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Portfolio gallery */
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Portfolio items */
.portfolio-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  background-color: #1e1e1e;
}

.portfolio-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Background color variants */
.bg-\[\#ffffff\] .portfolio-item {
  background-color: #172a46;
}

.bg-\[\#112240\] .portfolio-item {
  background-color: #1e3a5f;
}

.bg-\[\#1D1836\] .portfolio-item {
  background-color: #2a2649;
}

/* Portfolio tabs */
.portfolio-tabs {
  display: flex;
  border-bottom: 1px solid #faea3c;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  background-color: #ffffff;
  border-radius: 8px 8px 0 0;
  padding: 0 10px;
}

.portfolio-tabs::-webkit-scrollbar {
  display: none;
}

/* Portfolio tab buttons */
.portfolio-tab {
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  color: #000000;
  transition: all 0.3s ease;
}

.portfolio-tab.active {
  background-color: #faea3c;
  border-bottom-color: #faea3c;
  color: #000000;
  font-weight: 700;
}

.portfolio-tab:hover:not(.active) {
  background-color: rgba(250, 234, 60, 0.3);
  color: #000000;
}

/* Portfolio content panes */
.portfolio-content {
  display: none;
}

.portfolio-content.active {
  display: block;
}

/* VFX slider */
#vfx-slider {
  display: flex;
}

#vfx-slider .portfolio-item {
  flex: 0 0 calc(100%/4);
}

/* Portfolio modals */
.portfolio-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.portfolio-modal-content {
  background: #1e1e1e;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
  border-radius: 8px;
  position: relative;
  padding: 1rem;
  color: #fff;
}

.portfolio-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* === Popover Instagram === */
.ig-popover {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .35)
}

.ig-popover.show {
  display: flex
}

.ig-card {
  width: min(92vw, 360px);
  background: #0b0f19;
  color: #fff;
  border: 1px solid rgba(250, 234, 60, .4);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .30)
}

.ig-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(250, 234, 60, .25)
}

.ig-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent
}

.ig-close:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(250, 234, 60, .4)
}

.ig-list {
  list-style: none;
  margin: 0;
  padding: 8px
}

.ig-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #e5eaf5
}

.ig-list a:hover {
  background: rgba(250, 234, 60, .12);
  color: #faea3c
}

/* === AUTO ADDED RULES === */
.profile-content {
  display: none;
}

.profile-content.active {
  display: block !important;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 900px;
  margin: 0;
}

.contact-form input[type=text],
.contact-form input[type=email],
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  display: block
}

.form-status {
  margin-top: 8px
}

.form-status.success {
  color: #48bb78
}

.form-status.error {
  color: #f87171
}

.contact-form>* {
  grid-column: 1/-1;
}

/* --- TAB FUSE: ensures active panel visibility --- */
.profile-content {
  display: none;
}

.profile-content.active {
  display: block !important;
}