* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

.header-bar {
    background: linear-gradient(90deg, #f4a726 0%, #e89b1f 100%);
    height: 15px;
    width: 100%;
}

.recursos-header {
    text-align: center;
    padding: 60px 20px 40px;
    background-color: #fff;
}

.recursos-header h1 {
    color: #4CAF50;
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.recursos-header p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #555;
    font-size: 1.05em;
}

/* Secciones de recursos */
.resource-section {
    display: flex;
    align-items: center;
    margin: 5rem 2rem;
    min-height: 60vh;
}

.resource-section:nth-child(odd) {
    flex-direction: row;
}

.resource-section:nth-child(even) {
    flex-direction: row-reverse;
}

.resource-content {
    flex-basis: 70%; /* Adjusted to make space for extra carousel */
    background: linear-gradient(135deg, #ffd966 0%, #f4a726 100%);
    padding: 60px;
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

.resource-section:nth-child(odd) .resource-content {
    padding-right: 175px; /* Half of circle width */
}

.resource-section:nth-child(even) .resource-content {
    padding-left: 175px; /* Half of circle width */
}

.resource-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.3;
}

.resource-content p {
    line-height: 1.8;
    margin-bottom: 30px;
    color: #2c2c2c;
    font-size: 1.05em;
}

.resource-visual {
    flex-basis: 0; /* Visual part is for positioning the circle */
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.icon-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    border: 10px solid #fff;
}

.resource-section:nth-child(odd) .resource-visual {
    margin-left: -175px;
}

.resource-section:nth-child(even) .resource-visual {
    margin-right: -175px;
}

/* Extra Carousel */
.extra-carousel {
    flex-basis: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.extra-carousel .carousel-container {
    width: 250px;
    height: 200px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
}

/* Carrusel General */
.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 16px 40px;
    background-color: #1a1a1a;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.05em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn:hover {
    background-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Responsive */
@media (max-width: 992px) {
    .resource-section {
        flex-direction: column !important;
        margin: 2rem;
        min-height: auto;
    }

    .resource-content {
        flex-basis: auto;
        width: 100%;
        padding: 40px !important;
        text-align: center;
    }

    .resource-visual {
        flex-basis: auto;
        width: 100%;
        margin: 0 !important;
        margin-top: -150px !important;
        margin-bottom: 2rem;
    }

    .extra-carousel {
        display: none; /* Hide extra carousel on smaller screens for simplicity */
    }
}

@media (max-width: 768px) {
    .recursos-header h1 {
        font-size: 2em;
    }

    .resource-content h2 {
        font-size: 1.8em;
    }

    .icon-circle {
        width: 250px;
        height: 250px;
    }

    .resource-visual {
        margin-top: -125px !important;
    }
}