/* Sección principal */
.plataformas-section {
    background: #000;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente */
    align-items: center;     /* Centra horizontalmente */
    min-height: 100vh;      /* Hace que la sección ocupe toda la altura de la pantalla */
}

.plataformas-content {
    width: 90vw;
}

.plataformas-title {
    font-size: 3rem; 
    line-height: 1.2;
    margin-bottom: 25px;
    color: #fff;
}

.plataformas-subtitle {
    margin: 0 auto;
    margin-bottom: 30px;
    font-size: 2.5rem; 
    max-width: 50%;
    font-weight: 400;
    color: #ccc;
}

.plataformas-text {
    font-size: 20px;
    font-weight: 300;
    max-width: 50%; 
    margin: 0 auto 50px auto;
    line-height: 1.6;
    color: #ddd;
    text-align: center;
}

.plataformas-grid {
    display: flex;
    justify-content: center;
    gap: 40px; 
}

.plataforma-item {
    width: 17.5vw;
    height: 17.5vw;
    background: #000000;
    border-radius: 3vw;
    border: 0.2vw solid #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.plataforma-item:hover {
    transform: translateY(-5px);
    border: 1px solid #888;
}

.plataforma-icon {
    width: 30%; 
    margin-bottom: 15px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.plataforma-desc {
    max-width: 80%;
    font-size: 1.5rem;
    font-weight: 400;
    color: #f0f0f0;
    text-align: center;
    line-height: 1.4;
}

/* =======================================
   2. iPAD (768px - 1024px)
   ======================================= */
@media (min-width: 768px) and (max-width: 1024px) {
    .plataformas-section {
        min-height: auto; 
        padding: 40px 20px; 
    }

    .plataformas-title {
        font-size: 2.6rem; 
    }

    .plataformas-subtitle {
        font-size: 2rem;
        max-width: 60%;
    }

    .plataformas-text {
        font-size: 18px;
        max-width: 70%;
        margin-bottom: 40px;
    }

    .plataformas-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
    }

    /* Ajuste para evitar desbordamiento en iPad */
    .plataforma-item {
        width: 25vw;
        min-height: 25vw; /* Altura mínima para mantener forma "cuadrada" al inicio */
        height: auto;     /* Permite crecer si el texto es más largo */
        border-radius: 4vw; 
        border: 0.2vw solid #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 8px rgba(0,0,0,0.5);
        transition: all 0.3s ease;
        margin: 0 auto;
    }

    .plataforma-item:hover {
        transform: translateY(-5px);
        border: 1px solid #888;
    }

    .plataforma-icon {
        width: 25%; 
        margin-bottom: 10px;
        filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
    }

    .plataforma-desc {
        font-size: 1rem;
        font-weight: 400;
        color: #f0f0f0;
        text-align: center;
        line-height: 1.4;
        max-width: 80%;
    }
}


/* =======================================
   3. MÓVIL (hasta 767px)
   ======================================= */
@media (max-width: 767px) {
    .plataformas-section {
        min-height: auto; 
        padding: 40px 20px;
    }

    .plataformas-title {
        font-size: 2rem;
    }

    .plataformas-subtitle {
        font-size: 1.8rem;
        max-width: 80%;
    }

    .plataformas-text {
        font-size: 16px;
        max-width: 80%;
        margin-bottom: 30px;
    }

    .plataformas-grid {
        flex-direction: column;
        gap: 30px;
    }

    .plataforma-item {
        width: 70vw;  /* Se ajusta al ancho del móvil */
        height: auto;
        border-radius: 6vw; 
        margin: 0 auto;
    }

    .plataforma-icon {
        width: 20%;
        margin-bottom: 10px;
    }

    .plataforma-desc {
        font-size: 1.2rem;
        max-width: 90%;
    }
}

/* Para pantallas muy pequeñas (por ejemplo, max-width: 480px) */
@media (max-width: 480px) {
    .plataformas-title {
        font-size: 1.8rem;
    }

    .plataformas-subtitle {
        font-size: 1.4rem;
    }

    .plataformas-text {
        font-size: 14px;
    }

    .plataforma-item {
        width: 80vw; /* Ajusta el ancho de los rectángulos en móviles pequeños */
        height: auto; /* Deja que la altura se ajuste automáticamente */
        border-radius: 6vw; /* Esquinas más redondeadas */
        padding: 20px; /* Añade relleno interno para separar el contenido del borde */
        margin: 0 auto; /* Centra los rectángulos */
    }

    .plataforma-icon {
        width: 25%; /* Mantén los íconos pequeños */
        margin-bottom: 25px; /* Aumenta la separación entre el ícono y la descripción */
    }

    .plataforma-desc {
        font-size: 1rem; /* Tamaño de texto reducido para móviles pequeños */
        max-width: 90%; /* Limita el ancho del texto para un mejor diseño */
    }
}
