* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #eaeaea;
    font-family: system-ui, sans-serif;
}

/* ==== CONTENEDOR DEL CARRUSEL ==== */
.container {
    position: relative;
    margin: 100px auto;
    max-width: 1000px;
    width: 90%;
    height: 70vh;
    background: #f5f5f5;
    box-shadow: 0 10px 30px #dbdbdb;
    overflow: hidden;
    border-radius: 12px;
}

.container .slide .item {
    width: 180px;
    height: 180px;
    position: absolute;
    top: 70%;
    transform: translate(0, -50%);
    border-radius: 20px;
    box-shadow: 0 15px 30px #505050;
    background-position: center;
    background-size: cover;
    display: inline-block;
    transition: 0.5s;
}

/* Items principales */
.slide .item:nth-child(1),
.slide .item:nth-child(2) {
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}

/* Posiciones relativas miniaturas */
.slide .item:nth-child(3) { left: 50%; }
.slide .item:nth-child(4) { left: calc(50% + 220px); }
.slide .item:nth-child(5) { left: calc(50% + 440px); }
.slide .item:nth-child(n + 6) {
    left: calc(50% + 660px);
    opacity: 0;
}

/* ==== CONTENIDO PRINCIPAL ==== */
.item .content {
    display: none;
    position: absolute;
    left: 40px;
    max-width: 60%;
    text-align: left;
    color: #fff;
    top: 50%;
    transform: translateY(-50%);
    word-wrap: break-word;
}

.slide .item:nth-child(2) .content {
    display: block;
}

.content .name {
    font-size: 40px;
    font-weight: bold;
    opacity: 0;
    animation: animate 1s ease-in-out forwards;
}

.content .des {
    margin-top: 10px;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 16px;
    opacity: 0;
    animation: animate 1s ease-in-out 0.3s forwards;
}

.content button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    background: #004080;
    color: #fff;
    font-weight: bold;
    opacity: 0;
    animation: animate 1s ease-in-out 0.6s forwards;
    transition: 0.3s;
}

.content button:hover {
    background: #0066cc;
}

@keyframes animate {
    from {
        opacity: 0;
        transform: translateY(100px);
        filter: blur(33px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* ==== BOTÓN RETROCEDER ==== */
.control-prev {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.control-prev button {
    background: rgba(0,0,0,0.6);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.control-prev button:hover {
    background: rgba(0,0,0,0.85);
}

/* ==== HEADER ==== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    color: #fff;
    background-image: url(./Marmolado1.jpg);
    background-size: cover;
    background-position: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 22px;
    color: #fff;
    gap: 10px;
}

.logo img {
    height: 30px;
    width: auto;
}

/* ==== FOOTER ==== */
footer {
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.95rem;
    margin-top: 40px;
    background-image: url(./Marmolado1.jpg);
    background-size: cover;
    background-position: center;
}

.footer-content {
    max-width: 1000px;
    margin: auto;
}

.footer-content p {
    margin: 5px 0;
}

.footer-content a {
    color: #ffdd57;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

.socials {
    margin-top: 15px;
}

.socials a {
    margin: 0 8px;
    color: #fff;
    font-size: 18px;
    transition: 0.3s;
}

.socials a:hover {
    color: #ffdd57;
}

/* ==== TEXTO EN MINIATURAS ==== */
.slide .item:nth-child(n+3)::after {
    content: attr(data-title);
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 12px;
    text-align: center;
    padding: 5px 8px;
    border-radius: 5px;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
    .container {
        height: 60vh;
    }
    .item .content {
        max-width: 80%;
    }
    .content .name {
        font-size: 28px;
    }
    .content .des {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        height: 55vh;
    }
    .item .content {
        left: 20px;
        top: auto;
        bottom: 20px;
        transform: none;
        width: 90%;
        max-width: 90%;
    }
    .content .name {
        font-size: 20px;
    }
    .content .des {
        font-size: 13px;
    }
}