/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette updated: predominant red, black gradients, white background */
    --primary-blue: #b91c1c; /* repurposed as primary red */
    --secondary-blue: #000000; /* repurposed as black for gradients */
    --light-blue: #fde8e8; /* soft red tint for subtle backgrounds */
    --accent-red: #dc2626; /* main accent red */
    --dark-black: #111827;
    --light-gray: #f8fafc;
    --white: #ffffff;
    --text-gray: #6b7280;
    --border-gray: #e5e7eb;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-black);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-right: 2rem;
}

.logo-image {
    height: 40px;
    width: auto;
    margin-right: 0.5rem;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.25rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-black);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-black);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background-image: url('images/img1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.35), rgba(0, 0, 0, 0.55));
    z-index: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-red);
    color: var(--white);
}

.btn-primary:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-black);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Programs Section */
.programs {
    padding: 100px 0;
    background: var(--light-gray);
}

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

.program-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-red);
}

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

.program-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.program-icon i {
    font-size: 2rem;
    color: var(--white);
}

.program-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-black);
    margin-bottom: 1rem;
}

.program-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.program-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.program-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.program-link:hover {
    color: var(--accent-red);
}

.program-link i {
    transition: transform 0.3s ease;
}

.program-link:hover i {
    transform: translateX(5px);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--white);
}

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

.service-item {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: var(--light-gray);
    transform: translateY(-5px);
}

.service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-red), #ef4444);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.service-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-black);
    margin-bottom: 1rem;
}

.service-item p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Research Section */
.research {
    padding: 100px 0;
    background: var(--dark-black);
    color: var(--white);
}

.research-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.research-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.research-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.research-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.research-stat {
    text-align: center;
}

.research-stat .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
}

.research-stat .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.research-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.research-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.research-card:nth-child(3) {
    grid-column: 1 / -1;
}

.research-card i {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.research-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Seminarios Section */
.seminarios {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.seminarios h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent-red);
    font-size: 2.5rem;
    font-weight: 700;
}

.seminarios-description {
    text-align: center;
    margin-bottom: 60px;
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.seminars-grid {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
/* 2-column grid layout for Seminarios page */
.seminars-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .seminars-grid-2 {
        grid-template-columns: 1fr;
    }
}

.seminar-card {
    flex: 1 !important;
    min-width: 0 !important;
    max-width: 520px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e5e7eb;
}

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

.seminar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-red);
    z-index: 1;
}

.seminar-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

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

.seminar-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
}

.seminar-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.date-day {
    font-size: 1.4rem;
    font-weight: 700;
    color: #dc2626;
    line-height: 1;
}

.date-month {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-black);
    line-height: 1;
}

.date-year {
    font-size: 0.7rem;
    color: #6b7280;
    line-height: 1;
}

/* Seminar status badge */
.seminar-status {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #b91c1c, #ef4444);
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* Visual hint when cancelled */
.seminar-card.cancelled .seminar-image img {
    filter: grayscale(0.3) brightness(0.9);
}

.seminar-content {
    padding: 20px;
}

.seminar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 8px;
    line-height: 1.3;
}

.seminar-description {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.seminar-details {
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #4b5563;
}

.detail-item i {
    margin-right: 8px;
    color: #dc2626;
    width: 14px;
}

/* Courses list inside seminar card */
.seminar-courses {
    margin: 12px 0 18px;
}

.courses-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 10px;
}

.seminar-btn {
    display: inline-block;
    background: linear-gradient(135deg, #dc2626, #000000);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.seminar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: white;
}

/* Responsive adjustments for seminarios */
@media (max-width: 1024px) {
    .seminars-grid {
        flex-direction: column !important;
        gap: 25px;
        padding: 0 15px;
    }
    
    .seminar-card {
        flex: none !important;
    }
}

@media (max-width: 768px) {
    .seminars-grid {
        flex-direction: column !important;
        gap: 20px;
        padding: 0 15px;
    }
    
    .seminar-card {
        flex: none !important;
        margin: 0 10px;
    }
    
    .seminarios h2 {
        font-size: 2rem;
    }
    
    .seminarios-description {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .seminar-content {
        padding: 20px;
    }
}

/* Contact Section */
.news {
    padding: 80px 0;
}

.news-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr !important;
        max-width: 700px;
    }
}

.news-card {
    width: 100%;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-gray);
    position: relative;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-red);
}

.news-image {
    width: 100%;
    height: 160px;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.news-description {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 10px;
}

.news-stats {
    margin: 15px 0;
}

.news-btn {
    display: inline-block;
    background: linear-gradient(135deg, #dc2626, #000000);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.news-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: var(--white);
    text-decoration: none;
}

@media (max-width: 768px) {
    .news {
        padding: 60px 0;
    }
    .news-image img {
        height: 180px;
    }
}

.contact {
    padding: 100px 0;
    background: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-black);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-gray);
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

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

/* Form Error States */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    animation: fadeInError 0.3s ease;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Success States */
.form-group input:valid:not(:placeholder-shown),
.form-group select:valid,
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #27ae60;
    background-color: #f8fff8;
}

/* Footer */
.footer {
    background: var(--dark-black);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
    color: var(--accent-red);
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-red);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-red);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 10002;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Scrollbar styling for mobile menu */
    .nav-menu::-webkit-scrollbar {
        width: 8px;
    }

    .nav-menu::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.06);
        border-radius: 8px;
    }

    .nav-menu::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
        border-radius: 8px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: center;
    }

    .research-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .research-stats {
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .programs-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .program-card,
    .contact-form {
        padding: 1.5rem;
    }

    .research-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Programa Page Styles */
.programa-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.programa-page .page-header {
    background: linear-gradient(135deg, var(--dark-black) 0%, #000000 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.programa-page .page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.programa-page .page-header .container {
    position: relative;
    z-index: 2;
}

.programa-page .page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.programa-page .page-header h1 i {
    margin-right: 15px;
    color: #f39c12;
}

.programa-page .page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
}

.programa-intro {
    background: white;
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.programa-intro h2 {
    color: var(--dark-black);
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.programa-intro p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 20px;
}

.seminarios-section {
    padding: 40px 0 80px;
}

.seminario-block {
    margin-bottom: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seminario-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.seminario-table {
    overflow-x: auto;
}

.programa-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.programa-table thead tr {
    background: linear-gradient(135deg, var(--dark-black) 0%, #000000 100%);
    color: white;
}

.programa-table th {
    padding: 20px 25px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.programa-table .materia-header {
    width: 70%;
}

.programa-table .creditos-header {
    width: 30%;
    text-align: center;
}

.programa-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.programa-table tbody tr:hover {
    background-color: #f8f9fa;
}

.programa-table tbody tr:nth-child(even) {
    background-color: #fdfdfd;
}

.programa-table tbody tr:nth-child(even):hover {
    background-color: #f1f3f4;
}

.programa-table td {
    padding: 18px 25px;
    font-size: 1rem;
    color: #2c3e50;
    line-height: 1.6;
}

.programa-table .creditos {
    text-align: center;
    font-weight: 600;
    color: var(--accent-red);
    font-size: 1.1rem;
}

.total-section {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.total-box {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 15px;
    padding: 30px 50px;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
    transform: scale(1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.total-box:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.4);
}

.total-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.total-label {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.total-creditos {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive Design for Programa Page */
@media (max-width: 1200px) {
    .programa-page .page-header h1 {
        font-size: 2.5rem;
    }
    
    .programa-intro h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .programa-page .page-header {
        padding: 60px 0 40px;
    }
    
    .programa-page .page-header h1 {
        font-size: 2rem;
    }
    
    .programa-page .page-header p {
        font-size: 1.1rem;
    }
    
    .programa-intro {
        padding: 40px 0;
    }
    
    .programa-intro h2 {
        font-size: 1.8rem;
    }
    
    .programa-intro p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .seminarios-section {
        padding: 20px 0 60px;
    }
    
    .seminario-block {
        margin-bottom: 30px;
        border-radius: 10px;
    }
    
    .programa-table th,
    .programa-table td {
        padding: 15px 20px;
    }
    
    .programa-table th {
        font-size: 1rem;
    }
    
    .programa-table td {
        font-size: 0.9rem;
    }
    
    .total-box {
        padding: 25px 40px;
    }
    
    .total-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .total-label {
        font-size: 1.3rem;
    }
    
    .total-creditos {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .programa-page .page-header h1 {
        font-size: 1.8rem;
    }
    
    .programa-intro h2 {
        font-size: 1.6rem;
    }
    
    .programa-table th,
    .programa-table td {
        padding: 12px 15px;
    }
    
    .programa-table th {
        font-size: 0.9rem;
    }
    
    .programa-table td {
        font-size: 0.85rem;
    }
    
    .total-box {
        padding: 20px 30px;
    }
    
    .total-label {
        font-size: 1.1rem;
    }
    
    .total-creditos {
        font-size: 1.8rem;
    }
}

/* Administration Page Styles */
.admin-committee {
    padding: 80px 0;
    background: var(--light-gray);
}

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.committee-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

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

.committee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-red);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.committee-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-position {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-red);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    text-align: justify;
}

/* Estudiantes Page Styles */
.estudiantes-hero {
    background: linear-gradient(135deg, var(--accent-red), var(--secondary-blue));
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
}

.estudiantes-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.estudiantes-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.estudiantes-services {
    padding: 80px 0;
    background: var(--white);
}

.estudiantes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.estudiante-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

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

.estudiante-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.estudiante-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.estudiante-card:hover .estudiante-card-image img {
    transform: scale(1.05);
}

.estudiante-card-content {
    padding: 25px;
}

.estudiante-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
    line-height: 1.3;
}

.estudiante-card-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.estudiante-card-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-download {
    background: linear-gradient(135deg, var(--accent-red), #ef4444);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-download:hover {
    background: linear-gradient(135deg, #dc2626, var(--accent-red));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

.btn-info {
    background: transparent;
    color: var(--primary-blue);
    padding: 10px 20px;
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-info:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Responsive Design for Administration Page */
@media (max-width: 1024px) {
    .committee-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .card-image {
        height: 220px;
    }
    
    .estudiantes-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .estudiantes-hero h1 {
        font-size: 2.5rem;
    }
}

/* Sección de Sugerencias para Estudiantes */
.sugerencias-estudiantes {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.sugerencias-estudiantes h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

.sugerencias-estudiantes h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-red);
    border-radius: 2px;
}

.sugerencias-list {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.sugerencias-list ol {
    list-style: none;
    counter-reset: suggestion-counter;
    padding: 0;
    margin: 0;
}

.sugerencias-list li {
    counter-increment: suggestion-counter;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid var(--accent-red);
    position: relative;
    line-height: 1.6;
    font-size: 1.1rem;
    color: var(--dark-black);
    transition: all 0.3s ease;
}

.sugerencias-list li:hover {
    background: #fff;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sugerencias-list li::before {
    content: counter(suggestion-counter);
    position: absolute;
    left: -15px;
    top: 15px;
    background: var(--accent-red);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.sugerencias-list li:last-child {
    margin-bottom: 0;
}

/* Responsive para Sugerencias */
@media (max-width: 768px) {
    .sugerencias-estudiantes {
        padding: 60px 0;
    }
    
    .sugerencias-estudiantes h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .sugerencias-list {
        margin: 0 20px;
        padding: 25px;
    }
    
    .sugerencias-list li {
        padding: 15px;
        font-size: 1rem;
        margin-left: 15px;
    }
    
    .sugerencias-list li::before {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
        left: -12px;
        top: 12px;
    }
    
    .estudiantes-hero {
        padding: 100px 0 60px;
    }
    
    .estudiantes-hero h1 {
        font-size: 2rem;
    }
    
    .estudiantes-hero p {
        font-size: 1rem;
    }
    
    .estudiantes-services {
        padding: 60px 0;
    }
    
    .estudiantes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .estudiante-card-buttons {
        flex-direction: column;
    }
    
    .btn-download,
    .btn-info {
        justify-content: center;
        width: 100%;
    }
}

/* Sección de FAQ para Estudiantes */
.faq-estudiantes {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.faq-estudiantes h2 {
    text-align: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

.faq-estudiantes h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    border-radius: 2px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.1);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    flex: 1;
    padding-right: 20px;
    line-height: 1.4;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f39c12;
    transition: transform 0.3s ease;
    min-width: 30px;
    text-align: center;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #e74c3c;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: rgba(255, 255, 255, 0.05);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 25px 30px;
}

.faq-answer p {
    margin: 0 0 15px 0;
    line-height: 1.6;
    color: #ecf0f1;
    font-size: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ol {
    margin: 15px 0;
    padding-left: 20px;
    color: #ecf0f1;
}

.faq-answer li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.faq-answer a {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.faq-answer a:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

.faq-answer strong {
    color: #f39c12;
    font-weight: 700;
}

/* Responsive para FAQ */
@media (max-width: 768px) {
    .faq-estudiantes {
        padding: 60px 0;
    }
    
    .faq-estudiantes h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .faq-container {
        margin: 0 20px;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
        padding-right: 15px;
    }
    
    .faq-icon {
        font-size: 1.3rem;
        min-width: 25px;
    }
    
    .faq-item.active .faq-answer {
        padding: 20px;
    }
    
    .faq-answer p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .faq-estudiantes h2 {
        font-size: 1.8rem;
    }
    
    .faq-container {
        margin: 0 15px;
    }
    
    .faq-question {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
        padding-right: 0;
    }
    
    .faq-icon {
        align-self: flex-end;
        margin-top: -25px;
    }
    
    .faq-item.active .faq-answer {
        padding: 15px;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .programa-page .page-header {
        padding: 100px 0 60px;
    }
    
    .admin-committee {
        padding: 60px 0;
    }
    
    .committee-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .committee-card {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .card-image {
        height: 200px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-position {
        font-size: 0.9rem;
    }
    
    .card-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .admin-committee {
        padding: 40px 0;
    }
    
    .committee-grid {
        padding: 0 10px;
        gap: 15px;
    }
    
    .committee-card {
        max-width: 100%;
    }
    
    .card-image {
        height: 180px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .card-position {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .card-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Functions Page Styles */
.functions-content {
    padding: 80px 0;
    background: var(--light-gray);
}

.content-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
    text-align: center;
}

.section-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Maestría Page Styles */
.maestria-hero {
    background: linear-gradient(135deg, var(--accent-red) 0%, #000000 100%);
    color: white;
    text-align: center;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.maestria-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.maestria-hero .container { position: relative; z-index: 1; }
.maestria-hero h1 { font-size: 3rem; font-weight: 700; margin-bottom: 10px; }
.maestria-hero p { font-size: 1.2rem; opacity: 0.95; }

.maestria-content { padding: 80px 0; background: #f8f9fa; }
.maestria-grid { display: grid; grid-template-columns: 1fr 480px; gap: 30px; align-items: start; }

.maestria-info-box {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.maestria-info-box h2 {
    font-size: 2rem;
    color: var(--accent-red);
    margin-bottom: 20px;
    position: relative;
}

.cohort-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid var(--accent-red);
    margin-bottom: 14px;
}

.cohort-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cohort-day { color: var(--accent-red); font-weight: 600; }
.cohort-name { color: #111827; font-weight: 700; }
.cohort-course { color: #6b7280; }

.maestria-details p { color: #495057; margin: 8px 0; }
.maestria-contact h3 { color: var(--accent-red); margin: 20px 0 10px; }
.maestria-contact p { color: #495057; margin: 6px 0; }

.banner-vertical .banner-box {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    text-align: center;
}

.banner-vertical img {
    width: 100%;
    max-width: 440px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.banner-note { color: #6b7280; font-size: 0.95rem; margin-top: 10px; }

@media (max-width: 1024px) {
    .maestria-grid { grid-template-columns: 1fr 360px; }
}

@media (max-width: 768px) {
    .maestria-hero { padding: 80px 0 60px; }
    .maestria-hero h1 { font-size: 2.4rem; }
    .maestria-grid { grid-template-columns: 1fr; gap: 20px; }
    .banner-vertical img { max-width: 100%; }
}

/* Proyecto de Graduación Page Styles */
.proyecto-hero {
    background: linear-gradient(135deg, #dc2626 0%, #000000 100%);
    color: #fff;
    text-align: center;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.proyecto-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 60%);
}

.proyecto-hero .container { position: relative; z-index: 1; }
.proyecto-hero h1 { font-size: 3rem; font-weight: 700; margin-bottom: 10px; }
.proyecto-hero p { font-size: 1.2rem; opacity: 0.95; }

.proyecto-content { padding: 80px 0; background: #f8f9fa; }
.proyecto-info-box {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.proyecto-section { margin: 26px 0; }
.proyecto-section h2 { font-size: 1.8rem; color: var(--accent-red); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.proyecto-section .info-list { list-style: none; padding: 0; margin: 0; }
.proyecto-section .info-list li { background: #f8fafc; border: 1px solid #e9ecef; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; color: #374151; }

.note-callout { display: flex; gap: 10px; align-items: flex-start; background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; border-radius: 12px; padding: 12px 14px; }
.note-callout i { margin-top: 2px; }

.schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.schedule-card { background: #fef2f2; border: 1px solid #fecaca; border-left: 4px solid #dc2626; border-radius: 12px; padding: 14px; }
.schedule-card .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.schedule-card .badge { background: #dc2626; color: #fff; font-weight: 700; border-radius: 999px; padding: 6px 10px; font-size: 0.85rem; }
.schedule-card .month { color: var(--accent-red); font-weight: 600; }
.schedule-card p { color: #1f2937; }

@media (max-width: 768px) {
    .proyecto-hero { padding: 80px 0 60px; }
    .proyecto-hero h1 { font-size: 2.4rem; }
    .schedule-grid { grid-template-columns: 1fr; }
}

/* Modalities Grid */
.modalities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.modality-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.modality-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-red);
}

.modality-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.modality-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.modality-description {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    text-align: left;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.highlight-box i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.highlight-box p {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Accreditation Info */
.accreditation-info {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.accreditation-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.accreditation-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.accreditation-item i {
    font-size: 2.5rem;
    color: var(--accent-red);
    flex-shrink: 0;
    margin-top: 5px;
}

.accreditation-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.accreditation-content p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* Responsive Design for Functions Page */
@media (max-width: 768px) {
    .functions-content {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-text {
        font-size: 1rem;
    }
    
    .modalities-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 40px 0;
    }
    
    .modality-card {
        padding: 30px 20px;
    }
    
    .modality-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .modality-title {
        font-size: 1.3rem;
    }
    
    .highlight-box {
        padding: 25px 20px;
    }
    
    .highlight-box p {
        font-size: 1.1rem;
    }
    
    .accreditation-item {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .accreditation-item i {
        margin-top: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .content-section {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .modality-card {
        padding: 25px 15px;
    }
    
    .highlight-box {
        padding: 20px 15px;
    }
    
    .accreditation-item {
        padding: 20px 15px;
    }
}

/* ===== GALLERY STYLES ===== */

/* Gallery Page Header */
.gallery-header {
    background: linear-gradient(135deg, var(--accent-red) 0%, #000000 100%);
    color: white;
    text-align: center;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.gallery-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.gallery-header .container {
    position: relative;
    z-index: 2;
}

.gallery-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.gallery-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Gallery Categories */
.gallery-category {
    margin-bottom: 60px;
}

.gallery-category h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-red);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.gallery-category h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-red);
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: white;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.9), rgba(0,0,0,0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-text {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-text {
    transform: translateY(0);
}

.gallery-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.gallery-text p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--accent-red);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(0,0,0,0.8);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: all;
    margin: 0 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0,0,0,1);
    transform: scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-radius: 25px;
}

/* Responsive Gallery Styles */
@media (max-width: 1024px) {
    .gallery-category h2 {
        font-size: 2.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .gallery-item img {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .gallery-header {
        padding: 80px 0 60px;
    }
    
    .gallery-header h1 {
        font-size: 2.5rem;
    }
    
    .gallery-header p {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .gallery-section {
        padding: 60px 0;
    }
    
    .gallery-category {
        margin-bottom: 50px;
    }
    
    .gallery-category h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        padding: 0 20px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .gallery-text h3 {
        font-size: 1.3rem;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-content img {
        max-height: 70vh;
    }
    
    .lightbox-close {
        top: -40px;
        font-size: 30px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 12px 15px;
        font-size: 20px;
        margin: 0 10px;
    }
    
    .lightbox-counter {
        bottom: -40px;
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .gallery-header h1 {
        font-size: 2rem;
    }
    
    .gallery-header p {
        font-size: 1rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .gallery-text h3 {
        font-size: 1.2rem;
    }
    
    .gallery-text p {
        font-size: 0.9rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 10px 12px;
        font-size: 18px;
        margin: 0 5px;
    }
}

/* Videos Page Styles */
.videos-header {
    background: linear-gradient(135deg, var(--accent-red) 0%, #000000 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.videos-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/hero-background.svg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.videos-header .container {
    position: relative;
    z-index: 2;
}

.videos-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.videos-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Videos Section */
.videos-section {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Video Categories */
.video-category {
    margin-bottom: 60px;
}

.video-category h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-red);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.video-category h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-red);
    border-radius: 2px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.video-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 25px;
}

.video-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-red);
    margin-bottom: 10px;
}

.video-info p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Responsive Videos Styles */
@media (max-width: 1024px) {
    .videos-header h1 {
        font-size: 3rem;
    }
    
    .video-category h2 {
        font-size: 2.2rem;
    }
    
    .videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .videos-header {
        padding: 100px 0 60px;
    }
    
    .videos-header h1 {
        font-size: 2.5rem;
    }
    
    .videos-header p {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .videos-section {
        padding: 60px 0;
    }
    
    .video-category {
        margin-bottom: 50px;
    }
    
    .video-category h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .video-info {
        padding: 20px;
    }
    
    .video-info h3 {
        font-size: 1.3rem;
    }
    
    .video-info p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .videos-header h1 {
        font-size: 2rem;
    }
    
    .video-category h2 {
        font-size: 1.8rem;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }
    
    .video-info {
        padding: 15px;
    }
    
    .video-info h3 {
        font-size: 1.2rem;
    }
    
    .video-info p {
        font-size: 0.9rem;
    }
}

/* Dropdown Menu Styles - Professional Design */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 200px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2), 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.75rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.875rem 1.5rem;
    color: var(--dark-black);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    position: relative;
    background: transparent;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, var(--accent-red), var(--secondary-blue));
    color: white;
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dropdown-menu a.active {
    background: var(--accent-red);
    color: white;
    font-weight: 600;
}

.dropdown-menu a.active:hover {
    background: linear-gradient(135deg, var(--accent-red), #c41e3a);
}

/* Enhanced Navigation Styles */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    align-items: center;
}

.nav-menu > li > a {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
}

/* Mobile Responsive Dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: 8px;
        margin-top: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-top: 3px solid var(--primary-blue);
    }
    
    .dropdown-menu a {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .dropdown-menu a:hover {
        transform: none;
        padding-left: 1.75rem;
        box-shadow: none;
    }
}

/* Pagos Styles */
.pagos-hero {
    background: linear-gradient(135deg, var(--accent-red) 0%, #000000 100%);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pagos-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.pagos-hero .container {
    position: relative;
    z-index: 2;
}

.pagos-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.pagos-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.pagos-content {
    padding: 80px 0;
    background: #f8f9fa;
}

.pagos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Columna 1: Costos de ISUM */
.costos-section {
    grid-row: 1;
    grid-column: 1;
}

/* Columna 2: ISUM Internacional */
.isum-internacional {
    grid-row: 1;
    grid-column: 2;
}

/* Columna 3: Pago de Maestría */
.maestria-section {
    grid-row: 1;
    grid-column: 3;
}

/* Asegurar disposición vertical completa */
.costos-section,
.isum-internacional,
.maestria-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.costos-section:hover,
.isum-internacional:hover,
.maestria-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.costos-section h2,
.isum-internacional h2,
.maestria-section h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.costos-section h2::after,
.isum-internacional h2::after,
.maestria-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.costo-item {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid var(--accent-red);
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.costo-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.costo-item h3 {
    color: #495057;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.costo-item ul {
    list-style: none;
    padding: 0;
}

.costo-item li {
    padding: 8px 0;
    color: #6c757d;
    font-size: 1.1rem;
    position: relative;
    padding-left: 25px;
}

.costo-item li::before {
    content: '💰';
    position: absolute;
    left: 0;
    top: 8px;
}

.pago-info,
.diplomado-info,
.maestria-info,
.donacion-info {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    text-align: center;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.pago-info:hover,
.diplomado-info:hover,
.maestria-info:hover,
.donacion-info:hover {
    border-color: var(--dark-black);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.pago-info p,
.diplomado-info p,
.maestria-info p,
.donacion-info p {
    margin-bottom: 20px;
    color: #495057;
    font-size: 1.1rem;
    line-height: 1.6;
}

.diplomado-info h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 600;
}

/* PayPal Button Styling */
.pago-info form,
.diplomado-info form,
.maestria-info form,
.donacion-info form {
    margin-top: 20px;
}

.pago-info input[type="image"],
.diplomado-info input[type="image"],
.maestria-info input[type="image"],
.donacion-info input[type="image"] {
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.pago-info input[type="image"]:hover,
.diplomado-info input[type="image"]:hover,
.maestria-info input[type="image"]:hover,
.donacion-info input[type="image"]:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.nota-importante {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

.nota-importante p {
    margin: 0;
    color: #856404;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Responsive Design for Pagos */
@media (min-width: 768px) {
    .pagos-grid {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto;
        gap: 30px;
    }
    
    .costos-section {
        grid-row: 1;
        grid-column: 1;
    }
    
    .isum-internacional {
        grid-row: 1;
        grid-column: 2;
    }
    
    .maestria-section {
        grid-row: 1;
        grid-column: 3;
    }
}

@media (min-width: 1024px) {
    .pagos-grid {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto;
        gap: 30px;
    }
    
    .costos-section {
        grid-row: 1;
        grid-column: 1;
    }
    
    .isum-internacional {
        grid-row: 1;
        grid-column: 2;
    }
    
    .maestria-section {
        grid-row: 1;
        grid-column: 3;
    }
}

@media (max-width: 768px) {
    .pagos-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 20px;
    }
    
    .costos-section {
        grid-row: 1;
        grid-column: 1;
    }
    
    .isum-internacional {
        grid-row: 2;
        grid-column: 1;
    }
    
    .maestria-section {
        grid-row: 3;
        grid-column: 1;
    }
    
    .pagos-hero h1 {
        font-size: 2.5rem;
    }
    
    .pagos-hero p {
        font-size: 1.1rem;
    }
    
    .costos-section,
    .isum-internacional,
    .maestria-section {
        padding: 25px;
        margin: 0 15px;
    }
    
    .costos-section h2,
    .isum-internacional h2,
    .maestria-section h2 {
        font-size: 1.8rem;
    }
    
    .costo-item,
    .pago-info,
    .diplomado-info,
    .maestria-info,
    .donacion-info {
        padding: 20px;
    }
}

/* Sección de Seguridad PayPal */
.paypal-security {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    margin-top: 60px;
    border-top: 3px solid #000000;
}

.security-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.security-header h2 {
    color: var(--accent-red);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.security-header p {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.security-item {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.security-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.security-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.security-item h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.security-item p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.paypal-badges {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.badge-item {
    margin-bottom: 30px;
}

.paypal-logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.security-note {
    text-align: left;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-red);
}

.security-note p {
    color: #555;
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

.security-note strong {
    color: #0070ba;
}

/* Responsive para la sección de seguridad */
@media (max-width: 768px) {
    .paypal-security {
        padding: 60px 0;
        margin-top: 40px;
    }
    
    .security-header h2 {
        font-size: 2rem;
    }
    
    .security-features {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .security-item {
        padding: 25px 15px;
    }
    
    .paypal-badges {
        padding: 30px 20px;
        margin: 0 20px;
    }
    
    .security-note {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .security-header h2 {
        font-size: 1.8rem;
    }
    
    .security-header p {
        font-size: 1.1rem;
    }
    
    .security-icon {
        font-size: 2.5rem;
    }
    
    .paypal-badges {
        margin: 0 10px;
        padding: 25px 15px;
    }
}

@media (max-width: 480px) {
    .pagos-hero {
        padding: 80px 0 40px;
    }
    
    .pagos-hero h1 {
        font-size: 2rem;
    }
    
    .pagos-content {
        padding: 40px 0;
    }
    
    .costos-section,
    .isum-internacional,
    .maestria-section {
        padding: 20px;
        margin: 0 10px;
    }
}

/* Estilos para formularios y botones de PayPal */
.paypal-form {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.paypal-form:hover {
    background: #ffffff;
    border-color: #0070ba;
    box-shadow: 0 4px 15px rgba(0, 112, 186, 0.1);
}

.paypal-button {
    transition: transform 0.2s ease, filter 0.2s ease;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.paypal-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.paypal-button:active {
    transform: translateY(0);
}

.payment-note {
    margin-top: 15px;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    border-left: 4px solid var(--accent-red);
}

.payment-note p {
    margin: 0;
    color: #0070ba;
    font-weight: 500;
}

.payment-note small {
    font-size: 0.9rem;
}

/* Responsive para formularios PayPal */
@media (max-width: 768px) {
    .paypal-form {
        margin: 20px 0;
        padding: 15px;
    }
    
    .paypal-button {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .paypal-form {
        margin: 15px 0;
        padding: 12px;
    }
    
    .payment-note {
        padding: 8px;
    }
    
    .payment-note small {
        font-size: 0.85rem;
    }
}
/* ===================== Contactar Page ===================== */
.contactar-hero {
  background: #0000000f;
  padding: 40px 0;
}

.contactar-hero h1 {
  margin: 0 0 8px;
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.region-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  overflow: hidden;
}

.region-header {
  background: #000000;
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.region-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.region-header span {
  font-size: 0.9rem;
  opacity: 0.9;
}

.country-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin: 12px;
}

.country-title {
  font-weight: 700;
  font-size: 1.25rem;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #f3f4f6;
  border-radius: 6px;
}

.flag { margin-right: 8px; }

.contact-person {
  margin-top: 12px;
  font-weight: 600;
}

.contact-email { color: #2563eb; display: inline-block; margin: 6px 0; }
.contact-phone { color: #374151; }

@media (max-width: 1024px) {
  .regions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .regions-grid { grid-template-columns: 1fr; }
}
