body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
}

.youtube-wrapper {
    background: linear-gradient(var(--secundario) 0%, #4422898b 100%);
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.youtube-content {
    display: flex;
    max-width: 1200px;
    background-color: white;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.5);
}

.youtube-image-side {
    flex: 1;
    background-color: #f6f4fc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.youtube-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.youtube-text-side {
    font-family: "tipografia2", Arial, Helvetica, sans-serif;
    flex: 1;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #461e60;
}

.youtube-subtitle {
    font-family: "tipografia3";
    color: var(--primario);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    text-shadow: 1px 1px #8fd6cf !important;
}

.decorador-2 {
    font-size: 2.1rem;
    font-weight: bolder;
    color: var(--primario);
    line-height: 1;
}
.youtube-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #461e60;
    text-align: center;
}

.youtube-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature {
    text-align: center;
}

.feature img {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 1rem;
    color: #461e60;
}

.youtube-buttons {
    display: flex;
    gap: 1rem;
}

.btn-visit {
    background-color: #461e60;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-visit:hover {
    background-color: var(--secundarioBis);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ========== 0 – 575 px · smartphones ========== */
@media (max-width: 575.98px) {
    .youtube-wrapper {
        padding: 3rem 1rem; /* menos relleno */
    }

    /* Stacking vertical */
    .youtube-content {
        flex-direction: column;
    }
    .youtube-image-side,
    .youtube-text-side {
        flex: unset;
        width: 100%;
    }

    /* Imagen más pequeña y centrada */
    .youtube-img {
        width: 95%;
        max-width: 320px;
        margin: -25px auto;
    }

    /* Tipografías más compactas */
    .youtube-subtitle {
        font-size: 1.2rem;
    }
    .youtube-title {
        font-size: 1.7rem;
    }
    .feature p {
        font-size: 1rem;
    }

    /* Features en columna */
    .youtube-features {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    /* Botón full-width */
    .btn-visit {
        font-size: 1.1rem;
        padding: 0.7rem 1.2rem;
        width: auto;
        max-width: 260px;
        margin: 0 auto;
    }
}

/* ========== 576 – 991 px · tablet / teléfonos grandes ========== */
@media (min-width: 576px) and (max-width: 991.98px) {
    .youtube-content {
        flex-direction: column; /* aún una sola columna */
    }

    .youtube-img {
        width: 90%;
        max-width: 320px;
        margin: 0 auto;
    }

    .youtube-features {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem 3rem;
    }
    .feature {
        flex: 0 0 45%;
    } /* dos por fila en tablet */
    .feature p {
        font-size: 1rem;
    }

    .btn-visit {
        font-size: 1.25rem;
        padding: 0.8rem 1.6rem;
        margin: 0 auto;
    }
}

/* ========== ≥ 992 px · escritorio (se mantiene tu diseño) ========== */
/* No se añaden reglas: tu CSS base ya resuelve el layout desktop      */
