/* --- Global Reset RTL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Configuración base RTL */
.rtl {
    direction: rtl;
    text-align: right;
}

.rtl * {
    direction: rtl;
}

/* Fuentes árabe optimizadas */
.arabic-lang {
    font-family: 'Tahoma', 'Arial Unicode MS', 'Lucida Sans Unicode', sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

.arabic-lang h1, .arabic-lang h2, .arabic-lang h3, .arabic-lang h4, .arabic-lang h5, .arabic-lang h6 {
    font-family: 'Tahoma', 'Arial Unicode MS', 'Lucida Sans Unicode', sans-serif;
    font-weight: bold;
    line-height: 1.6;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

/* --- Top Navigation RTL --- */
.rtl .main-menu {
    background-color: #0c243c;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.rtl .main-menu ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}

.rtl .main-menu li {
    margin: 0 15px;
}

.rtl .main-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s;
}

.rtl .main-menu a:hover {
    color: #a3d5ff;
}

/* --- Hero Section RTL --- */
.rtl .hero {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('../images/backgrounds/campo-de-pade1-FINAL.gif') center/cover no-repeat, #0c243c;
    color: #ffffff;
    padding: 20px;
}

.rtl .hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.rtl .hero h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.rtl .hero p {
    font-size: 1.4rem;
    margin-bottom: 30px;
}

.rtl .btn {
    padding: 14px 36px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s, color 0.3s;
}

.rtl .btn:hover {
    background-color: #ffffff;
    color: #0c243c;
}

/* --- About Section RTL --- */
.rtl .about-content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.rtl .about-image {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
}

.rtl .about-text {
    text-align: center;
}

/* --- Programs Section RTL --- */
.rtl .programs-section {
    background-color: #0c243c;
    color: #ffffff;
    padding: 70px 20px;
    text-align: center;
}

.rtl .programs-label {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 40px;
    display: inline-block;
}

.rtl .program-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.rtl .program-card {
    flex: 1 1 300px;
    max-width: 350px;
    background-color: transparent;
    border: 2px solid #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s;
}

.rtl .program-card:hover {
    transform: translateY(-5px);
}

.rtl .program-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.rtl .program-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #0c243c;
    background-color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
}

.rtl .program-features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    text-align: right;
}

.rtl .program-features li {
    margin-bottom: 10px;
    padding-right: 22px;
    padding-left: 0;
    position: relative;
}

.rtl .program-features li::before {
    content: "•";
    position: absolute;
    right: 0;
    left: auto;
    top: 0;
    color: #ffffff;
    font-size: 1.2rem;
}

.rtl .text-btn {
    padding: 12px 28px;
    border: 2px solid #ffffff;
    border-radius: 30px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.rtl .text-btn:hover {
    background-color: #ffffff;
    color: #0c243c;
}

/* --- Payment Modal RTL --- */
.rtl .payment-screen {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.rtl .payment-content {
    background-color: #0c243c;
    color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.rtl .payment-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.rtl .payment-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.rtl .back-button {
    padding: 12px 28px;
    background-color: #4caf50;
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    transition: background-color 0.3s;
}

.rtl .back-button:hover {
    background-color: #45a049;
}

/* --- Mobile Responsiveness RTL --- */
@media (max-width: 600px) {
    .rtl .hero h1 {
        font-size: 2.2rem;
    }
    .rtl .hero h2 {
        font-size: 1.8rem;
    }
    .rtl .section h2,
    .rtl .programs-label {
        font-size: 1.8rem;
    }
    
    .rtl .about-content {
        flex-direction: column;
        text-align: center;
    }
}

.rtl .about-text .btn {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold; /* texto en negrita */
    padding: 12px 24px;
    background-color: #0c243c !important; /* azul marino, con !important por si hay conflicto */
    color: #ffffff !important; /* letras blancas */
    border: 2px solid #0c243c !important; /* borde azul marino */
    text-decoration: none;
    border-radius: 8px; /* esquinas redondeadas */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.rtl .about-text .btn:hover {
    background-color: #ffffff !important; /* fondo blanco al pasar el ratón */
    color: #0c243c !important; /* texto azul marino */
    border: 2px solid #0c243c !important; /* borde azul marino */
}

/* Centrar el contenido del section #about */
.rtl #about {
    text-align: center;
}

.rtl #about h2,
.rtl #about p {
    margin-left: auto;
    margin-right: auto;
}