:root {
    --blue-100: #EAF3FB;
    --brand-blue: #0072CE;
    --blue-dark: #003a6b;
    --accent: #00A4FF;
    --accent-light: #1ff0ff;
    --muted: #6b7785;
    --bg: #f6f7f8;
    --white: #ffffff;
    --black: #000000;
    --dark-block: #0b0b0b;
    --max-width: 1200px;
    --header-height: 110px;
    --topbar-height: 80px;
    --container-padding: 20px;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    color: #213242;
}

/* Reset y Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
    font-family: Arial, sans-serif;
}

/* REUTILIZABLES */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* HEADER PRINCIPAL */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 6px rgba(3, 18, 39, 0.06);
}

/* Top bar */
.top-bar {
    height: var(--topbar-height);
    background: var(--brand-blue);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.top-bar:hover {
    background: var(--blue-dark) !important;
}

.top-bar-link {
    text-decoration: none;
    display: block;
    width: 100%;
}

.top-bar-content {
    max-width: var(--max-width);
    width: 80%;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-text {
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    font-family: Arial, sans-serif;
    white-space: nowrap;
}

.top-bar-flags {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.top-bar-flags img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
}

/* Nav - LOGO CON ESPACIO Y TAMAÑO DE 150px */
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 25px var(--container-padding);
    width: 80%;
}

/* LOGO CON ESPACIO */
.brand {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 20px 0;
}

/* TAMAÑO DEL LOGO - 150px EN DESKTOP */
.brand .logo {
    width: 150px;
    height: auto;
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 15px 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--blue-dark);
    font-weight: 600;
    letter-spacing: 0.6px;
    font-size: 18px;
    font-family: Arial, sans-serif;
    transition: color 0.3s ease;
    white-space: nowrap;
    padding: 10px 0;
}

.main-nav ul li a:hover {
    color: var(--brand-blue);
}

.cta-and-burger {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 26px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--brand-blue);
    border: 2px solid var(--brand-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* Botón Contactanos solo para mobile */
.mobile-only {
    display: none;
}

.mobile-only .mobile-btn {
    width: calc(100% + 4px) !important;
    margin-left: -2px;
    margin-right: -2px;
    padding: 12px 22px !important;
    color: white !important;
    font-weight: 700;
    font-size: 14px;
    background: var(--brand-blue);
    border: 2px solid var(--brand-blue);
    border-radius: 26px;
    display: block;
    text-align: center;
    text-decoration: none;
}

/* Burger Menu */
.burger {
    width: 44px;
    height: 44px;
    display: none;
    border-radius: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.burger span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--brand-blue);
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* HERO PORTFOLIO - Ajustado por header más alto */
.hero-portfolio {
    margin-top: calc(var(--topbar-height) + var(--header-height));
    background: linear-gradient(90deg, #0095ff, #8a00ff);
    color: white;
    padding: 70px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-portfolio-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
}

.hero-portfolio-text {
    flex: 1;
    text-align: left;
}

.hero-portfolio-text p {
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.hero-portfolio-text h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-portfolio-text .accent {
    color: var(--accent-light);
    font-weight: 700;
    font-style: bold;
}

.hero-portfolio-image {
    flex: 0 0 40%;
}

.hero-portfolio-image img {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    filter: none;
}

.btn-ver {
    background: white;
    color: var(--brand-blue);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.btn-ver:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.3);
}

/* FILTROS */
.filtros {
    background: var(--white);
    padding: 40px var(--container-padding) 30px;
    border-bottom: 1px solid var(--blue-100);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

.filtros label {
    font-weight: 600;
    color: var(--blue-dark);
    font-size: 14px;
    white-space: nowrap;
    margin-right: 15px;
}

.filtros select {
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid var(--blue-100);
    background: var(--white);
    color: var(--blue-dark);
    font-family: Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 200px;
}

/* CENTRAR TEXTOS EN DESKTOP - Alineación normal */
@media (min-width: 769px) {
    .filtros select {
        text-align: left;
        text-align-last: left;
    }
    
    .filtros select option {
        text-align: left;
    }
}

.filtros select:hover {
    border-color: var(--brand-blue);
}

.filtros select:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 114, 206, 0.1);
}

/* Contenedor de filtros activos - MODIFICADO */
.filtros-activos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    min-height: 40px;
    padding: 5px;
    width: 100%;
    order: 5;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding-left: 70px; /* Espacio para alinear con el label */
}

/* Mensaje "No hay filtros aplicados" alineado a la derecha del label */
.filtros-activos-container:empty::before {
    content: "No hay filtros aplicados";
    color: #6b7785;
    font-size: 14px;
    font-style: italic;
    padding: 10px 0;
    position: absolute;
    left: 70px; /* Misma posición que el padding-left */
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
}

/* Etiqueta de filtro activo */
.etiqueta-filtro {
    display: inline-flex;
    align-items: center;
    background-color: #0072CE;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    gap: 6px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.etiqueta-filtro .filtro-texto {
    font-size: 13px;
    white-space: nowrap;
}

.etiqueta-filtro .cerrar-filtro {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    margin-left: 2px;
    transition: background-color 0.2s ease;
}

.etiqueta-filtro .cerrar-filtro:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Botón para limpiar todos los filtros */
.btn-limpiar-filtros {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f6f7f8;
    border: 2px solid #e0e0e0;
    color: #6b7785;
    padding: 10px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
    order: 6;
}

.btn-limpiar-filtros:hover {
    background-color: #ffebee;
    border-color: #ffcdd2;
    color: #d32f2f;
}

.btn-limpiar-filtros svg {
    stroke: currentColor;
}

/* Grid Portafolio - TARJETAS CON TAMAÑO FIJO */
.grid-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px var(--container-padding);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 300px);
    gap: 25px;
    justify-content: center;
}

/* Tarjeta con tamaño FIJO */
.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    width: 300px;
    height: 400px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* THUMBNAILS - TAMAÑO FIJO */
.card-image-container {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: var(--bg);
    flex-shrink: 0;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.card:hover .video-thumbnail {
    transform: scale(1.05);
}

.thumbnail-loading {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--blue-100);
    border-top: 4px solid var(--brand-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.categoria {
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.descripcion {
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
    font-size: 14px;
}

.ver-demo {
    margin-top: auto;
    background: linear-gradient(90deg, var(--brand-blue), #8a00ff);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.ver-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 114, 206, 0.3);
}

/* FLECHA FLOTANTE PARA VOLVER AL HERO */
.scroll-hero-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--brand-blue), #00ccff);
    border: none;
    border-radius: 50px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 114, 206, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-hero-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-hero-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 114, 206, 0.6);
}

.scroll-hero-btn svg {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}

.scroll-hero-btn .btn-text {
    color: white;
    font-size: 11px;
    font-weight: 600;
    margin-top: -4px;
    font-family: Arial, sans-serif;
}

/* MODAL PARA VIDEOS */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 90%;
    height: 90%;
    max-width: 1200px;
    background: transparent;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cerrar {
    background: var(--accent) !important;
    border-radius: 8px !important;
    color: white !important;
    border: none !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 10000 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.cerrar:hover {
    background: #0088cc !important;
    transform: scale(1.05) !important;
}

.close-icon {
    color: white;
    font-weight: bold;
}

.video-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.video-player {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    background-color: transparent;
    outline: none;
    box-shadow: none;
    border: none;
}

.video-player:focus {
    outline: none !important;
    box-shadow: none !important;
}

.video-player::-webkit-media-controls {
    background-color: transparent !important;
}

.video-player::-webkit-media-controls-panel {
    background-color: transparent !important;
}

.video-player::-webkit-media-controls-enclosure {
    background-color: transparent !important;
}

/* FOOTER */
.site-footer {
    background: var(--blue-dark);
    color: rgba(255, 255, 255, 0.95);
    padding: 60px 0 40px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 30px;
    align-items: start;
    text-align: left;
}

.footer-title-white {
    margin: 0 0 20px;
    color: var(--white);
    font-size: 18px;
    font-family: Arial, sans-serif;
    font-weight: 700;
    text-align: left;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-link-linkedin {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    justify-content: flex-start;
    text-align: left;
}

.footer-link-linkedin:hover {
    color: var(--accent);
}

.linkedin-text {
    color: var(--brand-blue);
    font-weight: 600;
}

.footer-link-mediakit {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    justify-content: flex-start;
    text-align: left;
}

.footer-link-mediakit:hover {
    color: var(--accent);
}

.mediakit-text {
    color: var(--brand-blue);
    font-weight: 600;
}

.footer-icon {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.footer-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: -15px;
}

.brand-col .logo-footer {
    width: 200px;
    height: auto;
    max-width: 100%;
}

.copyright {
    opacity: 0.8;
    font-size: 14px;
    font-family: Arial, sans-serif;
    margin: 0;
    text-align: left;
}

.footer-contact {
    font-style: normal;
    line-height: 1.6;
    font-family: Arial, sans-serif;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.contact-link {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: flex-start;
    text-align: left;
}

.contact-link:hover {
    color: var(--accent);
}

.contact-text {
    color: var(--brand-blue);
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(3, 300px);
    }
}

@media (max-width: 992px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .brand-col .logo-footer {
        width: 180px;
    }

    .hero-portfolio-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-portfolio-text {
        text-align: center;
    }

    .hero-portfolio-text h1 {
        font-size: 30px;
    }

    .hero-portfolio-image {
        flex: 0 0 auto;
        width: 80%;
    }

    .top-bar-content {
        flex-direction: row;
        gap: 8px;
    }

    .top-bar-flags {
        justify-content: center;
    }

    .top-bar-flags img {
        width: 40px;
        height: 40px;
    }

    .filtros {
        flex-direction: column;
        align-items: stretch;
    }

    .filtros label {
        margin-right: 0;
        margin-bottom: 10px;
        text-align: center;
        width: 100%;
    }

    .filtros select {
        min-width: 100%;
    }

    .filtros-activos-container {
        order: 4;
        padding-left: 0;
        justify-content: center;
        margin-top: 10px;
    }
    
    .filtros-activos-container:empty::before {
        position: static;
        transform: none;
        left: auto;
        top: auto;
        text-align: center;
        width: 100%;
    }
    
    .btn-limpiar-filtros {
        order: 5;
        width: 100%;
        justify-content: center;
    }

    .grid {
        grid-template-columns: repeat(2, 300px);
    }
}

@media (max-width: 768px) {
    /* CENTRAR TEXTOS DE LOS SELECTS EN MOBILE */
    .filtros select {
        text-align: center;
        text-align-last: center; /* Para que el texto seleccionado también esté centrado */
    }
    
    /* Centrar también el texto de las opciones dentro del dropdown */
    .filtros select option {
        text-align: center;
    }
    
    .burger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: calc(var(--topbar-height) + var(--header-height));
        right: 0;
        background: var(--white);
        width: 100%;
        height: calc(100vh - (var(--topbar-height) + var(--header-height)));
        transform: translateX(100%);
        transition: transform .3s ease;
        box-shadow: -12px 0 30px rgba(3, 18, 39, 0.08);
        padding: 24px;
    }

    .main-nav.open {
        transform: translateX(0%);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 16px;
        margin-top: 20px;
        text-align: left;
    }

    .main-nav ul li a {
        font-size: 16px;
        padding: 10px 0;
        display: block;
    }

    /* Ocultar botón en barra superior mobile */
    .cta-and-burger .btn-primary {
        display: none !important;
    }

    .nav-wrap {
        padding: 25px 15px !important;
        width: 100%;
    }

    /* LOGO EN MOBILE */
    .brand {
        padding: 15px 0;
    }

    .brand .logo {
        width: 150px;
        height: auto;
        padding: 10px 0;
    }

    /* HERO CENTRADO EN MOBILE */
    .hero-portfolio {
        padding: 50px 0;
    }
    
    .hero-portfolio-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hero-portfolio-text {
        text-align: center;
    }
    
    .hero-portfolio-text h1 {
        font-size: 28px;
        text-align: center;
    }
    
    .hero-portfolio-text p {
        text-align: center;
    }
    
    .hero-portfolio-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .filtros {
        padding: 30px var(--container-padding) 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .filtros label {
        order: 1;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
        margin-right: 0;
    }

    .filtros select {
        order: 2;
        min-width: 100%;
        margin-bottom: 10px;
    }

    .filtros-activos-container {
        order: 3;
        padding-left: 0;
        justify-content: center;
        margin-top: 10px;
    }
    
    .filtros-activos-container:empty::before {
        position: static;
        transform: none;
        left: auto;
        top: auto;
        text-align: center;
        width: 100%;
        padding: 10px 0;
    }
    
    .btn-limpiar-filtros {
        order: 4;
        margin-top: 10px;
        width: 100%;
    }

    /* Grid mobile */
    .grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Flecha flotante en mobile */
    .scroll-hero-btn {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .scroll-hero-btn svg {
        width: 22px;
        height: 22px;
    }
    
    .scroll-hero-btn .btn-text {
        font-size: 10px;
    }

    .top-bar {
        height: 70px;
        padding: 8px 0;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .top-bar-text {
        font-size: 16px;
        text-align: center;
        width: 100%;
        line-height: 1.2;
    }

    .top-bar-flags {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }

    .top-bar-flags img {
        width: 28px !important;
        height: 28px !important;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 16px;
        --header-height: 110px;
    }

    .brand .logo {
        width: 140px;
    }

    .hero-portfolio-text h1 {
        font-size: 24px;
    }

    .hero-portfolio-image {
        width: 95%;
    }

    .card-content {
        padding: 15px;
    }

    /* Flecha flotante en mobile pequeño */
    .scroll-hero-btn {
        bottom: 15px;
        right: 15px;
        width: 52px;
        height: 52px;
    }

    .top-bar {
        height: 80px;
    }

    .top-bar-content {
        gap: 5px;
    }

    .top-bar-text {
        font-size: 14px;
        line-height: 1.3;
    }

    .top-bar-flags img {
        width: 26px !important;
        height: 26px !important;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .brand-col .logo-footer {
        width: 140px;
    }

    /* Grid mobile pequeñas */
    .grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .card {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}