/* =========================================================
   FUENTES ARTEMAR
========================================================= */

@font-face {
    font-family: 'Poppins';
    src: url('/wp-content/themes/blankslate/Fonts/Poppins-Light.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/wp-content/themes/blankslate/Fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/wp-content/themes/blankslate/Fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/wp-content/themes/blankslate/Fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/wp-content/themes/blankslate/Fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Anton';
    src: url('/wp-content/themes/blankslate/Fonts/Anton-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Bebas Neue';
    src: url('/wp-content/themes/blankslate/Fonts/BebasNeue-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* =========================================================
   ESTILOS BASE
========================================================= */

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #111111;
}

/* Quitamos margenes por defecto */
h1, h2, h3, h4, h5, p {
    margin: 0;
}

/* =========================================================
   HERO – SOLO IMAGEN
========================================================= */

.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000000; /* por si la imagen no carga */
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/wp-content/uploads/2025/11/Main-Banner-artemar.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ajuste laptop 13" */
@media (max-width: 1366px) {
    .hero {
        height: none;
    }
}

/* Responsive móvil */
@media (max-width: 768px) {
    .hero {
        height: 80vh;
    }
}
/* Ambos videos ocupan el hero */
.hero-video {
    inset: 0;          /* top:0; right:0; bottom:0; left:0 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Por defecto, mostramos solo el de desktop */
.hero-video--mobile {
    display: none;
}

/* En mobile mostramos el video mobile y ocultamos el desktop */
@media (max-width: 768px) {
    .hero-video--desktop {
        display: none;
    }
    .hero-video--mobile {
        display: block;
    }
}

/* =========================================================
   ABOUT SHOWCASE – GENTE CREATIVA
========================================================= */

@media (min-width: 901px) {

    .about-showcase {
        padding: 40px 0; /* padding vertical indicado */
    }
    /* Contenedor general */
    .about-showcase-inner {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 30px;

        padding: 20px 60px;
		 max-width: 1400px;      /* 🔥 límite del ancho total para pantallas grandes */
        margin: 0 auto;         /* 🔥 centra todo */
        box-sizing: border-box;
    }

    /* Imagen a la izquierda con desplazamiento adicional */
    .about-showcase-image {
        flex: 0 0 55%;
        overflow: visible;
        transform: translateX(-8%);   /* 🔥 Empuja la imagen más a la izquierda */
    }

    .about-showcase-image img {
        width: 120%;
        max-width: none;
        object-fit: contain;
        display: block;
    }

  /* Texto alineado a la derecha más hacia la derecha */
.about-showcase-text {
    flex: 0 0 33%;
    text-align: right;
    margin-right: 40px;
    transform: translateX(-8%);  /* 🔥 Empuja la imagen más a la izquierda */
}
   /* Primeros dos párrafos */
    .about-showcase-text p:nth-child(1),
    .about-showcase-text p:nth-child(2) {
        font-size: 16px; 
        line-height: 1.7;     /* 🔥 espaciado entre líneas como en tu maqueta */
        margin-bottom: 22px;  /* 🔥 espacio entre párrafos */
    }

    /* Último párrafo (frase final) */
    .about-showcase-text p:last-child {
        font-size: 17px; 
        letter-spacing: 1.5px;   /* 🔥 interletrado */
        line-height: 1.6;
		margin-top: 60px;
        margin-bottom: 0;
    }
}
/* ==============================
   RESPONSIVE - MOBILE
   ============================== */
@media (max-width: 900px) {
    .about-showcase-inner {
        flex-direction: column; /* texto arriba, imagen abajo */
        gap: 20px;
        padding: 40px 50px;
    }

    .about-showcase-image {
        justify-content: center; /* centrar imagen */
        order: 2; /* que quede debajo del texto */
		margin-bottom: 30px;    /* espacio extra arriba de la imagen */
    }

    .about-showcase-text {
        order: 1; /* texto arriba */
        text-align: center;
    }

    .about-showcase-text p {
        margin-bottom: 20px;
    }

    .main-text {
        font-size: 14px;
        letter-spacing: 0.2px;
    }

    .highlight-text {
        font-size: 16px;
        letter-spacing: 0.5px;
    }
}
/* CORRECCIÓN: MOBILE — Imagen debe quedar al 100% */
@media (max-width: 900px) {
    .about-showcase-image img {
        width: 120% !important;
        max-width: 120% !important;
		margin-left: -10%;
    }
}

/* ===============================
   SERVICIOS — DISEÑO + ACORDEÓN
================================*/

.services-fixed {
    width: 100%;
    display: flex;
	align-items: flex-start;
    height: 850px;              /* ajusta si necesitas más o menos alto */
    overflow: hidden;
}

.service-box {
    flex: 1;
    display: flex;
	flex-direction: column; 
    align-items: center;
    justify-content: flex-start;;
    text-align: center;
    padding: 280px 20px;
	height: 100%;
    transition: flex 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

/* Estado general cuando el mouse entra a la franja */
.services-fixed:hover .service-box {
    flex: 0.7;                   /* todos se achican un poco */
}

/* El panel sobre el que pasas el mouse se expande */
.services-fixed .service-box:hover {
    flex: 2;                     /* este se agranda */
    transform: scale(1.02);      /* leve zoom elegante */
    box-shadow: 0 0 40px rgba(0,0,0,0.25);
}

/* Contenido interno */
.service-inner img {
    width: 90px;
    height: auto;
    margin-bottom: 25px;
    transition: transform 0.35s ease;
}

.service-inner h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.1rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.1;
    color: #ffffff;
    transition: font-size 0.35s ease, letter-spacing 0.35s ease;
	
}

/* Cuando el panel está activo, agrandamos icono + texto */
.services-fixed .service-box:hover .service-inner img {
    transform: scale(1.1);
}

.services-fixed .service-box:hover .service-inner h3 {
    font-size: 2.4rem;
    letter-spacing: 3px;
}

/* Colores EXACTOS PDF - Versión RGB */
.black  { background: rgb(0, 0, 0); }
.salmon { background: rgb(219, 133, 113); }
.white  { background: rgb(255, 255, 255); }
.green  { background: rgb(189, 199, 0); }
.blue   { background: rgb(183, 210, 219); }

/* Columna 3 texto negro */
.black-text { color: #000000 !important; }

/* Bullets ocultos por defecto */
.service-bullets {
   margin-top: 40px;    
    color: #fff;
    font-size: 14px;
    text-align: left;
    opacity: 0;              /* oculto */
    transition: opacity 0.1s ease; /* controla tiempo de fade */
    line-height: 1.5;
    padding-left: 0;
    list-style: none;
}

.service-bullets li {
    position: relative;
    padding-left: 30px; /* espacio para la imagen del bullet */
    margin-bottom: 10px;
}

/* Imagen como bullet */
.service-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;  
    height: 20px;
    background: url('/wp-content/uploads/2025/11/Asset-28.png') no-repeat center center;
    background-size: contain;
}
.black-bullets li::before {
    background: url('/wp-content/uploads/2025/11/Asset-3.png') no-repeat center center;
    background-size: contain;
}
.black-bullets li {
    color: #000000;  /* texto negro */
}
/* Mostrar bullets al pasar el mouse */
.services-fixed .service-box:hover .service-bullets {
    opacity: 1;  /* solo se desvanece apareciendo */
}

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

@media (max-width: 992px) {
    .services-fixed {
        flex-direction: column;
        height: auto;
    }

    .service-box {
        flex: 1 !important;      /* sin acordeón en mobile */
        height: 260px;
        box-shadow: none;
        transform: none;
    }

    .services-fixed:hover .service-box {
        flex: 1;                 /* anulamos efecto acordeón */
    }

    .service-inner img {
        transform: none !important;
        width: 70px;
    }

    .service-inner h3 {
        font-size: 1.7rem;
        letter-spacing: 1.5px;
    }
}

/* ============================
   SERVICIOS — VERSIÓN MOBILE
   ============================ */

@media (max-width: 992px) {

    .services-fixed {
        flex-direction: column;
        height: auto;
        overflow: visible;
        align-items: stretch;   /* logra que cada fondo ocupe todo el ancho */
    }

    .service-box {
        flex: 1 !important;
        padding: 120px 26px 40px;
        height: auto !important;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        box-shadow: none !important;
        transform: none !important;
    }

    .service-inner {
        max-width: 360px;
        margin: 0 auto 20px;
        text-align: center;
    }

    .service-inner img {
        width: 70px;
        margin-bottom: 18px;
        transform: none !important;
    }

    .service-inner h3 {
        font-size: 1.8rem;
        letter-spacing: 1.6px;
        text-align: center;
    }

    /* ⭐ EFECTO ACORDEÓN ACTIVADO EN MOBILE */
    .service-box.active {
        flex: 1 !important;        /* NO crecer el fondo completo: mantiene proporción */
        transform: scale(1.03);
    }

    .service-box.active .service-inner img {
        transform: scale(1.1);
    }

    .service-box.active .service-inner h3 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    /* ⭐ BULLETS: OCULTOS POR DEFECTO - SOLO SE VEN AL HACER CLICK */
    .service-bullets {
        position: static !important;
        margin: 20px 0 0;
        opacity: 0;                 /* ocultos inicialmente */
        max-height: 0;              /* evita que el fondo crezca */
        overflow: hidden;
        transition: opacity .25s ease, max-height .25s ease;
        text-align: left;
    }

    /* ⭐ cuando haces click en un servicio → aparecen sus bullets */
    .service-box.active .service-bullets {
        opacity: 1 !important;
        max-height: 500px;          /* espacio suficiente */
    }

    .service-bullets li {
        font-size: 0.96rem;
        margin-bottom: 10px;
        text-align: left;
    }
}
/* ======= MOBILE PEQUEÑO (max 640px) ======= */

@media (max-width: 640px) {

    .service-box {
        padding: 95px 22px 38px;  /* más compacto */
    }

    .service-inner {
        max-width: 320px;
    }

    .service-inner h3 {
        font-size: 1.6rem;
        letter-spacing: 1.3px;
    }

    .service-bullets li {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
}
/* Títulos dobles: apilado vs inline */
.service-title-stacked {
    display: block;
}

.service-title-inline {
    display: none;
}

/* Cuando la caja está activa (hover), mostramos la versión inline
   y ocultamos la apilada */
.services-fixed .service-box:hover .service-title-stacked {
    display: none;
}

.services-fixed .service-box:hover .service-title-inline {
    display: block;
}

/* Opcional: si quieres que las versiones inline tengan un pelín menos de tamaño */
.service-title-inline {
    /* font-size: 1.9rem;  // descomenta si quieres ajustarlo */
}
/* ===============================
   SERVICIOS — TÍTULOS DOBLES
   =============================== */

/* Por defecto: se muestra la versión apilada (3 líneas) */
.service-title-stacked {
    display: inline-block;
}

.service-title-inline {
    display: none;
}

/* En hover (desktop): se muestra la versión en 2 líneas */
.services-fixed .service-box:hover .service-title-stacked {
    display: none;
}

.services-fixed .service-box:hover .service-title-inline {
    display: inline-block;
}

/* =========================================================
   CTA FINAL
========================================================= */

.cta {
    padding: 100px 24px;
    background-color: #111111;
    color: #ffffff;
    text-align: center;
}

.cta-inner {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.4rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.cta-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #ffffff;
    color: #000000;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease-in-out;
}

.cta-btn:hover {
    background-color: #e5e5e5;
}
/* ============================
   HEADER ARTEMAR – AJUSTE FINAL
   ============================ */

.artemar-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: #000000;
}

/* Altura real del header */
body {
    padding-top: 85px !important;  
}

.artemar-header-inner {
    max-width: 1320px;
    margin: 0 auto;
    height: 120px;                  /* header delgado */
    padding: 0 0px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: relative;
    box-sizing: border-box;
}

/* NAVS IZQUIERDA Y DERECHA */
.artemar-nav-left,
.artemar-nav-right {
    display: flex;
	align-items: center;
	gap: 80px;                      /* separación entre enlaces */
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 200;
    letter-spacing: 2.25px;
    text-transform: none;           /* 🔥 evitar mayúsculas forzadas */
}

/* Enlaces */
.artemar-nav-left a,
.artemar-nav-right a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    text-transform: none;
    transition: opacity 0.2s ease;
}

.artemar-nav-left a:hover,
.artemar-nav-right a:hover {
	color: #CE7F6C;
}
.artemar-nav-left a.active,
.artemar-nav-right a.active {
    color: #CE7F6C !important;
    font-weight: 500;
}

/* LOGO CENTRADO ÓPTICAMENTE */
/* Lo centramos por posición absoluta dentro del header */
.artemar-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 65px; /* fija altura REAL del logo */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enlace contenedor */
.artemar-logo a {
    display: block;
    position: relative;
    height: 100%;
}

/* Ambas imágenes se superponen SIN mover el contenedor */
.artemar-logo img {
    height: 100%;
    width: auto;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%); /* Alineación perfecta */
    object-fit: contain;
    transition: opacity 0.25s ease;
}

/* Logo hover oculto */
.artemar-logo .logo-hover {
    opacity: 0;
}

/* Swap */
.artemar-logo:hover .logo-hover {
    opacity: 1;
}

.artemar-logo:hover .logo-default {
    opacity: 0;
}
/* RESPONSIVE BÁSICO */
@media (max-width: 900px) {
    .artemar-header-inner {
        padding: 0 20px;
        height: 72px;
    }
	

    .artemar-nav-left,
    .artemar-nav-right {
        gap: 16px;
        font-size: 13px;
    }

    body {
        padding-top: 70px !important;
    }
}
   

/* ============================
   MOBILE — MENÚ HAMBURGUESA
   ============================ */

@media (max-width: 900px) {
   .artemar-logo img {
        max-height: 45px !important;   /* antes 65px */
        max-width: 180px !important;    /* antes 250px */
	   margin-top: 9px;
     }

    /* Ocultar menús desktop */
    .artemar-nav-left,
    .artemar-nav-right {
        display: none !important;
        gap: 16px;
        font-size: 13px;
    }

    /* Botón hamburguesa */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        z-index: 10001;
    }

    .hamburger span {
        width: 32px;
        height: 3px;
        background: #ffffff;
        border-radius: 2px;
        transition: 0.3s ease;
    }

    /* Animación a cruz */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Menú full screen móvil */
    .nav-mobile {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #000000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;

        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
        z-index: 10000;
    }

    .nav-mobile.active {
        transform: translateY(0);
    }

    .nav-mobile a {
        color: #fff;
        font-size: 20px;
        letter-spacing: 2.25px;
        text-decoration: none;
        font-family: 'Poppins', sans-serif;
    }
	.nav-mobile a:hover {
        color: #CE7F6C !important;
    }

    /* Página activa en mobile (WordPress añade .current-menu-item) */
    .nav-mobile .current-menu-item > a,
    .nav-mobile a.active {
        color: #CE7F6C !important;
        font-weight: 600;
    }
}

/* Ocultar hamburguesa en desktop */
.hamburger {
    display: none;
}

/* CAMBIO — evitar que el modo mobile afecte desktop */
@media (min-width: 901px) {
    .hamburger,
    .nav-mobile {
        display: none !important;
    }
}
/* ===========================
   NUESTROS TRABAJOS - CSS FINAL CORREGIDO
   =========================== */

.works-section {
    /* Mantenemos el padding lateral que quitamos del works-container */
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 20px;
    padding-top: 110px;
    background-color: #000;
    color: #fff;
    overflow: hidden; /* Corta la sección completa, incluyendo el padding lateral */
}

.works-container {
    max-width: 1500px;
    margin: 0 auto;
    /* Eliminamos padding lateral aquí */
    padding: 0; 
    /* Forzamos el corte horizontal al nivel del container (para las imágenes) */
    overflow: hidden; 
}

/* ---------- HEADER (Título y Logos) ---------- */

.works-header {
    text-align: center;
    margin-bottom: 60px;
}

.works-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding-bottom: none;
}

.works-title-icon {
    width: 30px;
    height: auto;
}

.works-title {
    font-family: "Anton", sans-serif !important;
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;
}

/* ---------- SLIDER (Contenedor Principal) ---------- */

.works-swiper {
    overflow: visible; 
    padding-top: 120px !important; 
    padding-bottom: 0px !important;
    margin-top: -70px;
    margin-bottom: -35px !important; 
    width: 100%;
    position: relative;
    z-index: 1;  /* carrusel debajo de los dots */
}

/* 3. Aseguramos que la separación de las líneas sea mínima. */
/* BUSCA Y MODIFICA .works-dots: */

.works-swiper .swiper-wrapper {
    padding-bottom: 94px;
}

/* Desktop: exactamente 3 trabajos visibles */
.works-swiper .swiper-slide {
    position: relative;
    z-index: 1;
    width: calc((100% - 40px) / 3) !important; /* 40px = 2 márgenes de 20 */
    max-width: none;
    min-width: 0;
    margin-right: 20px !important;
    display: block;
    height: auto;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}


/* Estilo del slide ACTIVO (el del centro) */
.works-swiper .swiper-slide.active {
    opacity: 1;
    z-index: 10; /* La tarjeta activa estará por encima de las demás */
}

/* ---------- TARJETAS (Comportamiento) ---------- */

.work-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    transform: translateY(0);
    
    /* CAMBIO CLAVE: Eliminar cualquier sombra base */
    box-shadow: none !important; 
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ELEVACIÓN: Solo cuando el slide tiene la clase .active */
.works-swiper .swiper-slide.active .work-card {
    transform: translateY(-5%) !important;
    box-shadow: 0 32px 48px rgba(0,0,0,0.55) !important;
}

/* Contenedor de la Imagen */
.work-image-wrapper {
    /* ... otros estilos ... */
    box-shadow: none !important; 
}
.work-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease;
	border-radius: 20px;   /* 👈 esto redondea las puntas */
}


/* ---------- INFO (Textos y Flecha) ---------- */

.work-info {
    position: relative;
    margin-top: 18px;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    
    /* Estado inicial: oculto */
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Mostrar info cuando está activo */
.works-swiper .swiper-slide.active .work-info {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.work-info-text {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.work-client {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}

.work-brand {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
}

/* Flecha */
.work-arrow img {
    width: 22px;
    height: auto;
    transition: all 0.25s ease;
    opacity: 0;
}

/* Mostrar flecha cuando está activo */
.works-swiper .swiper-slide.active .work-arrow img {
    transform: translate(0px, 0px);
    opacity: 1;
}

/* ---------- DOTS (Líneas de Paginación) ---------- */

.works-dots {
    position: relative;
    z-index: 5;                 /* por encima de las tarjetas */
    display: flex;
    justify-content: center;    /* centra las líneas dentro de su ancho */
    max-width: 1500px;          /* mismo ancho que .works-container */
    margin: 2px auto 0px;     /* centrado horizontal (auto) */
    gap: 12px;
}
.works-dot {
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
}

/* Línea Activa */
.works-dot.active {
    background: rgb(221, 138, 111); /* Salmón corregido */
}

/* ===========================
   NUESTROS TRABAJOS - MOBILE (FINAL)
   =========================== */
@media (max-width: 640px) {

    /* Header */
    .works-title-icon {
        width: 12px;
        height: auto;
    }

    .works-title {
        font-size: 22px;
        letter-spacing: 0.06em;
    }

    .works-header-row {
        gap: 18px;
        padding-bottom: 40px;
    }

    /* Sección */
    .works-section {
        padding: 50px 0 50px; /* <-- el padding inferior lo ajustas aquí */
    }

    /* Container */
    .works-container {
        max-width: 100%;
        padding: 0 20px;
        overflow: hidden;
    }

    /* Slider */
    .works-swiper {
        padding-top: 40px !important;
        overflow: visible;
    }

    .works-swiper .swiper-wrapper {
        padding-bottom: 30px;
        align-items: stretch;
    }

    /* 1 sola tarjeta visible */
    .works-swiper .swiper-slide {
        width: 80vw !important;
        max-width: 300px;
        margin-right: 18px !important;
        opacity: 0.45;
        transition: opacity .3s ease;
    }

    .works-swiper .swiper-slide.active {
        opacity: 1;
    }

    .works-swiper .swiper-slide.active .work-card {
        transform: translateY(-4%) !important;
    }

    /* Dots */
    .works-dots {
        margin-top: 18px;
        gap: 10px;
    }

    .works-dot {
        width: 22px;
        height: 3px;
    }

    .works-dot.active {
        width: 36px;
    }
}
/* Forzar que TODAS las tarjetas sean clickeables */
.works-swiper .swiper-slide .work-card {
    pointer-events: auto !important;
}

/* ================================
   ELLOS SE MUEVEN CON NOSOTROS
   ================================ */

.clients-section {
    background: #ffffff;
    text-align: center;

    /* 👉 hace que el fondo blanco sea REAL FULL WIDTH */
    width: 100vw;
    margin-left: calc(50% - 50vw);

    /* espacio arriba */
    padding: 110px 0 0;
    position: relative;
}
.clients-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px;
	padding-top: none;
}

/* ---------- TÍTULO ---------- */

.clients-header {
    margin-bottom: 0; /* el espacio lo dará el wrapper de logos */
}

.clients-header-row {
    display: flex;          /* antes inline-flex */
    width: 100%; 
    align-items: center;
	justify-content: center;       /* centra horizontalmente */
    gap: 30px;
}

.clients-icon {
    height: 20px;
}

.clients-title {
    font-size: 45px;            /* un poco más pequeño para que se vea como el PDF */
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #000000;
	text-align: center;
}

/* ---------- LOGOS (IMAGEN COMPLETA) ---------- */

.clients-logos-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 0px;
    margin-bottom: 0;      /* ya no necesitamos el -5px */
    overflow: hidden;      /* IMPORTANTE: recorta los bordes negros de la imagen */
}

.clients-logos-img {
    width: 100%;
    max-width: 1500px;
    height: auto;
    display: block;
}

/* ---------- OLAS ---------- */

.clients-waves {
    width: 100%;
    display: block;
    position: relative;
    top: -3px; /* se pega mejor y evita líneas grises */
    background: #ffffff; /* 🔥 asegura continuidad del blanco */
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {
    .clients-title {
        font-size: 24px;
        letter-spacing: 0.05em;
    }

    .clients-tittle-icon {
        height: 22px;
    }

    .clients-header-row {
        gap: 18px;
    }

    .clients-logos-wrapper {
        margin-top: 60px;
    }
}
/* =========================================
   3. ESTILOS: SECCIÓN CLIENTES
   ========================================= */


/* HEADER */
.clients-header-row {
    display: inline-flex;
    align-items: center;
    gap: 30px;
}

.clients-icon {
    width: 0px;
    height: auto;
}

.clients-title {
    font-family: 'Anton', sans-serif !important;
    font-size: 40px;
    letter-spacing: 0.05em;
    font-weight: 400;
    text-transform: uppercase;
}

/* LOGOS */
.clients-logos-wrapper {
    margin-top: 60px;
}

.clients-logos-img {
    max-width: 75%;
    height: auto;
    display: block;
	margin-top: 70px;
	margin-bottom: 80px;
}

/* ONDAS INFERIORES */
.clients-waves {
    margin-top: 90px;
    width: 100%;
    display: block;
}

/* --- Responsive Móvil --- */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem; /* Reducimos tamaño en móvil */
    }
    
    .clients-header {
        gap: 10px;
    }

    .clients-section {
        padding: 50px 15px;
    }
}
/* ============================
   CLIENTES – MOBILE
   ============================ */
@media (max-width: 768px) {

  .clients-section {
    padding: 60px 0 40px;              /* menos alto en móvil */
  }

  .clients-container {
    max-width: 100%;
    padding: 0 18px;                   /* menos margen lateral */
  }

  .clients-header {
    margin-bottom: 24px;
  }

  .clients-header-row {
    gap: 10px;
  }

  .clients-title-icon {
    width: 12px;       /* ancho deseado */
    height: auto; 
  }

  .clients-title {
    font-size: 19px;
    letter-spacing: 0.10em;
    text-align: center;
  }

  .clients-logos-wrapper {
    margin-top: 16px;
  }

  .clients-logos-img {
    width: 100%;                       /* que no desborde */
    max-width: 100%;
    height: auto;
    display: block;
	margin-top: 40px;
	margin-bottom: 55px;
  }

  .clients-waves {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 24px;
  }
}
/* ============================
   TESTIMONIOS – ESTILO FINAL
   ============================ */

.testimonios-section {
    position: relative;
    background: #BBD6DF;
    margin-top: -60px;
    padding-top: 130px;
    padding-bottom: 80px;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* MOCKUP (celular) */
.testimonios-bg {
    position: relative;
    max-width: 540px;
    margin: 0 auto;
    z-index: 3;
}

.testimonios-bg img {
    width: 100%;
    display: block;
    margin-top: -70px;
}

/* ============================
   SWIPER TESTIMONIOS
   ============================ */

.testimonios-swiper {
    position: relative;
    z-index: 10;

    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;

    margin-top: -700px;

    /* 👉 solo padding vertical */
    padding: 50px 0 40px;
    overflow: hidden;
}

/* Fila de tarjetas */
.testimonios-cards {
    display: flex;
    gap: 22px;
    width: max-content;   /* <-- muy importante */
}

/* Tarjeta base */
.testimonio-card {
    transition: transform 0.3s ease !important;
    transform: translateY(0) !important; /* Estado inicial */
}

/* Hover: elevación */
.testimonio-card:hover {
    transform: translateY(-50px) !important;
    z-index: 20;
}

.testimonio-card img {
    width: 100%;
    border-radius: 22px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.18);
}

/* ================================================== 
   ESTILOS: LÍNEAS DE PAGINACIÓN Y ELEVACIÓN
   ================================================== */

.testimonios-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    position: relative;
    z-index: 20;
}

.testimonio-line {
    width: 30px;
    height: 4px;
   background-color: rgb(255, 255, 255);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.testimonio-line.active {
    width: 50px;
    background-color: rgb(219, 133, 113);
}

/* Tarjeta activa desde JS */
.testimonio-card.active {
    transform: translateY(-50px) !important;
    z-index: 20;
}

/* ===== Desktop: exactamente 4 testimonios visibles ===== */
@media (min-width: 1025px) {

    .testimonios-cards {
        display: flex;
        flex-wrap: nowrap;
        gap: 22px;                 /* 3 gaps de 22px = 66px */
        justify-content: flex-start;/* nada de space-between */
        width: 100%;
    }

    .testimonio-card {
        /* 4 tarjetas: (100% - 3*22px) / 4 */
        width: calc((100% - 66px) / 4) !important;
        flex-shrink: 0;
        margin-right: 0 !important; /* anulamos el margin-right inline de Swiper */
    }
}

/* ============================
   RESPONSIVE MOBILE (AJUSTES DE TESTIMONIOS)
   ============================ */

/* ---------- Móvil (1 testimonio centrado, card visual 75vw) ---------- */
@media (max-width: 640px) {
    .testimonios-section {
        padding-top: 80px;
        overflow: hidden;
    }

    .testimonios-swiper {
        margin-top: -520px;
        padding: 50px 0 50px !important; /* sin padding lateral extra */
        overflow: hidden;
    }

    .testimonios-cards {
        gap: 22px;
    }

    /* El slide ocupa todo el ancho (para el JS) */
    .testimonio-card {
        width: 100vw !important;
        max-width: none;
        margin: 0;
    }

    /* La tarjeta visible (imagen) es la que se hace 75vw y se centra */
    .testimonio-card img {
        width: 75vw;
        max-width: 75vw;
        margin: 0 auto;
        display: block;
        border-radius: 22px;
        box-shadow: 0 20px 35px rgba(0, 0, 0, 0.18);
    }

    .testimonio-line {
        width: 20px;
        background-color: rgb(255, 255, 255);
    }

    .testimonio-line.active {
        width: 35px;
        background-color: rgb(219, 133, 113);
    }
}

/* ===========================
   CTA NEGRO – MOVIMIENTO CREATIVO
   =========================== */

.contact-cta-bar {
    position: relative;
    background: #000000;
    color: #ffffff;
    text-align: center;
    padding: 70px 16px 48px !important;

    font-family: "Anton", sans-serif;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 40px;
    z-index: 2;

    /* 🔥 SOLUCIÓN: FULL WIDTH REAL */
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}
.contact-cta-bar h2 {
    margin: 0;
    font: inherit;                 /* usa exactamente la misma fuente que el padre */
}

/* Ondas negras pegadas al CTA (más bajas) */
.contact-cta-bar::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -55px !important;      /* la onda “cuelga” hacia abajo */
    width: 100%;
    height: 55px !important;
    background: url("/wp-content/uploads/2025/11/Recurso-1.png")
        no-repeat bottom center / cover;
    pointer-events: none;
}
/* ===========================
   CTA NEGRO – MOBILE
   =========================== */
@media (max-width: 768px) {
    .contact-cta-bar h2 {
        font-size: 23px;
		letter-spacing: 0.10em;
    	text-align: center;
        padding: 20px 12px 5px !important; /* arriba, horizontal, abajo */
  }
}

/* ===========================
   CONTACTO – BLOQUE PRINCIPAL
   =========================== */

/* ===========================
   CONTACTO – BLOQUE PRINCIPAL (FULL WIDTH)
   =========================== */
.contact-section {
    position: relative;
    background: #ffffff;
    padding: 120px 0 0px;  /* ↑ más aire arriba y un poco más abajo */
	margin-top: 50px;
    color: #000000;
    font-family: "Poppins", sans-serif;
    z-index: 1;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.contact-inner {
    max-width: 1300px;          /* contenedor un poco más compacto */
    margin: 0 auto 80px;
    padding: 0 60px;            /* un poco más de respiración lateral */
    display: flex;
    align-items: center;
    justify-content: center;    /* ya no “space-between”, ahora centrado */
    gap: 70px;                  /* separación más clara entre columnas */
}

/* COLUMNA IZQUIERDA */

.contact-left {
    flex: 0 0 38%;   
    margin-top: 0;   
}
.contact-hablemos-img {
    width: 100%;
    max-width: 340px;              
    height: auto;
    display: block;
}

.contact-subtitle {
    margin-top: 28px;
    max-width: 320px;
    font-size: 16px;
    line-height: 1.6;
    font-family: "Poppins", sans-serif;
    font-weight: 300;               /* Poppins Light */
    color: #000000;
}

/* COLUMNA DERECHA – formULARIO */

.contact-right {
    flex: 0 0 46%; 
}

/* formULARIO MÁS PEQUEÑO */
.contact-form {
    background: rgba(187, 214, 223, 0.5);
    border-radius: 15px;            
    padding: 30px 52px 24px 40px;        
	display: flex;
    flex-direction: column;
	gap: 16px;
}

.contact-form-row {
   	display: flex;
    gap: 50px;
    width: 100%;
}

.contact-field {
    flex: 1;
}

.contact-field-full {
    padding-right: 12px;
    width: calc(100% - 12px);
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
    width: 100%;
    height: 40px;                   /* antes 52px – inputs más bajos */
    border-radius: 999px;
    border: none;
    padding: 0 14px;                /* leve ajuste al padding */
    font-size: 12px;
    font-family: inherit;
    background: #ffffff;
    outline: none;
}
.contact-form .contact-form-row .contact-field:nth-child(2) input {
    padding-right: 12px; 
    width: calc(100% - 12px);
}

.contact-form textarea {
    min-height: 120px;              /* antes 150px – caja de mensaje menos alta */
    border-radius: 18px;
    border: none;
    padding: 10px 22px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
    resize: vertical;
    outline: none;
	width: calc(100% - 22px);
    margin-right: 12px;
}

/* PLACEHOLDERS */

.contact-form input:focus,
.contact-form textarea:focus {
    border: 1px solid #7bb4c9; 
    box-shadow: 0 0 0 2px rgba(255,255,255,0);
}

/* CHECKBOX */

.contact-privacy-row {
    align-items: center;
}

.contact-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.contact-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #000000;
}

/* BOTÓN */

.contact-submit {
    width: 100%;
    height: 52px;                 
    border-radius: 999px;
    border: none;
    background: #000000;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: none;
}

.contact-submit:hover {
    transform: none;
    box-shadow: none;
    opacity: 1;
}

/* ===========================
   RESPONSIVE – MOBILE
   =========================== */
@media (max-width: 768px) {
	.contact-section {
    padding: 80px 0 0px;  /* ↑ más aire arriba y un poco más abajo */
	}
   /* Centrar imagen de "Hablemos" */
    .contact-hablemos-img {
        margin: 0 auto;
        display: block;
    }

    /* Centrar el texto debajo de la imagen */
    .contact-left p,
    .contact-left h2 {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
	}

	/* Contenedor principal del formulario */
    .contact-form {
        width: 100%;            /* toma todo el contenedor disponible */
        max-width: 480px;       /* límite para que no ocupe toda la pantalla */
        margin: 0 auto;         /* centrado horizontal */
        padding: 0 16px;        /* un poco de espacio interno */
        gap: 14px;
        box-sizing: border-box;
    }

    /* Cada fila del formulario se apila */
    .contact-form-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    /* Cada campo ocupa 100% de su fila */
    .contact-form-row .contact-field {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    /* Inputs, select y textarea iguales */
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form select,
    .contact-form textarea {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 16px !important;
        margin: 0 !important;
        box-sizing: border-box;
        display: block;
    }

    /* Altura mínima para textarea */
    .contact-form textarea {
        min-height: 120px;
        resize: vertical;
    }

    /* Checkbox y botón centrados */
    .contact-checkbox,
    .contact-submit {
        width: 100% !important;
        box-sizing: border-box;
    }
}



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

.contact-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 40px 30px;  /* ↑ más espacio arriba y abajo */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    background: #fff !important;
    width: 100%;
	color: #000 !important;
}

.contact-copy {
    margin: 0;
}

.contact-email-social {
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-email {
    font-size: 13px;
    text-decoration: none;
    color: #000 !important;
}

.contact-email:hover {
    text-decoration: underline;
}

.contact-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-social img {
    width: 22px;
    height: 22px;
    display: block;
}

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

@media (max-width: 992px) {
    .contact-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        padding: 0 24px;
    }

    .contact-left,
    .contact-right {
        flex: 0 0 100%;
        width: 100%;
    }

    .contact-hablemos-img {
        max-width: 280px;           /* un poco más chico en tablet */
    }

    .contact-form {
        padding: 18px 20px 22px;
    }

    .contact-form-row {
        flex-direction: column;
        gap: 12px;
    }

    .contact-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 0 24px 10px;
    }
}

/* ============================
   CONTACT FOOTER – FONDO BLANCO
   ============================ */

.contact-footer {
    background: #fff !important;
    color: #000 !important;
    width: 100% !important;
}

/* ============================
   MOBILE (≤ 768px)
   ============================ */
@media (max-width: 768px) {

    /* Estructura vertical: Redes → Email → Copy */
    .contact-footer {
        display: flex;
        flex-direction: column;
        align-items: center !important;
        text-align: center !important;
        gap: 12px;
        padding: 20px 0 !important;
    }

    .contact-email-social {
        width: 100% !important;
        padding: 0 16px;
        display: flex;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 16px;
    }

    /* 1️⃣ Redes sociales PRIMERO */
    .contact-social {
        order: 1;
        display: flex;
        gap: 12px;
        filter: none !important; /* limpia filtros previos */
    }

    /* íconos negros en fondo blanco */
    .contact-social img,
    .contact-social svg {
        filter: none !important;
    }

    /* 2️⃣ Email SEGUNDO */
    .contact-email {
        order: 2;
        color: #000 !important;
    }

    /* 3️⃣ Copy ÚLTIMO SOLO EN MOBILE */
    .contact-copy {
        order: 3;
        color: #000 !important;
        text-align: center;
        padding-top: 8px;
    }
}

html, body {
    overflow-x: hidden; /* evita franja blanca lateral */
}
/* ================================
   HERO SUPERIOR – IMAGEN COMPLETA
   ================================ */

.portfolio-hero {
    width: 100%;          /* el contenedor ya no se estira */
    overflow: hidden;
    margin-bottom: 80px;
    display: flex;        /* ✔ centramos la imagen */
    justify-content: center;
}

.portfolio-hero-img {
    width: 100%;          /* la imagen se adapta al ancho real */
    height: auto;         /* mantiene proporciones */
    display: block;       /* elimina espacios blancos */
    object-fit: contain;  /* muestra la imagen completa */
}


/* ============================
   PORTAFOLIO – ARCHIVE
   ============================ */

.portfolio-archive {
    background: #ffffff;
    padding: 0px 0 80px;
}

/* CONTENEDOR EN 2 BLOQUES:
   IZQ = TEXTO / DER = GRID */
.portfolio-archive-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;

    display: flex;              /* 👈 clave: dos columnas */
    align-items: flex-start;
    gap: 50px;
}

/* BLOQUE IZQUIERDO (TEXTO) */
.portfolio-archive-header {
    flex: 0 0 275px;      /* ancho fijo */
    display: block;
    margin-bottom: 0;     /* sin espacio debajo del bloque completo */
	margin-top: 25px;
    line-height: 1.6;
	transform: translateX(-30px); /* ← mueve solo la columna izquierda */
}

/* ESPACIADO ENTRE PÁRRAFOS */
.portfolio-archive-header p {
    margin-bottom: 30px;  /* ← ajusta aquí el espacio entre párrafos */
	font-size: 14px
}

.portfolio-icons {
    display: flex;
    gap: 10px;             /* espacio entre íconos */
    margin-top: 10px;      /* espacio respecto al texto */
}

.portfolio-icons a img {
    width: 30px;           /* tamaño del ícono */
    height: auto;
    opacity: 1;          /* efecto suave */
    transition: 0.2s ease-in-out;
}

.portfolio-archive-eyebrow {
    font-family: "Anton", sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 14px;
    margin: 0 0 8px;
}

.portfolio-archive-title {
    font-family: "Anton", sans-serif;
    font-size: 40px;
    margin: 0 0 10px;
}

.portfolio-archive-subtitle {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 300;
    max-width: 320px;           /* más angosto, tipo columna */
    margin: 0;
}

/* BLOQUE DERECHO – GRID DE PROYECTOS */
.portfolio-grid {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));  /* 👈 2 columnas */
    gap: 20px;
}

/* CARD */
.portfolio-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: transparent;
    transition: transform .18s ease, box-shadow .18s ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.portfolio-card-thumb img {
    width: 100%;
    height: auto;
    display: block;
}


.portfolio-card-info {
    position: absolute;
    bottom: 18px;
    right: 18px;                          /* 👉 esquina inferior derecha */
    left: auto;
    transform: translateY(10px);          /* solo desde abajo, ya no centrado */

    background: rgba(255, 255, 255, 0.65); /* 👉 más transparente */
    border-radius: 60px;
    padding: 4px 16px;                    /* 👉 más alargado */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;

    font-family: "Poppins", sans-serif;

    box-shadow: 0 8px 20px rgba(0,0,0,0.16);

    opacity: 0;                           /* oculto por defecto */
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    white-space: nowrap;                  /* 👉 evita que se corte en varias líneas */
}

.portfolio-card:hover .portfolio-card-info {
    opacity: 1;
    transform: translateY(0);             /* sube suavemente desde abajo */
}


.portfolio-card-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin: 0 0 6px;
}

.portfolio-card-title {
    font-size: 12px;
    margin: 0;
    line-height: 0.5;
    text-align: center;
    font-weight: 600;
    color: #000;
}

.portfolio-card-title a {
    text-decoration: none;
    color: #000;
}

.portfolio-card-client {
    font-size: 10px;
    margin: 0;
    color: #444;
    text-align: center;
}


.portfolio-empty {
    grid-column: 1 / -1;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
}

@media (max-width: 640px) {

    .portfolio-hero {
        width: 100%;
        overflow: hidden;
        display: flex;
        justify-content: center;   
    }
    .portfolio-hero-img {
        width: 100vw;               
        height: 320px;              
        object-fit: cover;          
        object-position: center;    
        display: block;
    }
	.portfolio-archive-header {
        padding-bottom: 30px;   /* espaciado inferior */
    }
}
/* ============================
   CTA FINAL PORTAFOLIO
   ============================ */

.portfolio-final-cta {
    width: 100%;

    background-image: url('/wp-content/uploads/2025/11/escribenos-artemar.png');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    /* Ajusta la altura sin cortar la imagen */
    padding: 120px 20px; /* puedes bajar o subir a tu gusto */
    
    /* Evita que se estire por el grid */
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 100%;
}

.portfolio-final-overlay {
    color: #ffffff;
    max-width: 700px;
}

.portfolio-final-title {
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 1.5px;
    margin-bottom: 35px;
    line-height: 1.2;
}

.portfolio-final-title strong {
    font-weight: 600;
    letter-spacing: 1.5px;
}

.portfolio-final-btn {
    display: inline-block;
    padding: 8px 130px;
    background: #ffffff;
    color: #000000;
    border-radius: 60px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: 0.25s ease;
}


/* RESPONSIVE */
@media (max-width: 1024px) {
    .portfolio-archive-inner {
        flex-direction: column;      /* se apilan uno debajo del otro */
    }

    .portfolio-archive-header {
        flex: 0 0 auto;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    .portfolio-final-cta {
		margin-top: 0px;
	}	
	.portfolio-archive-header {
        transform: none !important;   /* quita el desplazamiento solo en mobile */
        margin-top: 10px;             /* reduce espacio superior solo en mobile */
    }

    .portfolio-grid {
        grid-template-columns: 1fr;   /* 1 columna en mobile */
    }
	    .portfolio-final-title {
        font-size: 22px;
		margin-bottom: 30px;
    }

    .portfolio-final-btn {
        font-size: 12px;
        padding: 8px 60px;
    }
	.portfolio-final-overlay {
        max-width: 90%;
    }
	.portfolio-archive-header,
    .portfolio-final-cta,
    .portfolio-final-title {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

}
/* ============================
   SINGLE PORTAFOLIO - ESTILOS
   ============================ */

.portfolio-single {
    overflow-x: hidden;
}

/* ============================
   MAIN BANNER
   ============================ */
.portfolio-banner {
    width: 100%;
    margin: 0 auto 60px;
}

.portfolio-banner-img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    display: block;
}

/* ============================
   TEXTO DE DESCRIPCIÓN
   ============================ */
.portfolio-description-section {
    width: 100%;
    padding: 0 20px;
    margin-bottom: 0;
    padding-top: 35px;
}

.portfolio-description-section .portfolio-title {
    display: none;
}

.portfolio-description-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
}

.portfolio-description {
    font-size: 16px;
    line-height: 1.7;
    color: #111;
}

.portfolio-description p:first-of-type::first-line {
    font-weight: bold;
}

.portfolio-description p {
    margin-bottom: 20px;
}

/* ============================
   GALERÍA EXTRA
   ============================ */
.portfolio-gallery {
    width: 100%;
    padding: 0 20px;
    margin-bottom: 80px;
}

.portfolio-gallery-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;

    /* 🔥 Antes: padding: 90px;  
       Ese padding causaba overflow en mobile */
    padding: 60px 0; 
}

.portfolio-gallery-item img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
}

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

/* Tablet */
@media (max-width: 1024px) {

    .portfolio-banner-img {
        height: 320px;
    }

    .portfolio-description-inner {
        max-width: 90%;
        padding: 0 15px;
    }

    .portfolio-description p {
        margin-bottom: 16px;
        font-size: 13px;
    }

    .portfolio-gallery-inner {
        padding: 40px 0;
        gap: 30px;
    }

    .portfolio-gallery-item img {
        max-width: 700px;
    }
}

@media (max-width: 768px) {

    /* --- DESCRIPCIÓN --- */
    .portfolio-description-section,
    .portfolio-description-inner {
        padding-left: 16px !important;
        padding-right: 16px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
		margin-bottom: 100px !important;
    }

    /* --- GALERÍA EXTRA --- */
    .portfolio-gallery {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }

    .portfolio-gallery-inner {
        padding: 0 !important;               /* 👈 ESTE ES EL PRINCIPAL FIX */
        margin: 0 auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .portfolio-gallery-item img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        display: block;
    }
	.portfolio-description p:first-of-type {
        font-weight: bold !important;
    }

.portfolio-banner-img {
        width: 100%;
        height: 260px;          /* ← AJUSTA AQUÍ EL TAMAÑO DEL BANNER */
        object-fit: cover;      /* mantiene proporción y recorta lo justo */
        object-position: center;/* centra el recorte */
        display: block;
    }
}

/* Very small mobile */
@media (max-width: 480px) {
    .portfolio-gallery-inner {
        padding: 12px 0;
    }
}
.hero-video-wrapper {
    position: relative;
    width: 100%;
    min-height: none;  /* mantiene proporción deseada */
    height: auto;      /* evita el borde negro */
    overflow: hidden;
}

/* === HERO VIDEO – BOTÓN MEJORADO === */
.hero-sound-toggle {
    position: absolute;
    right: 30px;
    bottom: 30px;
    z-index: 50;

    width: 46px;
    height: 46px;

    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.35);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    color: #ffffff;
    cursor: pointer;
    transition: all .25s ease;
}

.hero-sound-toggle:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.08);
}

.hero-sound-toggle--active {
    background: rgba(255,255,255,0.85);
    color: #000;
    border: 1px solid rgba(255,255,255,0.9);
}
/* === AJUSTE ESPECÍFICO PARA MOBILE (< 768px) === */
@media (max-width: 768px) {
    .hero-video-wrapper {
        position: relative;
        width: 100%;
        height: 80vh;           /* similar a .hero en mobile */
        overflow: hidden;
    }

    .hero-sound-toggle {
        position: absolute;
        right: 16px;
        bottom: 16px;
        z-index: 9999;

        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}
/* ===============================
   TITULARES DE SERVICIOS – EFECTO MULTILÍNEA ↔ UNA LÍNEA
   =============================== */

/* Estado normal (varias líneas) */
.service-title {
    white-space: normal;
    transition: white-space 0.25s ease;
}

/* Cuando se activa el acordeón O cuando se pasa el mouse */
.service-item:hover .service-title,
.service-item.active .service-title {
    white-space: nowrap;
}