/* estilos.css - Archivo unificado de estilos para IFD */

/* Variables de colores y fuentes */
:root {
    --primary-color: #0a2c5c;
    --secondary-color: #d32f2f;
    --accent-color: #1e88e5;
    --light-color: #ffffff;
    --dark-color: #000000;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --text-color: #333333;
    --text-light: #666666;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.15);
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f5f8ff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--light-color);
    border: 2px solid #25D366;
}

.btn-whatsapp:hover {
    background-color: transparent;
    color: #25D366;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--text-light);
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 1.1rem;
}

.section-padding {
    padding: 100px 0;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--medium-gray), transparent);
    margin: 0 auto;
    max-width: 1200px;
}

/* Header y navegación */
header {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    max-width: 300px;
}

.logo-img {
    height: 80px;
    width: auto;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img img {
    height: 200%;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    display: block;
}

.logo-text h1 {
    font-size: 1.6rem;
    margin: 0;
    color: var(--primary-color);
    line-height: 1.1;
    font-weight: 800;
}

.logo-text p {
    font-size: 1.0rem;
    color: var(--text-light);
    margin: 5px 0 0 0;
    font-weight: 800;
    letter-spacing: 1.3px;
    line-height: 1.1;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 15px;
    position: relative;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 5px;
    display: block;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    background: none;
    border: none;
    padding: 5px;
}

/* Banner Fijo para páginas */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--light-color);
    padding: 100px 0;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.page-banner:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.page-banner .banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--light-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-banner p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Banner específico para cada página */
.contacto-page .page-banner:before {
    background-image: url('https://images.unsplash.com/photo-1587560699334-cc4ff634909a?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
}

.capacitaciones-page .page-banner:before {
    background-image: url('https://images.unsplash.com/photo-1549060279-7e168fce7090?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
}

.staff-page .page-banner:before {
    background-image: url('../img/logo/staff.jpg');
}

.noticias-page .page-banner:before {
    background-image: url('https://images.unsplash.com/photo-1461896836934-ffe607ba8211?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
}

/* SLIDER CSS PARA 5 IMÁGENES */
.hero-slider-css {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slides-container {
    display: flex;
    width: 500%;
    height: 100%;
    animation: slide-auto 25s infinite;
}

.slide-css {
    width: 20%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.slide-css:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 44, 92, 0.8), rgba(10, 44, 92, 0.4));
}

@keyframes slide-auto {
    0% { transform: translateX(0%); }
    18% { transform: translateX(0%); }
    20% { transform: translateX(-20%); }
    38% { transform: translateX(-20%); }
    40% { transform: translateX(-40%); }
    58% { transform: translateX(-40%); }
    60% { transform: translateX(-60%); }
    78% { transform: translateX(-60%); }
    80% { transform: translateX(-80%); }

    98% { transform: translateX(-80%); }
    100% { transform: translateX(0%); }
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 3.5rem;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

/* Quiénes Somos - Diseño con imagen a la izquierda */
.about-section, .mission-section, .vision-section {
    background-color: var(--light-color);
    border-radius: 15px;
    margin: 30px auto;
    box-shadow: var(--shadow);
    max-width: 1200px;
    position: relative;
}

.about-container, .mission-container, .vision-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    height: 500px;
    transition: transform 0.5s ease;
}

.about-image:hover {
    transform: scale(1.02);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    padding-right: 20px;
}

.about-intro h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.about-intro h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
}

.about-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 20px;
}

/* Misión y Visión Cards */
.mission-card, .vision-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--shadow-heavy);
    transition: transform 0.3s ease;
}

.mission-card {
    border-left: 5px solid var(--secondary-color);
}

.vision-card {
    border-left: 5px solid var(--accent-color);
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: var(--light-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mission-card .card-icon {
    background: linear-gradient(135deg, var(--secondary-color), #ff6b6b);
}

.vision-card .card-icon {
    background: linear-gradient(135deg, var(--accent-color), #64b5f6);
}

.mission-card h3, .vision-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Capacitaciones IFD - Index */
.trainings-section-index {
    background-color: var(--light-color);
    border-radius: 15px;
    margin: 30px auto;
    box-shadow: var(--shadow);
    max-width: 1200px;
    position: relative;
}

.trainings-grid-index {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.training-card-index {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 5px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.training-card-index:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-top-color: var(--accent-color);
}

.training-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2.5rem;
    color: var(--light-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 5px 15px rgba(10, 44, 92, 0.3);
}

.training-card-index h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.training-card-index p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

/* Alianzas y Logos */
.alliances-section {
    background-color: var(--light-color);
    border-radius: 15px;
    margin: 30px auto;
    box-shadow: var(--shadow);
    max-width: 1200px;
    position: relative;
}

.alliances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.alliance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    padding: 20px;
    border-radius: 10px;
    background-color: #fcfcfc;
    border: 1px solid var(--medium-gray);
    height: 150px;
    width: 100%;
}

.alliance-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

.alliance-logo {
    max-width: 180px;
    max-height: 80px;
    margin-bottom: 15px;
    object-fit: contain;
}

.alliance-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

/* Capacitaciones Page */
.trainings-section {
    background-color: var(--light-color);
    border-radius: 15px;
    margin: 30px auto;
    box-shadow: var(--shadow);
    max-width: 1200px;
    position: relative;
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 25px;
    background-color: var(--light-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 1px solid var(--medium-gray);
    color: var(--text-color);
}

.category-btn.active, .category-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

.trainings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.training-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--medium-gray);
}

.training-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-color);
}

.training-header {
    padding: 25px 25px 0;
}

.training-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.training-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    min-height: 70px;
}

.training-img {
    height: 200px;
    background-color: var(--medium-gray);
    background-size: cover;
    background-position: center;
    margin: 20px 25px 0;
    border-radius: 8px;
}

.training-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.training-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-color);
    flex-grow: 1;
}

.training-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.training-features {
    list-style: none;
    margin-bottom: 20px;
}

.training-features li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
}

.training-features i {
    color: var(--accent-color);
    margin-right: 10px;
    margin-top: 3px;
    font-size: 1rem;
}

.training-footer {
    margin-top: auto;
}

/* Info Box */
.info-box {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid var(--accent-color);
}

.info-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Testimonios */
.testimonials-section {
    background-color: var(--light-gray);
    border-radius: 15px;
    padding: 60px 0;
    margin-top: 60px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--medium-gray);
    margin-right: 15px;
    background-size: cover;
    background-position: center;
}

.author-info h5 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--light-color);
    border-radius: 15px;
    padding: 80px 40px;
    text-align: center;
    margin-top: 60px;
}

.cta-section h2 {
    color: var(--light-color);
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

/* Contacto Page */
.contact-section {
    background-color: var(--light-color);
    border-radius: 15px;
    margin: 30px auto;
    box-shadow: var(--shadow);
    max-width: 1200px;
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--medium-gray);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background-color: #fcfcfc;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 44, 92, 0.1);
    background-color: var(--light-color);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.contact-info {
    padding-top: 20px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-features {
    list-style: none;
    margin-bottom: 40px;
}

.contact-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    font-size: 1.05rem;
}

.contact-features i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 3px;
    font-size: 1.2rem;
}

.method-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.method-card h4 {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.method-card h4 i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.whatsapp-direct {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(37, 211, 102, 0.05));
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
    border-left: 4px solid #25D366;
}

.whatsapp-direct h4 {
    color: #25D366;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.whatsapp-direct h4 i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.map-section {
    margin-top: 60px;
    background-color: var(--light-color);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    height: 400px;
    background-color: var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Staff Page */
.staff-section {
    background-color: var(--light-color);
    border-radius: 15px;
    margin: 30px auto;
    box-shadow: var(--shadow);
    max-width: 1200px;
    position: relative;
}

.director-section {
    margin-bottom: 60px;
}

.director-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

.director-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    height: 400px;
}

.director-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.director-img:hover img {
    transform: scale(1.05);
}

.director-info h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.director-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--medium-gray);
}

.director-bio {
    margin-bottom: 30px;
}

.director-bio p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.director-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.team-section {
    margin-top: 80px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--medium-gray);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-color);
}

.member-img {
    height: 250px;
    background-color: var(--medium-gray);
    background-size: cover;
    background-position: center;
}

.member-content {
    padding: 25px;
}

.member-name {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.member-role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.member-bio {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 120px;
}

.member-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.expertise-tag {
    background-color: var(--light-gray);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-color);
}

.member-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Modal de Currículum */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: var(--light-color);
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    max-width: 900px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-heavy);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    z-index: 10;
}

.close-modal:hover {
    color: var(--secondary-color);
}

.modal-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 20px;
}

.modal-profile-img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.modal-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-profile-info {
    flex: 1;
}

.modal-profile-info h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.modal-profile-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
}

.modal-section h4 i {
    margin-right: 10px;
}

.curriculum-list {
    list-style: none;
    padding-left: 0;
}

.curriculum-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.curriculum-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.experience-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--light-gray);
}

.experience-year {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 600;
}

.experience-role {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.experience-place {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Áreas de Especialización */
.expertise-section {
    margin-top: 80px;
    background-color: var(--light-gray);
    border-radius: 15px;
    padding: 50px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.expertise-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.expertise-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--accent-color);
}

.expertise-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

/* Noticias/Blog Page */
.blog-banner {
    background: linear-gradient(135deg, rgba(10, 44, 92, 0.9), rgba(30, 136, 229, 0.9)), url('https://images.unsplash.com/photo-1461896836934-ffe607ba8211?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: var(--light-color);
    padding: 120px 0 80px;
    text-align: center;
    margin-bottom: 50px;
}

.blog-banner h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--light-color);
}

.blog-banner p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.95;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.blog-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--medium-gray);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.blog-img {
    height: 220px;
    background-color: var(--medium-gray);
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.blog-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.blog-date i {
    margin-right: 8px;
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: var(--accent-color);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

.blog-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.blog-sidebar {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: fit-content;
    border: 1px solid var(--medium-gray);
}

.sidebar-widget {
    margin-bottom: 40px;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.categories-list, .recent-posts {
    list-style: none;
}

.categories-list li, .recent-posts li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--medium-gray);
}

.categories-list a, .recent-posts a {
    color: var(--text-color);
    transition: color 0.3s ease;
    display: block;
}

.categories-list a:hover, .recent-posts a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.categories-list span {
    float: right;
    background-color: var(--light-gray);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--light-color);
    padding: 80px 0 30px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo h3 {
    color: var(--light-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-links h4, .footer-contact h4 {
    color: var(--light-color);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4:after, .footer-contact h4:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--light-color);
    bottom: 0;
    left: 0;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--light-color);
    padding-left: 5px;
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Modal Detalles Curso */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: var(--light-color);
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-heavy);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    z-index: 10;
}

.close-modal:hover {
    color: var(--secondary-color);
}

.modal-header {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 20px;
}

.modal-body {
    margin-bottom: 30px;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.program-list {
    list-style: none;
    padding-left: 20px;
}

.program-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.program-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--light-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 10px 0;
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .about-container, .mission-container, .vision-container,
    .contact-container, .director-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    .trainings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trainings-grid-index {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-section, .mission-section, .vision-section,
    .trainings-section, .trainings-section-index,
    .alliances-section, .contact-section, .staff-section {
        margin: 20px;
        width: calc(100% - 40px);
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .page-banner {
        padding: 70px 0;
        margin-bottom: 30px;
    }
    
    .page-banner h1 {
        font-size: 2.2rem;
    }
    
    .hero-slider-css {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 2.2rem;
    }
    
    .about-image, .mission-image, .vision-image {
        height: 350px;
    }
    
    .trainings-grid, .trainings-grid-index {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .category-filters {
        gap: 10px;
    }
    
    .category-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .training-header, .training-content {
        padding: 20px;
    }
    
    .training-img {
        margin: 20px 20px 0;
    }
    
    .modal-content {
        padding: 30px 20px;
        margin: 10% auto;
    }
    
    .cta-section {
        padding: 60px 20px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .director-img {
        height: 300px;
    }
    
    .director-highlights {
        grid-template-columns: 1fr;
    }
    
    .expertise-section {
        padding: 30px;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-banner {
        padding: 100px 0 60px;
    }
    
    .blog-banner h1 {
        font-size: 2rem;
    }
    
    .blog-banner p {
        font-size: 1.1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .alliances-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text p {
        font-size: 1.55rem;
    }
}