.prescriptions-container {
    width: 80%;
    margin: 0 auto;
    padding: 60px 20px;
}

.prescriptions-header {
    background-color: white;
    padding: 60px 20px;
    text-align: center;
}

.prescriptions-header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: left;
}

.prescriptions-header-img {
    width: 200px;
    height: 200px;
}

.prescriptions-title {
    font-size: 2.8rem;
    margin: 0;
    color: #25476a;
}

.prescriptions-description {
    font-size: 1.2rem;
    color: #151515;
    margin-top: 10px;
}

.prescriptions-divider {
    margin: 30px auto;
    width: 80px;
    height: 4px;
    background-color: #25476a;
    border: none;
}

.prescriptions-subtitle {
    font-size: 1.8rem;
    text-align: center;
    margin-top: 20px;
    color: black;
}

/* Alternating cards */
.prescriptions-alternating-section {
    padding: 40px 20px;
    background-color: #fff;
}

.prescriptions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.prescriptions-row.reverse {
    flex-direction: row-reverse;
}

.prescriptions-image {
    flex: 1 1 40%;
    text-align: center;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%; /* ayuda a igualar el alto si las tarjetas son más grandes */
}

.prescriptions-image img {
    max-width: 80%;
    max-height: 80%;
    width: 80%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    max-height: 300px; /* Limitar la altura máxima de la imagen */
}

.prescriptions-features {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
}

.prescriptions-card {
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    background-color: #fff;
    transition: all 0.4s ease;
}

.prescriptions-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.3);
}

.prescriptions-card-title {
    font-size: 1.4em;
    color: #25476a;
    margin-bottom: 8px;
}

.prescriptions-card-description {
    font-size: 1em;
    color: #555;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    
    .prescriptions-header-content {
        flex-direction: column;
    }

    .prescriptions-row, .prescriptions-row.reverse {
        flex-direction: column;
    }

    .prescriptions-image, .prescriptions-features {
        flex: 1 1 100%;
        text-align: center;
    }

    .prescriptions-image {
        order: -1; /* <-- SIEMPRE irá primero */
    }

    .prescriptions-features {
        order: 0;
    }
}