body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
    height: 400px;
}

.carousel-track {
    display: flex;
    will-change: transform;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-img {
    width: 100vw;
    height: 400px;
    object-fit: cover;
    flex: 0 0 100vw;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0 15px;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
    user-select: none;
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s;
}

.carousel-dot.active {
    opacity: 1;
    background: #5f5f5f;
}

.feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 50px;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-feature {
    flex: 1;
}

.content-feature h1 {
    font-size: 38px;
    color: #000000;
    margin-bottom: 20px;
}

.content-feature p {
    font-size: 16px;
    color: #000000;
    line-height: 1.6;
    margin-bottom: 30px;
}

.more-info {
    background-color: #000000;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.more-info:hover {
    background-color: #474747;
}

.img-feature {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.img-feature img {
    max-width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.cards {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 50px 80px 50px;
}

.card {
    flex: 1;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}


.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.card-title {
    font-size: 22px;
    color: #000;
    margin: 0 0 30px 0;
}

.card-link {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: #585858;
}

.instagram-feed {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px 80px 50px;
}

.instagram-feed h2 {
    font-size: 32px;
    color: #000;
    margin: 0 0 10px 0;
}

.instagram-feed>a {
    display: inline-block;
    color: #c13584;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.instagram-feed>a:hover {
    color: #833ab4;
}

.instagram-feed [class^="elfsight-app-"] {
    margin: 0 auto;
}

.elfsight-app-6ecfeb0e-05af-40f7-a56c-1132a1e4cdd4 [class*="edit"],
.elfsight-app-6ecfeb0e-05af-40f7-a56c-1132a1e4cdd4 [class*="Edit"],
.elfsight-app-6ecfeb0e-05af-40f7-a56c-1132a1e4cdd4 button[aria-label*="edit" i],
.elfsight-widget-edit-button,
.eapps-widget-toolbar,
div[class*="eapps"][class*="edit"],
div[style*="position: absolute"][style*="z-index: 999999"],
/* Ocultar badge "Free Instagram Feed Widget" */
.elfsight-app-6ecfeb0e-05af-40f7-a56c-1132a1e4cdd4 [class*="badge"],
.elfsight-app-6ecfeb0e-05af-40f7-a56c-1132a1e4cdd4 [class*="free"],
.elfsight-app-6ecfeb0e-05af-40f7-a56c-1132a1e4cdd4 [class*="branding"],
.elfsight-app-6ecfeb0e-05af-40f7-a56c-1132a1e4cdd4 a[href*="elfsight"],
.eapps-instagram-feed-badge,
.eapps-link,
.eapps-widget-badge,
div[class*="eapps"][class*="badge"],
a[title*="Instagram Feed Widget"],
a[href*="elfsight.com"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


@media screen and (max-width: 768px) {
    .carousel {
        width: 100%;
        max-width: 100%;
        height: 250px;
        /* Añadido: reduce altura en móviles */
    }

    .carousel-img {
        width: 100%;
        flex: 0 0 100%;
        height: 250px;
        /* Añadido: coincide con el contenedor */
    }

    .carousel-btn {
        font-size: 1.5rem;
        /* Añadido: botones más pequeños */
        padding: 0 10px;
    }

    .carousel-btn.prev {
        left: 10px;
        /* Añadido: más cerca del borde */
    }

    .carousel-btn.next {
        right: 10px;
        /* Añadido: más cerca del borde */
    }

    .carousel-dots {
        bottom: 10px;
        /* Añadido: ajusta posición */
    }

    .feature {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
        text-align: center;
    }

    .content-feature h1 {
        font-size: 26px;
    }

    .content-feature p {
        font-size: 14px;
        /* Añadido: texto más pequeño */
    }

    .img-feature {
        justify-content: center;
    }

    .cards {
        flex-direction: column;
        padding: 0 20px 60px 20px;
        margin: 20px auto;
    }

    .instagram-feed {
        padding: 0 20px 60px 20px;
    }

    .instagram-feed h2 {
        font-size: 24px;
    }
}

@media screen and (max-width: 768px) {
    .carousel {
        width: 100%;
        max-width: 100%;
        height: 250px;
        /* Añadido: reduce altura en móviles */
    }

    .carousel-img {
        width: 100%;
        flex: 0 0 100%;
        height: 250px;
        /* Añadido: coincide con el contenedor */
    }

    .carousel-btn {
        font-size: 1.5rem;
        /* Añadido: botones más pequeños */
        padding: 0 10px;
    }

    .carousel-btn.prev {
        left: 10px;
        /* Añadido: más cerca del borde */
    }

    .carousel-btn.next {
        right: 10px;
        /* Añadido: más cerca del borde */
    }

    .carousel-dots {
        bottom: 10px;
        /* Añadido: ajusta posición */
    }

    .feature {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
        text-align: center;
    }

    .content-feature h1 {
        font-size: 26px;
    }

    .content-feature p {
        font-size: 14px;
        /* Añadido: texto más pequeño */
    }

    .img-feature {
        justify-content: center;
    }

    .cards {
        flex-direction: column;
        padding: 0 20px 60px 20px;
        margin: 20px auto;
    }

    .instagram-feed {
        padding: 0 20px 60px 20px;
    }

    .instagram-feed h2 {
        font-size: 24px;
    }
}