@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Texto gradiente */
.gradient-text {
    background: linear-gradient(45deg, #00aa9e, #0073e6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    background: linear-gradient(45deg, #001529, #003153);
}

/* HEADER ACTUALIZADO - CENTRADO PERFECTO */
header {
    width: 100%;
    height: 50px;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
}

.nav-group {
    display: flex;
    gap: 10px;
    flex: 1;
}

.nav-group:first-child {
    justify-content: flex-end;
}

.nav-group:last-child {
    justify-content: flex-start;
}

.menu-logo {
    margin: 0 25px;
}

.menu-logo img {
    height: 35px;
    width: auto;
}

header nav a {
    color: #fff;
    padding: 6px 14px;
    font-size: 15px;
    transition: 0.3s;
    text-decoration: none;
    border-radius: 3px;
    white-space: nowrap;
}

header nav a.active,
header nav a:hover {
    background: #0073e6;
}

/* CAROUSEL (ESTILOS ORIGINALES MANTENIDOS) */
.carousel {
    width: 100vw;
    height: calc(100vh - 50px);
    margin-top: 50px;
    overflow: hidden;
    position: relative;
}

.carousel .list .item {
    width: 180px;
    height: 250px;
    position: absolute;
    top: 80%;
    transform: translateY(-70%);
    left: 70%;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    background-position: 50% 50%;
    background-size: cover;
    z-index: 100;
    transition: 1s;
}

.carousel .list .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.carousel .list .item:nth-child(1),
.carousel .list .item:nth-child(2) {
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.carousel .list .item:nth-child(3) { left: 67%; }
.carousel .list .item:nth-child(4) { left: calc(67% + 200px); }
.carousel .list .item:nth-child(5) { left: calc(67% + 400px); }
.carousel .list .item:nth-child(6) { left: calc(67% + 600px); }
.carousel .list .item:nth-child(n+7) { left: calc(67% + 800px); opacity: 0; }

.list .item .content {
    position: absolute;
    top: 50%;
    left: 100px;
    transform: translateY(-50%);
    width: 400px;
    color: #fff;
    display: none;
    z-index: 2;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 15px;
}

.logo-empresa {
    max-width: 90px;
    margin-bottom: 15px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.logo-empresa img {
    width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    display: block;
}

.list .item:nth-child(2) .content { display: block; }

.content .title {
    font-size: 32px;
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.2;
    opacity: 0;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    margin: 10px 0;
}

.item[style*="drogueria.png"] .title { color: #00aa9e !important; }
.item[style*="espardila.png"] .title { color: #0097d5 !important; }
.item[style*="amorpedagogico.jpg"] .title { color: #9345d4 !important; }
.item[style*="inmobiliaria.png"] .title { color: #ffb162 !important; }
.item[style*="okun.png"] .title { color: #007ebb !important; }
.item[style*="sonrisa.png"] .title { color: #ffffff !important; }
.item[style*="grupoespardila.jpg"] .title { color: #0097d5 !important; }

.content .name {
    font-size: 24px;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    opacity: 0;
    animation: animate 1s ease-in-out 0.6s 1 forwards;
    margin: 10px 0;
}

.content .des {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0;
    animation: animate 1s ease-in-out 0.9s 1 forwards;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(2px);
    margin: 15px 0;
}

.content .btn {
    opacity: 0;
    animation: animate 1s ease-in-out 1.2s 1 forwards;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-top, .btn-bottom {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.content .btn button {
    padding: 6px 12px;
    border: 2px solid #fff;
    cursor: pointer;
    font-size: 12px;
    border-radius: 12px;
    background: transparent;
    color: #ffffff;
    transition: all 0.3s ease;
}

.content .btn button:hover {
    background: rgba(255,255,255,0.1);
}

@keyframes animate {
    from {
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }
    to {
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

.arrows {
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.arrows button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0073e6;
    color: #fff;
    border: none;
    font-size: 16px;
    transition: 0.5s;
    cursor: pointer;
}

.arrows button:hover {
    background: #fff;
    color: #000;
}

.carousel .timeRunning {
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 4px;
    background-color: #0073e6;
    animation: runningTime 7s linear 1 forwards;
}

@keyframes runningTime {
    from { width: 0%; }
    to { width: 100%; }
}

/* RESPONSIVE ACTUALIZADO */
@media (max-width: 1200px) {
    .carousel .list .item {
        width: 160px;
        height: 220px;
        left: 65%;
    }
}

@media (max-width: 999px) {
    .list .item .content {
        left: 5%;
        width: 90%;
        padding: 20px;
    }
    .content .title { font-size: 28px; }
    .content .name { font-size: 20px; }
    .content .des { font-size: 13px; }
    .logo-empresa { max-width: 80px; }
    .arrows { right: 45%; }
}

@media (max-width: 768px) {
    header {
        height: 40px;
        padding: 0 15px;
    }
    nav {
        gap: 10px;
        padding: 0 10px;
    }
    .menu-logo img {
        height: 30px;
    }
    header nav a {
        font-size: 14px;
        padding: 5px 10px;
    }
    .carousel {
        height: calc(100vh - 40px);
        margin-top: 40px;
    }
    .carousel .list .item {
        width: 140px;
        height: 190px;
        left: 60%;
    }
    .list .item .content {
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 85%;
    }
    .content .title { font-size: 24px; }
    .content .name { font-size: 18px; }
    .logo-empresa { max-width: 70px; }
    .arrows {
        top: 85%;
        right: 50%;
        width: 250px;
    }
}

@media (max-width: 480px) {
    header {
        height: 35px;
        padding: 0 10px;
    }
    .nav-group {
        gap: 5px;
    }
    header nav a {
        font-size: 13px;
        padding: 4px 8px;
    }
    .menu-logo img {
        height: 25px;
    }
    .carousel {
        height: calc(100vh - 35px);
        margin-top: 35px;
    }
    .carousel .list .item {
        width: 120px;
        height: 160px;
        left: 55%;
    }
    .content .title { font-size: 20px; }
    .content .name { font-size: 16px; }
    .content .des { font-size: 12px; }
    .logo-empresa { max-width: 60px; }
    .logo-empresa img { max-height: 40px; }
    .arrows { width: 200px; }
    .arrows button {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .carousel .list .item {
        width: 100px;
        height: 140px;
        left: 50%;
    }
    .content .title { font-size: 18px; }
    .content .btn button {
        font-size: 10px;
        padding: 4px 8px;
    }
}