:root {
    --accent: #2798c2;
    --whatsapp: #25d366;
    --bg-dark: #0a0a0a;
    --glass: rgba(255, 255, 255, 0.04);
    --radius: 20px;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background-color: var(--bg-dark);
    color: #fff;
    overflow-x: hidden;
    max-width: 100vw;
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
}

/* =========================================
   UTILIDADES Y TIPOGRAFÍA
   ========================================= */
.text-accent {
    color: var(--accent);
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-40 {
    opacity: 0.4;
}

.opacity-75 {
    opacity: 0.75;
}

.py-100 {
    padding-top: 100px;
    padding-bottom: 100px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
}

.portfolio-title {
    font-size: 3.5rem;
    font-weight: 900;
}

/* FONDO DINÁMICO MESH */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #121212 0%, #0a0a0a 100%);
    z-index: -2;
}

.mesh-ball {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(39, 152, 194, 0.08) 0%, transparent 70%);
    filter: blur(100px);
    animation: moveBall 30s infinite alternate;
    z-index: -1;
}

@keyframes moveBall {
    from {
        transform: translate(-15%, -15%);
    }

    to {
        transform: translate(25%, 25%);
    }
}

/* =========================================
   NAVEGACIÓN Y HEADER (VISIÓN 2026)
   ========================================= */
.header {
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 20px auto;
    border-radius: 60px;
    width: calc(100% - 40px);
    max-width: 1200px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header.stick {
    background: rgba(5, 5, 5, 0.85);
    margin: 10px auto;
    border-color: rgba(39, 152, 194, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.main-header {
    padding: 15px 30px !important;
}

/* Ocultar logo por defecto (estado 0) */
.header-logo {
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Mostrar logo al scrollear */
.header.stick .header-logo {
    opacity: 1;
    width: auto;
    margin-right: 20px;
}

.header-logo img {
    height: 35px;
    filter: drop-shadow(0 0 12px rgba(39, 152, 194, 0.5));
}

/* Menú de links centrado */
.header-menu {
    flex-grow: 1;
    /* Permite que el menú ocupe el espacio disponible y se centre */
    display: flex;
    justify-content: center;
}

.main-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.main-menu li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-menu li a:hover {
    color: var(--accent);
}

.main-menu li a:hover::after {
    width: 100%;
}

.header-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    /* Evita que el botón se rompa en dos líneas */
}

.header-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 15px rgba(39, 152, 194, 0.4);
    transform: translateY(-2px);
}

/* =========================================
   HERO SECTION (CON LOGO GRANDE)
   ========================================= */
.hero-modern {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-logo-main {
    max-width: 600px;
    /* Ajustá esto según el tamaño de tu logo.png */
    width: 80%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(39, 152, 194, 0.3));
    /* Resplandor opcional */
}

.hero-subtitle {
    letter-spacing: 8px;
    font-size: 1rem;
    margin-top: 15px;
}

/* =========================================
   SECCIÓN CARACTERÍSTICAS Y CARRUSEL
   ========================================= */
.caracteristicas-curvo {
    width: 100%;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.caracteristicas-texto {
    max-width: 850px;
    margin: 0 auto 50px auto;
    text-align: center;
}

.caracteristicas-texto h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.caracteristicas-texto p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    line-height: 1.8;
    font-weight: 300;
}

.carousel-contenedor {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    align-items: center;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.carousel-slide img {
    max-width: 500px;
    width: 100%;
    height: auto;
    filter: invert(1);
    opacity: 0.7;
    transition: all 0.4s ease;
    mix-blend-mode: screen;
}

.carousel-slide img:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: invert(1) drop-shadow(0px 0px 20px rgba(39, 152, 194, 0.4));
    mix-blend-mode: screen;
}

/* Hablemos en menú mobile: oculto en desktop, visible solo en menú hamburguesa */
.menu-hablemos-mobile { display: none !important; }

/* =========================================
   SECCIÓN EVENTOS
   ========================================= */
.eventos-section {
    position: relative;
    z-index: 10;
}

.eventos-bajada {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.eventos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.evento-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 36px 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.evento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.evento-card:hover {
    background: rgba(39, 152, 194, 0.06);
    border-color: rgba(39, 152, 194, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.evento-card:hover::before {
    opacity: 1;
}

.evento-card--highlight {
    background: rgba(39, 152, 194, 0.08);
    border-color: rgba(39, 152, 194, 0.25);
}

.evento-card--highlight::before {
    opacity: 1;
}

.evento-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 20px;
}

.evento-icon svg {
    width: 100%;
    height: 100%;
}

.evento-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.evento-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.75;
    font-weight: 300;
    margin: 0;
}

/* CTA */
.eventos-cta {
    padding-top: 30px;
}

.eventos-cta-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 300;
}

.btn-eventos-cta {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 16px 48px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-eventos-cta:hover {
    background: #1d7b9e;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(39, 152, 194, 0.4);
    color: #fff;
}

@media (max-width: 991px) {
    .eventos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .eventos-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   PAGINACIÓN GALERÍA */
.galeria-pagination {
    padding: 20px 0 40px;
}

.btn-pag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-pag:hover:not(.disabled) {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 152, 194, 0.4);
}

.btn-pag.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(39, 152, 194, 0.4);
}

.btn-pag.disabled {
    opacity: 0.25;
    cursor: default;
}

/* =========================================
   CARRUSEL DE CLIENTES
   ========================================= */
.clientes-section {
    padding: 70px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.clientes-track-wrapper {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.clientes-track {
    display: flex;
    align-items: center;
    gap: 70px;
    width: max-content;
    animation: clientes-scroll 28s linear infinite;
}

.clientes-track:hover {
    animation-play-state: paused;
}

.cliente-slide {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px;
}

.cliente-slide img {
    height: 100%;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(1) brightness(2);
    opacity: 0.45;
    transition: all 0.4s ease;
}

.cliente-slide img:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}

@keyframes clientes-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =========================================
   PORTFOLIO / FILTROS Y GALERÍA PINTEREST
   ========================================= */
/* Items filtrados: sin clicks, sin espacio visual activo */
.masonry-container .filter-item.isotope-hidden {
    pointer-events: none !important;
}

.portfolio-filters {
    margin-bottom: 40px;
}

.btn-filter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-filter:hover,
.btn-filter.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(39, 152, 194, 0.4);
    transform: translateY(-2px);
}

.container-fluid-gallery {
    width: 98%;
    margin: 0 auto;
}

.grid-sizer,
.filter-item {
    width: 20%;
}

.filter-item {
    padding: 8px;
    float: left;
}

.filter-item.es-horizontal {
    width: 40%;
}

.cardRecent {
    width: 100%;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    background: #111;
}

.cardRecent:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.cardRecent img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.5s;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 40px 20px 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.cardRecent:hover .card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay-cat {
    display: block;
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1.5px;
    margin-bottom: 3px;
}

.overlay-tit {
    color: #fff;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

/* =========================================
   MODAL / POPUP
   ========================================= */
.modal-galeria {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-galeria.show {
    display: flex;
    opacity: 1;
}

.modal-cerrar {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.modal-cerrar:hover {
    color: var(--accent);
}

.modal-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content-wrapper img {
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    object-fit: contain;
    transition: all 0.3s ease;
}

#modalImgContainerVertical,
#modalImgContainerHorizontal {
    display: none;
}

.img-vertical #modalImgContainerVertical {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.img-vertical #modalImgContainerVertical img {
    max-height: 75vh;
    width: auto;
}

.img-horizontal #modalImgContainerHorizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.img-horizontal #modalImgContainerHorizontal img {
    max-width: 100%;
    height: auto;
}

.modal-info {
    text-align: center;
    margin-top: 20px;
}

.modal-info-cat {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 3px;
    font-weight: 900;
    display: block;
    margin-bottom: 5px;
}

.modal-info-tit {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

/* Ajustes responsivos Galería y Menú */
@media (max-width: 1200px) {

    .grid-sizer,
    .filter-item {
        width: 25%;
    }

    .filter-item.es-horizontal {
        width: 50%;
    }

    .carousel-slide img {
        max-width: 400px;
    }

    .modal-info-tit {
        font-size: 1.5rem;
    }
}

@media (max-width: 900px) {

    .grid-sizer,
    .filter-item {
        width: 33.333%;
    }

    .filter-item.es-horizontal {
        width: 66.666%;
    }
}

@media (max-width: 768px) {

    .grid-sizer,
    .filter-item {
        width: 50%;
    }

    .filter-item.es-horizontal {
        width: 100%;
    }

    .carousel-slide img {
        max-width: 320px;
    }

    .btn-filter {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Ajustes menú móvil */
    .header {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 0;
        padding: 0;
    }

    /* Hero logo */
    .hero-logo-main {
        width: 90%;
    }
}

@media (max-width: 480px) {

    .grid-sizer,
    .filter-item {
        width: 100%;
    }

    .filter-item.es-horizontal {
        width: 100%;
    }
}

/* =========================================
   SERVICIOS CENTRADOS Y ACHICADOS (10%)
   ========================================= */
#servicios {
    position: relative;
    z-index: 50;
    padding: 120px 0;
}

.accordion-item {
    max-width: 90%;
    margin: 0 auto 20px auto;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    overflow: hidden;
}

.accordion-button {
    background: transparent !important;
    color: #fff !important;
    padding: 30px !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    box-shadow: none !important;
    border: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--accent) !important;
    background: rgba(39, 152, 194, 0.08) !important;
}

.bullets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 10px 0;
    list-style: none;
    text-align: left;
}

.bullets-grid li {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
}

.service-dot {
    color: var(--accent);
    margin-right: 12px;
    font-weight: 900;
}

@media (max-width: 576px) {
    .bullets-grid {
        grid-template-columns: 1fr;
    }

    .accordion-item {
        max-width: 100%;
    }
}

/* =========================================
   CONTACTO Y MAPA
   ========================================= */
.map-container {
    height: 450px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    filter: grayscale(1) invert(0.9);
}

.contacto-form-wrapper {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contacto-input {
    background: transparent;
    color: #fff;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
    border-radius: 0;
}

.contacto-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.contacto-input:focus {
    background: transparent;
    color: #fff;
    border-color: var(--accent);
    box-shadow: none;
    outline: none;
}

.contacto-input:focus::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.btn-enviar {
    background: var(--accent);
    border: none;
    transition: all 0.3s ease;
}

.btn-enviar:hover {
    background: #1d7b9e;
}

/* WHATSAPP FLOTANTE */
.whatsapp-btn {
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    width: 65px; 
    height: 65px; 
    z-index: 10000; 
    transition: 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-btn:hover { 
    transform: scale(1.1) rotate(10deg); 
}

/* Estilo para la imagen del icono */
.whatsapp-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Agregamos una sombra suave para que resalte sobre el fondo mesh */
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
}

/* =========================================
   VARIABLES Y BASE
   ========================================= */
:root {
    --accent: #2798c2;
    --whatsapp: #25d366;
    --bg-dark: #0a0a0a;
    --glass: rgba(255, 255, 255, 0.04);
    --radius: 20px;
}

/* HACER EL SCROLL INVISIBLE */
body {
    background-color: var(--bg-dark);
    color: #fff;
    overflow-x: hidden;
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    /* Ocultar en Chrome, Safari y Opera */
    -webkit-overflow-scrolling: touch;
}

body::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

/* Ocultar en IE, Edge y Firefox */
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* =========================================
   UTILIDADES Y TIPOGRAFÍA
   ========================================= */
.text-accent {
    color: var(--accent);
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-40 {
    opacity: 0.4;
}

.opacity-75 {
    opacity: 0.75;
}

.py-100 {
    padding-top: 100px;
    padding-bottom: 100px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
}

.portfolio-title {
    font-size: 3.5rem;
    font-weight: 900;
}

/* FONDO DINÁMICO MESH */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #121212 0%, #0a0a0a 100%);
    z-index: -2;
}

.mesh-ball {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(39, 152, 194, 0.08) 0%, transparent 70%);
    filter: blur(100px);
    animation: moveBall 30s infinite alternate;
    z-index: -1;
}

@keyframes moveBall {
    from {
        transform: translate(-15%, -15%);
    }

    to {
        transform: translate(25%, 25%);
    }
}

/* =========================================
   NAVEGACIÓN Y HEADER
   ========================================= */
.header {
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 20px auto;
    border-radius: 60px;
    width: calc(100% - 40px);
    max-width: 1200px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.header.stick {
    background: rgba(5, 5, 5, 0.85);
    margin: 10px auto;
    border-color: rgba(39, 152, 194, 0.3);
}

.header-logo {
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.header.stick .header-logo {
    opacity: 1;
    width: auto;
    margin-right: 20px;
}

.header-logo img {
    height: 35px;
    filter: drop-shadow(0 0 12px rgba(39, 152, 194, 0.5));
}

.header-menu {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.main-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
    transition: 0.3s;
}

.main-menu li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: 0.3s;
}

.main-menu li a:hover {
    color: var(--accent);
}

.main-menu li a:hover::after {
    width: 100%;
}

.header-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.header-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(39, 152, 194, 0.4);
    transform: translateY(-2px);
}

/* BOTÓN HAMBURGUESA */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 10001;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-toggle span:nth-child(2) {
    top: 9px;
}

.mobile-toggle span:nth-child(3) {
    top: 18px;
}

.mobile-toggle.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
    background: var(--accent);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
    background: var(--accent);
}

/* HERO SECTION */
.hero-modern {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-logo-main {
    max-width: 600px;
    width: 80%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(39, 152, 194, 0.3));
}

.hero-subtitle {
    letter-spacing: 8px;
    font-size: 1rem;
    margin-top: 15px;
}

/* CARACTERÍSTICAS Y CARRUSEL */
.caracteristicas-curvo {
    width: 100%;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.carousel-slide img {
    max-width: 550px;
    width: 100%;
    height: auto;
    filter: invert(1);
    opacity: 0.7;
    transition: all 0.4s ease;
    mix-blend-mode: screen;
}

/* PORTFOLIO */
.grid-sizer,
.filter-item {
    width: 20%;
}

.filter-item {
    padding: 8px;
    float: left;
}

.filter-item.es-horizontal {
    width: 40%;
}

.cardRecent {
    width: 100%;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #111;
    transition: 0.4s;
    cursor: pointer;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 40px 20px 20px;
    opacity: 0;
    transition: 0.3s;
    transform: translateY(10px);
}

.cardRecent:hover .card-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* SERVICIOS COMPACTOS */
.accordion-item {
    max-width: 90%;
    margin: 0 auto 20px auto;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    overflow: hidden;
}

.accordion-button {
    background: transparent !important;
    color: #fff !important;
    padding: 25px !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
}

/* MEDIA QUERIES */
@media (max-width: 991px) {
    .mobile-toggle {
        display: block;
    }

    .header-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(15px);
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 10000;
    }

    .header-menu.active {
        right: 0 !important;
    }

    .main-menu {
        flex-direction: column;
        gap: 35px;
    }

    .hero-logo-main {
        max-width: 320px;
        width: 85%;
    }

    .grid-sizer,
    .filter-item {
        width: 50%;
    }

    .filter-item.es-horizontal {
        width: 100%;
    }

    .accordion-item {
        max-width: 100%;
    }
}

/* CONTACTO */
.contacto-form-wrapper {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contacto-input {
    background: transparent;
    color: #fff;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 20px;
}

.btn-enviar {
    background: var(--accent);
    border: none;
    transition: 0.3s;
    font-weight: 700;
    padding: 15px;
}

/* SCROLL INVISIBLE */
body {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-x: hidden;
    background-color: #0a0a0a;
    color: #fff;
    font-family: 'Outfit';
}

body::-webkit-scrollbar {
    display: none;
}

/* AJUSTE IMAGEN POPUP HORIZONTAL */
.modal-content-wrapper img {
    border-radius: 12px;
    transition: 0.3s;
    object-fit: contain;
}

#modalImgContainerHorizontal img {
    max-width: 85vw;
    /* Más chica para que no toque los bordes */
    max-height: 70vh;
    height: auto;
}

#modalImgContainerVertical img {
    max-height: 80vh;
    width: auto;
}

/* MODAL ÉXITO */
.success-popup {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.success-card {
    background: #111;
    padding: 50px;
    border-radius: 30px;
    border: 1px solid var(--accent);
    max-width: 400px;
    width: 90%;
}

.success-icon {
    font-size: 50px;
    color: var(--accent);
    margin-bottom: 15px;
}

/* (Mantener el resto del CSS anterior...) */

/* =========================================
   MOBILE RESPONSIVE — CONSOLIDADO
   ========================================= */

/* --- TABLET (max 991px) --- */
@media (max-width: 991px) {

    /* Títulos */
    .portfolio-title { font-size: 2.5rem; }
    .section-title   { font-size: 2rem; }

    /* Nosotros */
    .caracteristicas-texto h2 { font-size: 1.8rem; }
    .caracteristicas-texto p  { font-size: 1rem; }

    /* Eventos grid → 2 columnas */
    .eventos-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    /* Clientes */
    .cliente-slide { height: 50px; }

    /* Contacto: mapa menos alto */
    .map-container { height: 300px; }
}

/* --- MOBILE (max 768px) — optimizado para 384px Android --- */
@media (max-width: 768px) {

    /* ---- GENERAL ---- */
    .py-100 { padding-top: 60px; padding-bottom: 60px; }

    /* ---- HEADER: full width, flat, hamburguesa visible ---- */
    .header {
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    .header.stick {
        margin: 0 !important;
        border-radius: 0 !important;
    }
    .main-header {
        width: 100% !important;
        padding: 14px 18px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
        gap: 0 !important;
        min-width: 0 !important;
    }
    /* Logo: oculto por defecto, aparece al bajar */
    .header-logo {
        opacity: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        flex-shrink: 0;
        transition: all 0.4s ease;
    }
    .header.stick .header-logo {
        opacity: 1 !important;
        width: auto !important;
        margin-right: 8px;
    }
    .header-logo img { height: 26px; }
    /* Menú: oculto, se abre con la hamburguesa */
    .header-menu {
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
    }
    .header-menu.active {
        position: fixed;
        top: 0; right: 0; bottom: 0; left: 0;
        width: 100vw !important;
        height: 100vh;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(5,5,5,0.98);
        backdrop-filter: blur(15px);
        z-index: 10000;
        overflow: visible !important;
    }
    /* Botón Hablemos: mismo estilo que el resto de los links */
    .menu-hablemos-mobile { display: list-item !important; }
    /* Botón Hablemos: oculto */
    .header-btn { display: none !important; }
    /* Hamburguesa: siempre visible */
    .header-right {
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }
    .mobile-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 26px !important;
        height: 18px !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        cursor: pointer !important;
        z-index: 10001 !important;
        position: relative !important;
        flex-shrink: 0 !important;
    }
    .mobile-toggle span {
        display: block !important;
        width: 100% !important;
        height: 2px !important;
        background: #fff !important;
        border-radius: 2px !important;
        transition: 0.3s !important;
        position: static !important;
    }

    /* ---- HERO ---- */
    .hero-modern { height: 100svh; padding: 0 20px; }
    .hero-logo-main {
        max-width: 260px;
        width: 82%;
        margin-bottom: 12px;
    }
    .hero-subtitle { font-size: 0.65rem; letter-spacing: 4px; }

    /* ---- NOSOTROS ---- */
    .caracteristicas-curvo { padding: 60px 16px; }
    .caracteristicas-texto { margin-bottom: 36px; }
    .caracteristicas-texto h2 { font-size: 1.55rem; line-height: 1.3; }
    .caracteristicas-texto p  { font-size: 0.92rem; }
    .carousel-slide img { max-width: 240px; mix-blend-mode: screen; }

    /* ---- CLIENTES ---- */
    .clientes-section { padding: 40px 0; }
    .clientes-track   { gap: 36px; }
    .cliente-slide    { height: 42px; }

    /* ---- GALERÍA ---- */
    .portfolio-title { font-size: 1.9rem; }
    .portfolio-filters { gap: 6px !important; padding: 0 12px; }
    .btn-filter { padding: 7px 12px; font-size: 0.75rem; }
    .grid-sizer,
    .filter-item           { width: 50%; }
    .filter-item.es-horizontal { width: 100%; }
    .filter-item           { padding: 5px; }
    .btn-pag { width: 34px; height: 34px; font-size: 0.78rem; }
    .galeria-pagination { gap: 5px; padding: 14px 0 28px; }

    /* ---- EVENTOS ---- */
    .eventos-section { padding: 50px 0; }
    .eventos-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
    .evento-card { padding: 22px 18px; }
    .evento-card h3 { font-size: 0.98rem; }
    .evento-icon { width: 36px; height: 36px; margin-bottom: 12px; }
    .eventos-bajada { font-size: 0.9rem; padding: 0 8px; }
    .btn-eventos-cta { padding: 13px 30px; font-size: 0.88rem; }

    /* ---- SERVICIOS ---- */
    #servicios { padding: 50px 0; }
    .accordion-button { padding: 18px !important; font-size: 1rem !important; }
    .accordion-item { border-radius: 14px !important; }
    .bullets-grid { grid-template-columns: 1fr; gap: 10px; }
    .bullets-grid li { font-size: 0.9rem; }

    /* ---- CONTACTO ---- */
    .section-title { font-size: 1.7rem; }
    .map-container { height: 220px; }
    .contacto-form-wrapper { padding: 20px 16px; }

    /* ---- MODAL ---- */
    .modal-cerrar { top: 10px; right: 16px; font-size: 34px; }
    #modalImgContainerHorizontal img { max-width: 96vw; max-height: 50vh; }
    #modalImgContainerVertical   img { max-height: 70vh; max-width: 94vw; width: auto; }
    .modal-info { margin-top: 10px; }
    .modal-info-tit { font-size: 1rem; }
    .modal-info-cat { font-size: 0.68rem; letter-spacing: 2px; }
}

/* --- MOBILE PEQUEÑO (max 480px) --- */
@media (max-width: 480px) {

    /* 1 columna en pantallas muy chicas */
    .grid-sizer,
    .filter-item           { width: 100%; }
    .filter-item.es-horizontal { width: 100%; }

    .hero-logo-main { max-width: 240px; }
    .portfolio-title { font-size: 1.75rem; }
    .section-title   { font-size: 1.6rem; }
    .caracteristicas-texto h2 { font-size: 1.4rem; }

    /* Clientes más pequeño */
    .cliente-slide { height: 38px; }
    .clientes-track { gap: 30px; }

    /* Filtros en 2 cols */
    .portfolio-filters {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 16px;
    }
    .btn-filter { text-align: center; }

    /* Formulario */
    .contacto-form-wrapper { padding: 20px 16px; }
}

/* =========================================
   ANTI SCROLL HORIZONTAL MOBILE — GLOBAL
   Ningún elemento puede superar el ancho del viewport
   ========================================= */
@media (max-width: 768px) {

    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* Todo el contenido queda dentro del viewport */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Excepciones: elementos que necesitan ancho propio */
    img               { max-width: 100%; height: auto; }
    .clientes-track   { max-width: none; } /* carrusel animado */
    .masonry-container { max-width: 100%; overflow: hidden; }

    /* Container de Bootstrap no puede desbordar */
    .container,
    .container-fluid,
    .container-fluid-gallery { max-width: 100vw !important; padding-left: 12px; padding-right: 12px; }

    /* Secciones full-width */
    section { max-width: 100vw; overflow-x: hidden; }

    /* Acordeón servicios */
    .accordion-body { word-break: break-word; }

    /* Formulario contacto */
    .row.g-5 { --bs-gutter-x: 1rem; }

    /* Mapa iframe */
    .map-container iframe { max-width: 100%; }

    /* Modal galería */
    .modal-galeria { max-width: 100vw; }
    .modal-content-wrapper { max-width: 95vw; }
}