/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Banner Principal */
header {
    margin: 0;
    padding: 40px 0;
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(17, 20, 195, 0.8), rgba(138, 2, 143, 0.8));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.flex-container {
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    gap: 2rem;
}

.cajaIzqda {
    flex: 0 0 auto;
}

.cajaIzqda img {
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.cajaIzqda img:hover {
    transform: scale(1.05);
}

.cajaDrcha {
    flex: 1;
    padding: 2rem;
    text-align: left;
}

.cajaDrcha h1 {
    font-size: 2.8em;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.cajaDrcha p {
    font-size: 1.3em;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.5;
}

.boton_Naranja {
    display: inline-block;
    background-color: #ff6600;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.boton_Naranja:hover {
    background-color: #ff8533;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .cajaDrcha {
        text-align: center;
        padding: 1rem 0;
    }

    .cajaDrcha h1 {
        font-size: 2em;
    }

    .cajaDrcha p {
        font-size: 1.1em;
    }

    .cajaIzqda img {
        max-width: 150px;
    }
}

/* Secciones Generales */
section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

/* Modalidades */
#modalidades {
    padding: 60px 20px;
}

#modalidades .modalidades-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

#modalidades .modalidad {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    margin: 0;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#modalidades .modalidad:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#modalidades .modalidad h3 {
    font-size: 1.5em;
    color: #8436d3;
    margin-bottom: 1rem;
}

#modalidades .modalidad p {
    color: #666;
    line-height: 1.6;
}

/* Cursos y Asignaturas */
.cursos-tablas {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.curso-tabla {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.curso-tabla h3 {
    background: #8436d3;
    color: white;
    padding: 1rem;
    margin: 0;
    text-align: center;
}

.curso-tabla table {
    width: 100%;
    border-collapse: collapse;
}

.curso-tabla th,
.curso-tabla td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.curso-tabla tr:last-child td {
    border-bottom: none;
}

.curso-tabla tr:hover {
    background-color: #f8f9fa;
}

@media (max-width: 768px) {
    #modalidades .modalidades-container {
        flex-direction: column;
        align-items: center;
    }

    #modalidades .modalidad {
        width: 100%;
        max-width: 100%;
    }

    .curso-tabla {
        max-width: 100%;
    }
}

/* Opiniones */
#Opiniones blockquote {
    font-style: italic;
    color: #555;
    border-left: 5px solid #ff6600;
    padding: 10px 20px;
    margin: 20px auto;
    max-width: 800px;
}

#Opiniones cite {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #333;
}

/* Inscripción */
#inscripcion .btn {
    background-color: #28a745;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

#inscripcion .btn:hover {
    background-color: #218838;
}

/* Footer */
footer {
    background-color:#8436d3;
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin-bottom: 40px;
    color:#ddd;
}

footer nav a {
    color: #ff944d;
    text-decoration:none;
    margin: 0 10px
}

footer nav a:hover {
    color:#ddd;
}

/* Contact Page Styles */
.contact-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.contact-container {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Contact Info Section */
.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: fit-content;
    min-width: 300px;
}

.contact-info h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.info-item i {
    font-size: 1.2rem;
    color: #ff6b00;
    margin-right: 1rem;
    width: 24px;
}

.social-media {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.social-media a {
    color: #333;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #ff6b00;
}

/* Contact Form Section */
.contact-form {
    width: 100%;
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ff6b00;
    outline: none;
}

.form-group textarea {
    height: 200px;
    resize: vertical;
    min-height: 200px;
}

/* Map Section */
.map-section {
    margin-top: 4rem;
}

.map-section h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-page {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* Courses Page Styles */
.courses-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.course-category {
    margin-bottom: 4rem;
}

.category-header {
    text-align: center;
    margin-bottom: 2rem;
}

.category-header i {
    font-size: 3rem;
    color: #ff6b00;
    margin-bottom: 1rem;
}

.category-header h3 {
    font-size: 2rem;
    color: #333;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.course-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-icon {
    font-size: 3rem;
    color: #ff6b00;
    margin-bottom: 1rem;
}

.course-card h4 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.course-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.course-details {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.course-details li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    color: #555;
}

.course-details li i {
    margin-right: 0.5rem;
    color: #ff6b00;
}

/* Responsive adjustments for courses page */
@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: 1fr;
    }

    .category-header h3 {
        font-size: 1.75rem;
    }

    .course-card {
        padding: 1.5rem;
    }
}

/* Formulario de Inscripción */
.form-page {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 40px 20px;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.form-container h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #ff6600, #ff944d);
    margin: 15px auto 0;
    border-radius: 2px;
}

.form-description {
    margin-bottom: 40px;
    color: #666;
    line-height: 1.6;
}

.form-description p {
    margin-bottom: 15px;
}

.form-description .highlight {
    color: #ff6600;
    font-weight: bold;
}

.inscription-form {
    display: grid;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group label i {
    color: #ff6600;
    margin-right: 8px;
}

.form-group input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
    outline: none;
}

.checkbox-group, .radio-group {
    margin: 15px 0;
}

.checkbox-options, .radio-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.checkbox-label, .radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input, .radio-label input {
    margin-right: 8px;
}

.checkbox-label span, .radio-label span {
    color: #666;
}

.file-input {
    padding: 10px 0;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.submit-btn {
    background: linear-gradient(135deg, #ff6600, #ff944d);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.submit-btn i {
    margin-right: 8px;
}

.required-fields {
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.required-fields i {
    color: #ff6600;
    margin-right: 5px;
}

@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }

    .form-container h2 {
        font-size: 2em;
    }

    .checkbox-options, .radio-options {
        flex-direction: column;
        gap: 10px;
    }

    .submit-btn {
        width: 100%;
    }
}
