/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0
*/

/* =========================
   RESET
========================= */
html, body {
  margin: 0;
  padding: 0;
  
}

/* =========================
   HEADER
========================= */

.site-header {
  width: 100% !important;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
}

/* LOGO */
.site-logo img {
  width: 100px;
  max-width: 40vw;
  height: auto;
  display: block;
}

/* =========================
   MENU
========================= */

.custom-menu-wrapper {
  display: flex;
  align-items: center;
  position: relative; /* 🔑 para menú móvil */
}

.custom-menu {
  display: flex;
  gap: 2.5rem;
}

.menu-item {
  position: relative;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  padding-bottom: 6px;
}

/* underline */
.menu-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #333;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.menu-item:hover::after,
.menu-item.active::after,
.menu-item:focus-visible::after {
  transform: scaleX(1);
}

/* accesibilidad */
.menu-item:focus-visible {
  outline: none;
}

/* =========================
   HAMBURGUESA
========================= */

.menu-toggle {
  display: none;
  width: 22px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #000;
  border-radius: 999px;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

/* animación X */
.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   MOBILE MENU
========================= */

@media (max-width: 768px) {

  .site-logo img {
    width: 120px;
  }

  .menu-toggle {
    display: block;
  }

  .custom-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    padding: 1rem 1.5rem;
    gap: 1.2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .custom-menu.open {
    display: flex;
  }
}



/* cursor */
@keyframes blink {
  0% { border-color: transparent; }
  50% { border-color: black; }
  100% { border-color: transparent; }
}

/* =========================
   FOOTER
========================= */

.site-footer {
  position: relative;
  width: 100%;
  background-color: #000;
}

.site-footer .footer-inner {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: left;
  box-sizing: border-box;
  color: #fff;
}

/* LOGO */
.footer-logo-img {
  height: 22px;
  width: auto;
  display: block;
}

/* ICONOS */
.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-icon {
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.footer-icon:hover {
  opacity: 0.7;
}

.footer-icon svg {
  display: block;
  fill: currentColor;
}

/* =========================
   FOOTER RESPONSIVE
========================= */

@media (max-width: 768px) {

  .footer-logo-img {
    height: 20px;
  }
}

@media (max-width: 480px) {


  .footer-logo-img {
    height: 18px;
  }
}

/* =========================
   FULL WIDTH FIX
========================= */

.site-header,
.site-footer {
  max-width: none !important;
}

.site-header > *,
.site-footer > * {
  max-width: none !important;
}

.header-inner,
.site-footer .footer-inner {
  width: 95% !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .header-inner,
  .site-footer .footer-inner {
    width: 80%;
  }

  .footer-logo-img {
    height: 20px;
  }
}

@media (max-width: 480px) {
  .header-inner,
  .site-footer .footer-inner {
    width: 80%;
  }

  .footer-logo-img {
    height: 18px;
  }
}

/* PORTFOLIO*/

/* Contenedor centrado */
.portfolio-container {
  width: 90%;
  margin: 0 auto;
	min-height: 80vh;
	margin-bottom:50px;
	margin-top:50px;
    font-family: "Space Grotesk", sans-serif;
  font-weight: 400;
}

/* Filtros estilo texto */
/* Contenedor de filtros */
.portfolio-filters {
  text-align: center;
  margin-bottom: 20px; /* espacio entre filtros y portfolio */
  margin-top:0px;
}
/* Estilos de cada filtro (span) */
.portfolio-filters span {
  display: inline-block;
  margin: 0 15px;
  font-size: 1rem;   /* como párrafo */
  cursor: pointer;
  position: relative;
  color: #000;
  font-weight: normal;
}
.portfolio-empty {
  text-align: left;
  align-content: center;
  color: #ffffff;
  font-size: 1rem;
}


/* Línea invisible por defecto */
.portfolio-filters span::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: #000;
  transition: width 0.3s;
  margin: 5px auto 0;
}

/* Línea solo en el filtro activo */
.portfolio-filters span.active::after {
  width: 100%;
}

.portfolio-filters span.active::after {
  width: 100%;
}

/* Grid de proyectos */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  background-color:#000;
  padding:2%;
}

/* Items */
.portfolio-item {
  text-align: left;
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: 0; 
  margin-bottom: 10px;
}

/* Título */
.portfolio-item h3 {
  margin: 5px 0px 0px 0px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
	line-height: 1rem;
}

/* Categorías */
.portfolio-item .portfolio-categories {
  margin: 0;
  font-size: 0.9rem;
  color: #777;
}

.portfolio-item img {
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

/* Estilo para las etiquetas del portfolio */
.portfolio-tags {
    font-size: 0.85rem;      
    color: #999999;          
    margin-top: 0px;         
    display: block;           
    font-weight: 400;         
    line-height: 1.4;   
}
/* ============================= */
/*   RESPONSIVE PORTFOLIO GRID   */
/* ============================= */

/* Tablets */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Móviles grandes */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .portfolio-item h3 {
    font-size: 1rem;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .portfolio-filters span {
    margin: 0 8px;
    font-size: 0.9rem;
  }
}

ul {
  padding-left: 1em;  
}

.video-carousel-vertical {
  position: relative;
  width: 100%;
  max-width: 360px;     /* ancho tipo reel */
  margin: auto;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #000;
}

.slides {
  display: flex;
  transition: transform 0.4s ease;
}

.slide {
  min-width: 100%;
  height: 100%;
}

.slide iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Flechas */
.nav {
  position: absolute;
  top: 50.8%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 10;
}

.nav svg {
  width: 22px;        /* tamaño final */
  height: 22px;
  color: rgba(255, 255, 255, 0.75);
  transition: opacity 0.25s ease;
}


.prev { left: 12px; }
.next { right: 12px; }

.nav {
  background: none !important;
  box-shadow: none !important;
}

.nav:hover,
.nav:focus,
.nav:active {
  background: none !important;
  box-shadow: none !important;
  outline: none !important;
}




/* Dots más abajo */
.dots {
  position: absolute;
  bottom: 0px;     /* baja los puntos */
  width: 100%;
  text-align: center;
}

.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: white;
}

/* ============================= */
/*          MOCKUP WEB           */
/* ============================= */

.device-mockup {
  position: relative;
  width: 100%;
  margin: auto;
}

.device-mockup .screen {
  position: relative;       /* CLAVE */
  width: 100%;
  height: 400px;
  overflow-y: scroll;
  border-radius: 10px;
}

.device-mockup .screen::-webkit-scrollbar {
  display: none; /* opcional, scroll invisible */
}

img.scroll {
  width: 100%;
  height: auto;
  display: block;
}
.device-mockup {
  position: relative;
}

/* Barra */
.scrollbar {
  position: absolute;
  top: 12px;
  right: 6px;
  width: 4px;
  height: calc(100% - 24px);
  background: rgba(0,0,0,0.08);
  border-radius: 4px;
  pointer-events: none;
}

/* Thumb */
.scrollbar .thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: rgba(0,0,0,0.35);
  border-radius: 4px;
  transition: background 0.2s ease;
}
