/* ==========================================
   1. CONFIGURACIÓN GENERAL Y FUENTES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(rgba(244, 246, 249, 0.4), rgba(244, 246, 249, 0.4)), 
                url('img/fondo-arte.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333333;
    line-height: 1.6;
    padding-bottom: 160px;
}

/* ==========================================
   2. ENCABEZADO PRINCIPAL (HEADER)
   ========================================== */
.main-header {
    background:
        linear-gradient(90deg, rgba(0, 15, 40, 0.55), rgba(0, 15, 40, 0.35)),
        url("img/fondo-header.jpg") center center / cover no-repeat;
    padding: 15px 40px;
    border-bottom: 3px solid #002d72;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contenedores de Logos */
.logo-left img {
    height: 200px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-right img {
    height: 200px;
    width: auto;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.logo-left img:hover, 
.logo-right img:hover {
    transform: scale(1.05);
}

/* Estilo del Texto Central */
.header-text {
    text-align: center;
    flex-grow: 1;
}

.header-text h1 {
    font-size: 2.2rem;
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.75);
}

.header-text h2 {
    font-size: 2rem;
    color: #ffd700;
    margin-top: 5px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.75);
}

.header-text .slogan {
    font-size: 1.1rem;
    color: #f0f0f0;
    font-style: italic;
    margin-top: 8px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* ==========================================
   3. MENÚ DE NAVEGACIÓN (NAV)
   ========================================== */
.main-nav {
    background-color: #0d3b66;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.main-nav ul li {
    flex: 1;
    text-align: center;
}

.main-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav ul li:last-child a {
    border-right: none;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    background-color: #0056b3;
    color: #ffffff;
}

/* ==========================================
   4. CONTENIDO PRINCIPAL (MAIN)
   ========================================== */
.content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 400px;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    color: #003366;
    margin-top: 20px;
    margin-bottom: 30px;
    text-shadow: 
        -2px -2px 0 #ffffff,  
         2px -2px 0 #ffffff,
        -2px  2px 0 #ffffff,
         2px  2px 0 #ffffff,
         0px  0px 10px rgba(255, 255, 255, 0.9);
}

/* ==========================================
   5. PIE DE PÁGINA (FOOTER) - ESTÁTICO / FIJO
   ========================================== */
.main-footer {
    background-color: #001a3d;
    color: #ffffff;
    padding: 5px 20px;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.15);
}

.main-footer .quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 12px;
    color: #e0e0e0;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    height: 55px;
    width: auto;
}

.footer-text {
    text-align: left;
}

.footer-text h3 {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.footer-text p {
    font-size: 0.85rem;
    color: #b0bec5;
}

/* ==========================================
   6. CONTROL DE VISIBILIDAD DE PESTAÑAS
   ========================================== */
.tab-content {
    display: none;
    flex-direction: column;
    width: 100%;
    clear: both;
    background-color: transparent !important;
    padding: 10px 35px 35px 35px;
    box-shadow: none !important;
}

.tab-content.active {
    display: flex !important;
    animation: fadeIn 0.4s ease-in-out;
}

.tab-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #000000;
    text-align: justify;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0);
    margin: 0 auto;
    max-width: 900px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   7. DISEÑO PREMIUM INICIO
   ========================================== */
#inicio.tab-content {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0;
    width: 100%;
}

.hero-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.hero-container {
    max-width: 800px;
    width: 100%;
    min-height: 300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 25px;
    margin-top: -45px;
    padding: 20px 20px 40px 20px;
}

.hero-title {
    font-size: 2.8rem;
    color: #002d72;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.25;
    margin: 0;
    text-shadow: 2px 2px 5px rgba(255, 255, 255, 1),
                -2px -2px 5px rgba(255, 255, 255, 1),
                 0px 0px 8px rgba(255, 255, 255, 0.9);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: #111111;
    max-width: 680px;
    line-height: 1.6;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 4px rgba(255, 255, 255, 1),
                -1px -1px 4px rgba(255, 255, 255, 1),
                 0px 0px 6px rgba(255, 255, 255, 0.9);
}

.hero-container .btn-primary {
    background-color: #0d3b66;
    color: #ffffff !important;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 14px 45px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(13, 59, 102, 0.35);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    margin-top: 5px;
}

.hero-container .btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.45);
}

.hero-container .btn-primary:active {
    transform: translateY(-1px);
}

/* ==========================================
   8. TARJETAS DE INFORMACIÓN (GLASSMORPHISM)
   ========================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    margin: 30px auto;
    padding: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 40px rgba(13, 59, 102, 0.12);
}

.feature-icon-wrapper {
    background-color: #fde8c5;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 1.8rem;
}

.feature-card h3 {
    font-size: 1.35rem;
    color: #002d72;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
}

.feature-card p {
    font-size: 0.98rem;
    color: #333333;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   9. INTERFAZ DE EXPOSICIONES
   ========================================== */
.exposiciones-container {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-width: 1200px;
    width: 90%;
    margin: -40px auto 40px auto;
}

.exposiciones-title {
    text-align: center;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.4);
}

.cursos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.curso-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.curso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.curso-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.curso-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.curso-card h3 {
    font-size: 1.3rem;
    color: #111111;
    margin: 5px 0 10px 0;
    font-weight: 700;
}

.curso-card p {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.4;
    margin: 0 0 15px 0;
    flex-grow: 1;
}

.btn-ver-galeria {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #cccccc;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-ver-galeria:hover {
    background-color: #f5f5f5;
    border-color: #999999;
}

/* Bordes de colores */
.border-blue   { border: 3px solid #5ba4e5; }
.border-red    { border: 3px solid #c94c4c; }
.border-yellow { border: 3px solid #ecc244; }
.border-purple { border: 3px solid #b35697; }
.border-teal   { border: 3px solid #4ca1a3; }
.border-gold   { border: 3px solid #dfb15b; }

/* ==========================================
   10. GALERÍA DE ESTUDIANTES (SUBVIEW)
   ========================================== */
.galeria-subview {
    animation: fadeIn 0.5s ease-in-out;
}

.header-galeria {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-volver {
    background: #003366;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-volver:hover {
    background: #ffd700;
    color: #003366;
    border-color: #ffd700;
    transform: scale(1.05);
}

.obras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.obra-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}

.obra-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px 0 rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
}

.obra-img-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.obra-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.obra-card:hover .obra-img {
    transform: scale(1.1);
}

.obra-card h4 {
    color: #ffd700;
    font-size: 1.15rem;
    margin: 10px 0 5px 0;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

.obra-card p {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

/* ==========================================
   11. MODAL LIGHTBOX
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 20px;
    max-width: 650px; /* Reducido de 850px a 500px para evitar imágenes gigantes */
    max-height: 90vh;  /* Limita la altura total al 85% de la pantalla */
    width: 90%;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s, transform 0.2s;
}

.modal-close-btn:hover {
    color: #ffd700;
    transform: scale(1.15);
}

.modal-image-container {
    width: 100%;
    max-height: 65vh; /* Ajustado para adaptarse dinámicamente a la pantalla */
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal-img {
    max-width: 100%;
    max-height: 65vh;
    width: auto;
    height: auto;
    object-fit: contain; /* Garantiza que la foto no se distorsione ni se salga del cuadro */
    display: block;
}

.modal-details h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin: 5px 0;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.modal-details p {
    color: #ffffff;
    font-size: 1rem;
    margin: 3px 0 0 0;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

@keyframes scaleUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================
   12. SECCIÓN DE CONTACTO Y MAPA
   ========================================== */
.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

.formulario-box, 
.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    color: #ffffff;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.formulario-box h3, 
.info-card h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.form-subtitle {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.form-group input, 
.form-group textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
    color: #cccccc;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.btn-enviar {
    background: #003366;
    color: #ffffff;
    padding: 14px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: none;
    margin-top: 10px;
}

.btn-enviar:hover {
    background: #ffd700;
    color: #003366;
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-enviar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.contacto-estado {
    margin-top: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.contacto-estado.exito {
    background: rgba(46, 139, 87, 0.2);
    border: 1px solid #2e8b57;
    color: #2e8b57;
}

.contacto-estado.error {
    background: rgba(201, 76, 76, 0.15);
    border: 1px solid #c94c4c;
    color: #c94c4c;
}

.info-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card p {
    margin: 8px 0;
    font-size: 1rem;
    line-height: 1.5;
}

.colab-card {
    border-left: 5px solid #ffd700;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    color: #ffffff;
    text-shadow: none;
    transition: transform 0.2s, opacity 0.2s;
}

.social-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.social-btn.fb { background: #1877f2; }
.social-btn.ig { background: #e1306c; }
.social-btn.yt { background: #ff0000; }

.map-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}

.map-static-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.map-wrapper:hover .map-static-img {
    transform: scale(1.05);
}

.btn-abrir-maps {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffffff;
    color: #003366;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-abrir-maps:hover {
    background: #003366;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
}

/* ==========================================
   13. SECCIÓN CUALIDADES Y REFLEXIÓN
   ========================================== */
.cualidades-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.cualidades-title {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 30px;
    font-weight: bold;
}

.cualidades-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cualidad-item {
    background: rgba(255, 255, 255, 0.85);
    border-left: 5px solid #1e3a8a;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cualidades-reflexion-box {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 30px 40px;
    max-width: 850px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cualidades-reflexion-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.cualidades-reflexion-box p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #1f2937;
    font-style: italic;
    margin: 0;
    font-weight: 500;
}

/* ==========================================
   14. DISEÑO RESPONSIVO (OPTIMIZACIÓN PARA CELULARES)
   ========================================== */
@media (max-width: 900px) {
    .contacto-wrapper {
        grid-template-columns: 1fr;
    }

    .cursos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Header */
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px 10px;
    }

    .logo-left img, 
    .logo-right img {
        height: 60px;
        width: auto;
    }

    .header-text h1 {
        font-size: 1.6rem;
    }

    .header-text h2 {
        font-size: 1.1rem;
    }

    .slogan {
        font-size: 0.85rem;
    }

    /* Navegación */
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .main-nav ul li {
        width: 100%;
        text-align: center;
    }

    .main-nav ul li a {
        display: block;
        padding: 12px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.9rem;
    }

    /* Hero */
    #inicio.tab-content {
        min-height: calc(100vh - 420px);
    }

    .hero-title {
        font-size: 1.8rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .hero-container .btn-primary {
        font-size: 1.05rem;
        padding: 12px 35px;
    }

    /* Cuadrículas y Contenido */
    .features-grid {
        grid-template-columns: 1fr !important;
        padding: 15px;
    }

    .cualidades-grid {
        flex-direction: column;
        align-items: center;
    }

    .cualidad-item {
        width: 100%;
        justify-content: center;
    }

    .cualidades-reflexion-box {
        padding: 20px;
        margin: 10px;
    }

    .cualidades-reflexion-box p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-text {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .cursos-grid {
        grid-template-columns: 1fr !important;
        padding: 10px;
    }
}
/* ==========================================
   12. BOTON DE COMPRA POR OBRA
   ========================================== */
.obra-precio {
    font-weight: 700;
    color: #2e8b57;
    margin: 0 0 10px 0;
}

.btn-comprar-obra {
    background-color: #2e8b57;
    color: #ffffff;
    border: 1px solid #2e8b57;
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 5px;
}

.btn-comprar-obra:hover {
    background-color: #256e46;
    border-color: #256e46;
}
