/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/*
* Estilos responsivos para Adelobo Music Studios
* Para dispositivos con resoluciones menores a 64em (1024px)
*/


@media all and (max-width: 90em) {
  #servicios .inwrap h2 {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-left: 0;
  }

}

/* Tablets (48em - 63.9em) */
@media all and (max-width: 63.9em) {

  /* Header */
  #main-header .inwrap {
    width: 95%;
  }

  #main-header .inwrap nav ul {
    gap: 1.5em;
  }

  #main-header .inwrap nav ul li a.nav-cotiza-btn {
    padding: 0.6em 1.2em;
    font-size: 0.85em;
  }

  #home-hero .info .inwrap .logo {}

  /* Sección Hero */
  #home-hero .info {
    margin-bottom: 3em;
  }

  #home-hero .info .inwrap .headline {
    /* font-size: 1.5em; */
  }

  /* Trabajos recientes */
  #last-works .inwrap h2 {
    font-size: 6.5em;
  }

  #last-works .inwrap .subtitle {
    max-width: 70%;
    font-size: 1.7em;
  }

  #last-works .inwrap .boxes .box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 4em;
  }

  #last-works .inwrap .boxes .box .info {
    text-align: center !important;
    margin: 2em 0 !important;
    width: 100%;
  }

  #last-works .inwrap .boxes .box .video-image {
    width: 80%;
    padding-top: 56%;
    /* Mantiene relación de aspecto 16:9 */
    -webkit-box-ordinal-group: 0 !important;
    -ms-flex-order: -1 !important;
    order: -1 !important;
    /* Todos los videos aparecen primero */
  }

  /* Nosotros */
  #nosotros .inwrap h2 {
    font-size: 7em;
    padding-bottom: 0em;
  }

  #nosotros .inwrap .subtitle {
    max-width: 80%;
    font-size: 1.7em;
  }

  #nosotros .inwrap .video-wrap {
    max-width: 80%;
  }

  #nosotros .icon-bg {
    width: 90%;
    top: -16em;
    right: -13em;
  }

  #nosotros .about-photo {
    position: static;
    transform: none;
    width: 80%;
    max-width: 40em;
    margin: 3em auto 0;
    display: block;
  }

  /* Servicios */
  #servicios .inwrap h2 {
    font-size: 7em;
  }

  #servicios .box {
    -ms-flex: 0 0 calc(50% - 0.5em) !important;
    flex: 0 0 calc(50% - 0.5em) !important;
    height: 18em !important;
  }

  #servicios .box .box-content p {
    max-height: 10em;
    opacity: 1;
  }

  #estudios .inwrap .subtitle {
    max-width: 90%;
  }

  #estudios .inwrap h2 {
    font-size: 7em;
  }

  /* Cotiza banner */
  #cotiza-banner .inwrap .cards .card {
    height: 20em;
  }

  /* Frase scrolling */
  #phrase .scroll p {
    font-size: 6em;
  }

  /* Footer */
  #main-footer .inwrap h2 {
    font-size: 6em !important;
  }

  /* Expanded box responsive */
  #last-works .box.expanded {
    height: 100vh !important;
    height: 100dvh !important;
    /* Dynamic viewport height for mobile */
  }

  #last-works .box .close-expanded {
    top: 1em;
    right: 1em;
  }

  #main-footer .inwrap .bottom {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 1.5em;
  }
}

/* Dispositivos móviles grandes (30em - 47.9em) */
@media all and (max-width: 47.9em) {


  /* Header */
  #main-header .inwrap {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 1em 0;
  }

  #main-header .inwrap nav ul {
    gap: 1.5em;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  /* Hero */
  #home-hero .info .inwrap .logo {
    /* width: 14em; */
  }

  #home-hero .info .inwrap .headline {
    font-size: 1.3em;
  }

  #home-hero .info .inwrap .logo-hero .title.size {
    font-size: 3em;
  }

  #home-hero .arrow {
    bottom: 6em;
  }

  /* Trabajos recientes */
  #last-works .inwrap {
    padding: 6em 0 1em;
  }

  #last-works .inwrap h2 {
    font-size: 4em;
    /* line-height: 1; */
  }

  /* #last-works .inwrap h2 span {
    margin-top: -0.2em;
  } */

  #last-works .inwrap .subtitle {
    max-width: 90%;
    font-size: 1.5em;
  }

  #last-works .inwrap .boxes .box .video-image {
    width: 90%;
  }

  #last-works .inwrap .boxes .box .info h3 {
    font-size: 2.5em;
  }

  /* Nosotros */
  #nosotros .inwrap h2 {
    font-size: 5em;
    /* line-height: 1; */
  }

  /* #nosotros .inwrap h2 span {
    margin-top: -0.2em;
  } */

  #nosotros .inwrap .subtitle {
    max-width: 90%;
    font-size: 1.5em;
  }

  #nosotros .inwrap .video-wrap {
    max-width: 90%;
  }

  #nosotros .inwrap .outro {
    font-size: 1.7em;
    width: 100%;
  }

  /* Servicios */
  #servicios .inwrap {
    padding: 7em 0 1em;
  }

  #servicios .inwrap h2 {
    font-size: 5em;
  }

  #servicios .box {
    -ms-flex: 0 0 100% !important;
    flex: 0 0 100% !important;
    height: 16em !important;
  }

  #estudios .inwrap h2 {
    font-size: 5em;
  }

  /* Frase scrolling */
  #phrase {
    height: 20em;
  }

  #phrase .scroll p {
    font-size: 4.5em;
  }

  /* Cotiza banner */
  #cotiza-banner .inwrap .cards .card {
    /* width: 100%; */
    height: 11em;
    margin-bottom: 1em;
  }

  #cotiza-banner .inwrap .cta p {
    font-size: 1.4em;
  }

  #logo-end .inwrap img {
    max-width: 16em;
  }

  /* Footer */
  #main-footer .inwrap h2 {
    font-size: 3em !important;
  }

  #main-footer .inwrap .subfooter {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 1em;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }


}

@media all and (max-width: 35.5em) {
  #servicios .inwrap h2 {
    font-size: 3.5em;
  }

  #estudios .inwrap h2 {
    font-size: 3.5em;
  }

}

/* Dispositivos móviles pequeños (hasta 29.9em) */
@media all and (max-width: 29.9em) {

  /* Estilos generales */
  body {
    font-size: 12px;
  }

  /* Header */
  #main-header .inwrap nav ul {
    gap: 1em;
  }

  #main-header .inwrap nav ul li a {
    font-size: 0.8em;
  }

  #main-header .inwrap nav ul li a.nav-cotiza-btn {
    padding: 0.5em 1em;
    font-size: 0.75em;
    border-width: 1px;
  }

  /* Hero */
  #home-hero .info .inwrap .logo {
    /* width: 12em; */
  }

  #home-hero .info .inwrap .headline {
    font-size: 1.2em;
  }

  #home-hero .intro-video video {
    /* width: 60em; */
  }

  /* Trabajos recientes */
  #last-works .inwrap h2 {
    font-size: 3.5em;
  }

  #last-works .inwrap .subtitle {
    font-size: 1.3em;
  }

  #last-works .inwrap .boxes .box .info h3 {
    font-size: 2em;
  }

  #last-works .inwrap .boxes .box .info p {
    font-size: 1.2em;
  }

  /* Nosotros */
  #nosotros .inwrap {
    padding: 6em 0 2em;
  }

  #nosotros .inwrap h2 {
    font-size: 3.5em;
  }

  #nosotros .inwrap .subtitle {
    font-size: 1.3em;
  }

  #nosotros .inwrap .video-wrap {
    max-width: 100%;
  }

  #nosotros .inwrap .outro {
    font-size: 1.5em;
  }

  /* Servicios */
  #servicios .inwrap h2 {
    font-size: 3.5em;
  }

  #servicios .box {
    height: 14em !important;
  }

  /* Frase scrolling */
  #phrase {
    height: 15em;
  }

  #phrase .scroll p {
    font-size: 3em;
  }

  /* Cotiza banner */
  #cotiza-banner .inwrap .cta p {
    font-size: 1.2em;
  }

  #cotiza-banner .inwrap .cta .cta-btn {
    font-size: 1em;
  }

  /* Footer */
  #main-footer {
    margin-top: 6em;
  }

  #main-footer .inwrap h2 {
    font-size: 2.5em !important;
  }

  #main-footer .inwrap .top .cta-btn {
    font-size: 1em;
  }
}

@media all and (max-width: 22.9em) {
  #main-footer .inwrap h2 {
    font-size: 2.1em !important;
  }
}

/* Corrige el comportamiento de las animaciones en móvil */
@media all and (max-width: 63.9em) {

  /* Ajustes para las animaciones de las tarjetas de servicio */
  #servicios .box {
    /* transform: rotate(0deg) translate(0, 0); */
  }

  /* Ajustes para las animaciones de trabajos recientes */
  #last-works .inwrap .boxes .box:nth-child(odd) .video-image,
  #last-works .inwrap .boxes .box:nth-child(even) .video-image {
    /* transform: rotate(0deg) translate(0, 0); */
  }

  /* Ajustes para las animaciones de cotiza banner */
  #cotiza-banner .inwrap .cards .card {
    /* opacity: 1;
    transform: none !important; */
  }

  /* La animación del video de nosotros */
  #nosotros .inwrap .video-wrap {
    /* transform: translate(0, 0); */
  }
}

/* ===== Menú móvil (hamburguesa + overlay a nivel body) ===== */
@media all and (max-width: 63.9em) {

  /* Barra: Cotiza a un lado, hamburguesa al otro */
  #main-header .inwrap {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 1em;
  }

  #main-header .menu-toggle {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  /* La nav en línea del header se oculta en móvil (los enlaces se clonan al overlay) */
  #main-header .main-nav {
    display: none;
  }
}

/* Overlay del menú (se inyecta como hijo de <body> vía JS para que
   position:fixed funcione fuera del wrapper de ScrollSmoother). */
.mobile-menu {
  display: none;
}

.mobile-menu nav {
  text-align: center;
}

@media all and (max-width: 63.9em) {
  .mobile-menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(12, 9, 28, 0.95);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.4s ease, visibility 0.4s ease;
    -o-transition: opacity 0.4s ease, visibility 0.4s ease;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 9000;
  }

  body.menu-open .mobile-menu {
    opacity: 1;
    visibility: visible;
  }

  /* Botón de cierre (X) */
  .mobile-menu .mm-close {
    position: absolute;
    top: 1.6em;
    right: 5%;
    width: 2.6em;
    height: 2.6em;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .mobile-menu .mm-close span {
    position: absolute;
    top: 50%;
    left: 15%;
    width: 70%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
  }

  .mobile-menu .mm-close span:nth-child(1) {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  .mobile-menu .mm-close span:nth-child(2) {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }

  .mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.2em;
  }

  .mobile-menu li {
    opacity: 0;
    -webkit-transform: translateY(26px);
    transform: translateY(26px);
    -webkit-transition: opacity 0.45s ease, -webkit-transform 0.45s ease;
    transition: opacity 0.45s ease, transform 0.45s ease;
  }

  body.menu-open .mobile-menu li {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }

  body.menu-open .mobile-menu li:nth-child(1) {
    -webkit-transition-delay: 0.10s;
    transition-delay: 0.10s;
  }

  body.menu-open .mobile-menu li:nth-child(2) {
    -webkit-transition-delay: 0.16s;
    transition-delay: 0.16s;
  }

  body.menu-open .mobile-menu li:nth-child(3) {
    -webkit-transition-delay: 0.22s;
    transition-delay: 0.22s;
  }

  body.menu-open .mobile-menu li:nth-child(4) {
    -webkit-transition-delay: 0.28s;
    transition-delay: 0.28s;
  }

  body.menu-open .mobile-menu li:nth-child(5) {
    -webkit-transition-delay: 0.34s;
    transition-delay: 0.34s;
  }

  .mobile-menu a {
    display: inline-block;
    color: #fff;
    font-size: 2.1em;
    font-weight: 300;
    letter-spacing: 0.05em;
    padding: 0.45em 1em;
    text-decoration: none;
    -webkit-transition: color 0.25s ease;
    -o-transition: color 0.25s ease;
    transition: color 0.25s ease;
  }

  .mobile-menu a:hover,
  .mobile-menu a:active {
    color: var(--green-light);
  }

  /* Cotiza dentro del overlay */
  .mobile-menu .mm-cotiza {
    margin-top: 1.6em;
    border: 1.5px solid var(--green-light);
    background-color: var(--green-light);
    color: #000;
    font-size: 1.1em;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 0.7em 1.8em;
    border-radius: 2em;
    opacity: 0;
    -webkit-transform: translateY(26px);
    transform: translateY(26px);
    -webkit-transition: opacity 0.45s ease, -webkit-transform 0.45s ease;
    transition: opacity 0.45s ease, transform 0.45s ease;
  }

  body.menu-open .mobile-menu .mm-cotiza {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-transition-delay: 0.40s;
    transition-delay: 0.40s;
  }
}