@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');


*{
--title-font:"Inter Tight";
--primary-color: #ee2246;
--primary-color-rgb: 224, 75, 24;
--secondary-color: #ee2246;
--secondary-color-rgb: 224, 75, 24;
--bg-color: #f7f2ec;
--body-font-color:#929191;
--body-font-size: 17px;
--title-font-color: var(--primary-color);
--title-font-weight: bold;
}

.text-fit,.d-menu-1 li a{
font-weight: 500;
}

/* Pre-dimensiona el título del hero al tamaño que FitToParent calcula por JS (~30vw).
   Sin esto, el h1 pasa de ~40px a ~480px tras cargar el JS y provoca un CLS de ~0.9. */
.text-fit {
    font-size: 30vw;
}

/* Oculta la palabra "Imderf" del hero SIN quitarla del DOM:
   el JS del theme (FitToParent) necesita que .text-fit exista o rompe todos los scripts.
   visibility mantiene el espacio y el layout tal cual. */
.text-fit-wrapper {
    visibility: hidden;
}

/* El spinner de precarga del theme retrasa el primer render; el contenido puede pintar directo. */
#de-loader {
    display: none !important;
}

/* CSS recomendado por Jarallax: la imagen de fondo del hero debe estar absoluta
   ANTES de que el JS inicialice. Sin esto, la imagen ocupa flujo al cargar y al
   absolutizarse la sección se encoge → salto de layout (CLS ~0.85). */
section.jarallax {
    position: relative;
    overflow: hidden;
}

section.jarallax > .jarallax-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -100;
}

.dark-scheme .d-menu-1 li a:after{
    display: none;
}

.d-menu-1 li.active{
    background: var(--primary-color);
    padding: 0 20px;
    border-radius:30px;
    -moz-border-radius:30px;
    -webkit-border-radius:30px;
}

a.btn-main,
a.btn-main:hover{
    color:#000000;
    border-radius:5px;
    -moz-border-radius:5px;
    -webkit-border-radius:5px;
}

.dark-scheme .de-marquee-list .d-item-txt{
    font-size: 60px;
    margin: 0 40px;
}

.dark-scheme .de-marquee-list .d-item-txt:nth-child(even){
    -webkit-text-stroke: 0;
    -webkit-text-fill-color: 0;
}

.owl-custom-nav .btn-prev:before,
.owl-custom-nav .btn-next:before{
    color:#000000;
}

/* Clients Carousel */
.section-clientes {
    padding: 118px 0;
}

.clients-carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.clients-carousel-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: clientsScroll 10s linear infinite;
}

.client-logo-img {
    height: 110px;
    width: auto;
    margin: 0 50px;
    opacity: 0.5;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.client-logo-img:hover {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 6px var(--primary-color));
}

@keyframes clientsScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================
   Header Menu - layout propio (grid 3 columnas)
   ============================================= */
/* El header usa .container (no fluid) para que el logo y el selector de idioma
   queden alineados con los márgenes del contenido (botón volver / borde de la imagen). */
section.header-menu {
    position: relative;
    z-index: 100;
    margin: 0;
    padding: 14px 0 !important;
}

.nav-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}

.nav-brand {
    grid-column: 1;
    justify-self: start;
    display: block;
    /* recorte CSS: muestra solo el ícono i} del logo, oculta la palabra */
    width: 31px;
    overflow: hidden;
}

.nav-brand img {
    height: 39px;
    width: auto;
    display: block;
}

.nav-links {
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2em;
}

.nav-links li a {
    display: inline-block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 4px;
    transition: opacity .2s ease;
}

.nav-links li a:hover {
    opacity: .7;
}

.nav-links li.active a {
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 30px;
    padding: 2px 16px;
}

.nav-bar-right {
    grid-column: 3;
    display: flex;
    justify-content: flex-end;
}

/* =============================================
   Barra mobile
   ============================================= */
.nav-bar-mobile {
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    font-size: 14px;
}

/* =============================================
   Selector de idioma EN/ES
   ============================================= */
.lang-switch {
    align-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 30px;
    padding: 2px;
    gap: 2px;
}

.lang-switch button {
    border: none;
    background: transparent;
    padding: 2px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #a8a8a8;
    cursor: pointer;
    transition: color .25s ease, background-color .25s ease;
}

.lang-switch button.active {
    background: var(--primary-color);
    color: #ffffff;
}

/* =============================================
   Subheader (páginas internas)
   ============================================= */
#subheader {
    padding: 60px 0 30px 0;
}

/* =============================================
   Tag de categoría sobre la foto del proyecto
   ============================================= */
.project-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, .15);
    /* misma altura para todos los tags sin importar el largo del texto */
    white-space: nowrap;
    line-height: 1;
    display: inline-block;
}

/* zona de texto de las tarjetas de proyecto: misma altura aunque el nombre ocupe 2 líneas */
.hover .p-4 {
    min-height: 141px;
}

/* marca + nombre de proyecto en la tarjeta (evita que títulos largos se desborden) */
.hover .p-4 h3 {
    white-space: normal;
}

.hover .p-4 > div:first-child {
    min-width: 0;
}

.project-brand {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 2px;
}

/* =============================================
   Carrusel de prensa ("As seen in") - página de proyecto
   Puerto fiel del carrusel original de break-mode.com
   ============================================= */
.press-marquee-wrap {
    overflow: hidden;
    width: 100%;
    height: 480px;
}

.press-marquee-track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    width: max-content;
    height: 100%;
    animation: pressScroll 78s linear infinite;
}

.press-marquee-wrap:hover .press-marquee-track {
    animation-play-state: paused;
}

@keyframes pressScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.press-col {
    width: 408px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    overflow: hidden;
}

.press-slot {
    display: flex;
    gap: 8px;
}

.press-card {
    border: 1.5px solid var(--primary-color);
    border-radius: 16px;
    background: #ffffff;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.press-card-icon {
    width: 80%;
    height: 30px;
    margin-bottom: 18px;
    flex-shrink: 0;
    overflow: hidden;
}

.press-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left;
}

.press-card--inverted {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.press-card--inverted .press-card-desc {
    color: #ffffff;
}

.press-card--inverted .press-cta {
    color: var(--primary-color);
    border-color: #ffffff;
    background-color: #ffffff;
}

.press-card-desc {
    font-size: 15px;
    color: #606060;
    line-height: 1.25;
    margin: 0;
    flex: 1;
    overflow-wrap: break-word;
    word-break: break-word;
}

.press-cta {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 23px;
    border-radius: 16px;
    border: .5px solid var(--primary-color);
    color: #ffffff;
    background: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
    align-self: flex-start;
    text-decoration: none;
}

.press-slot:first-child {
    flex-shrink: 0;
}

.press-slot:first-child .press-card {
    flex: 0 0 auto;
    height: auto;
}

.press-slot:last-child {
    flex: 1;
    min-height: 0;
}

.press-slot:last-child .press-card {
    flex: 1;
    min-height: 0;
}

@media (max-width: 767px) {
    .press-marquee-wrap {
        height: 380px;
    }
}

/* =============================================
   Hamburger Button (Mobile)
   ============================================= */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    outline: none;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X animation */
.hamburger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   Mobile Nav Dropdown
   ============================================= */
.mobile-nav {
    display: none;
    padding: 10px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4px;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-nav ul li:last-child {
    border-bottom: none;
}

.mobile-nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-family: var(--title-font);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    transition: color 0.3s ease;
}

.mobile-nav ul li a:hover {
    color: var(--primary-color);
}

.mobile-nav ul li.active a {
    color: var(--primary-color);
}

/* =============================================
   Section Testimonios Carousel
   ============================================= */
.testi-quote {
    font-size: 72px;
    line-height: 0.7;
    margin-bottom: 14px;
    font-family: Georgia, serif;
    font-weight: 700;
    display: block;
}

.testi-text {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 0;
}

.testi-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 13px;
}

.testi-card {
    height: 100%;
}

.testi-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.testi-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* =============================================
   Box CTA Proyectos - prevent h2 overflow
   ============================================= */
.box-cta-proyectos h2 {
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 100%;
    min-width: 0;
}

/* =============================================
   Video case de página de proyecto - más corto en
   desktop, proporción normal en mobile para que no
   se vea diminuto
   ============================================= */
.work-video-ratio {
    --bs-aspect-ratio: 46%;
}

@media (max-width: 767px) {
    .work-video-ratio {
        --bs-aspect-ratio: 56.25%;
    }
}