:root {
    --primary-color: #1a4d7a;
    --secondary-color: #b8956d;
    --accent-color: #c9a961;
    --section-alt: rgba(26,77,122,0.12);
    --dark-color: #0f2e47;
    --light-color: #f5f5f5;
    --white: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    font-style: normal;
    font-weight: 300;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand .logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.navbar-brand .logo:hover {
    color: var(--secondary-color);
}

.navbar-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 60px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    background-image: url('images/fondo2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    animation: moverHorizontal 40s ease-in-out infinite alternate;
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(247, 147, 30, 0.05) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes moverHorizontal {
    0% {
    background-position: right center;
    }
    100% {
    background-position: left center;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #f5e6d3;
    color: #333333;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(245, 230, 211, 0.3);
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button:hover {
    background: #e8d4b8;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 230, 211, 0.4);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    cursor: pointer;
    animation: bounce 2s ease-in-out infinite;
}

.hero-scroll span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ===== SECTIONS GENERAL ===== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.section-header .subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-top: 20px;
}

/* ===== ORGANIZERS LOGOS SECTION ===== */
.organizers-logos-hero {
    padding: 30px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0%);
    transition: var(--transition);
}

.logo-item img:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--light-color);
    /*background-image: url('svg/about-bg.svg');*/
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 245, 245, 0.85);
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}
.about-button{
    text-align: center;
    padding: 25px 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

/* ===== DETAILS SECTION ===== */
.details {
    background: var(--white);
    background-image: url('svg/details-bg.svg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
}

.details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 0;
}

.details .container {
    position: relative;
    z-index: 1;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.detail-item {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(26, 77, 122, 0.05) 0%, rgba(255, 107, 53, 0.05) 100%);
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.detail-item:hover {
    transform: translateX(5px);
}

.detail-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.detail-item h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.detail-item p {
    color: #666;
    margin: 0.5rem 0;
}

/* ===== SPECIALTIES SECTION ===== */
.specialties {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    background-image: url('svg/specialties-bg.svg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    position: relative;
}

.specialties::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 46, 71, 0.75);
    z-index: 0;
}

.specialties .container {
    position: relative;
    z-index: 1;
}

.specialties .section-header h2 {
    color: var(--white);
}

.specialties .section-header h2::after {
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}

.specialties .subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.specialty-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.specialty-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.specialty-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.specialty-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--light-color);
    background-image: url('svg/contact-bg.svg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    text-align: center;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 245, 245, 0.92);
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #f5e6d3;
    color: #333333;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #f5e6d3;
}

.social-button:hover {
    background: #e8d4b8;
    color: #333333;
    border-color: #e8d4b8;
    transform: translateY(-3px);
}

.social-button i {
    font-size: 1.3rem;
}

.contact-info {
    margin-top: 30px;
    color: #666;
}

.contact-info p {
    margin: 0.5rem 0;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .navbar-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .features-grid,
    .details-grid,
    .specialties-grid {
        gap: 20px;
    }

    .feature-card,
    .detail-item,
    .specialty-card {
        padding: 25px;
    }

    .social-links {
        gap: 15px;
    }

    .social-button {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1rem;
    }

}

@media (max-width: 480px) {
    .navbar-menu {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link::after {
        display: none;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 1.2rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
        text-align: center;
    }

    section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .feature-card,
    .detail-item,
    .specialty-card {
        padding: 20px;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .detail-icon {
        font-size: 2rem;
    }

    .social-links {
        flex-direction: column;
        gap: 10px;
    }

    .social-button {
        width: 100%;
    }

    .about-text h2 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 0.95rem;
        text-align: left;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s ease;
}

.feature-card:nth-child(2) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(5) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(6) {
    animation-delay: 0.5s;
}

/* ===== ABOUT DETAIL SECTION ===== */
.about-detail {
    padding: 80px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* ===== COMITÉ DIRECTIVO ===== */
.committee {
    padding: 60px 0;
    background: linear-gradient(180deg, rgba(245,245,245,0.6), rgba(255,255,255,0.6));
}

.committee .section-header h2 {
    color: var(--primary-color);
}

.committee-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /*gap: 30px;*/
    gap:5px;
    align-items: start;
}

.committee-member {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.committee-member h3 {
    margin: 0 0 8px 0;
    color: var(--primary-color);
}

.committee-member .member-name {
    font-weight: 700;
    margin-bottom: 6px;
}

.committee-member .member-role,
.committee-member .member-aff {
    color: #555;
    margin-bottom: 6px;
}

.committee-member .member-email {
    margin-top: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .committee-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CRONOGRAMA (TIMELINE) ===== */
.timeline {
    padding: 60px 0;
    background: linear-gradient(180deg, rgba(250,250,250,0.6), rgba(255,255,255,0.6));
}

.timeline .section-header h2 {
    color: var(--primary-color);
}
/*
.timeline-content {
    margin-top: 20px;
    background: var(--white);
    padding: 20px 24px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    color: #333;
    line-height: 1.7;
}

.timeline-content p {
    margin: 14px 0;
}

@media (max-width: 768px) {
    .timeline-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .timeline-content {
        padding: 12px;
        font-size: 0.95rem;
    }
}*/

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
  }
  
  .timeline-container::after {
    content: '';
    position: absolute;
    width: 3px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Item */
  .timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 30px;
  }
  
  /* Alternancia */
  .timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
  }
  
  .timeline-item:nth-child(even) {
    left: 50%;
  }
  
  /* Icono */
  .timeline-icon {
    position: absolute;
    top: 25px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px var(--primary-color);
    z-index: 2;
  }
  
  .timeline-item:nth-child(odd) .timeline-icon {
    right: -20px;
  }
  
  .timeline-item:nth-child(even) .timeline-icon {
    left: -20px;
  }
  
  /* Card */
  .timeline-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s forwards;
  }
  
  /* Animación escalonada */
  .timeline-item:nth-child(1) .timeline-card { animation-delay: 0.1s; }
  .timeline-item:nth-child(2) .timeline-card { animation-delay: 0.2s; }
  .timeline-item:nth-child(3) .timeline-card { animation-delay: 0.3s; }
  .timeline-item:nth-child(4) .timeline-card { animation-delay: 0.4s; }
  
  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Hover */
  .timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  }
  
  /* Texto */
  .timeline-card h2 {
    margin: 0 0 5px;
    color: var(--primary-color);
  }
  
  .timeline-date {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    color: var(--primary-color);
  }
  
  .timeline-card p {
    margin: 0;
    color: #555;
  }
  
  /* 📱 Responsive */
  @media (max-width: 768px) {
  
    .timeline-container::after {
      left: 20px;
    }
  
    .timeline-item {
      width: 100%;
      padding-left: 50px;
      padding-right: 15px;
      text-align: left !important;
      left: 0 !important;
    }
  
    .timeline-icon {
      left: 0 !important;
      right: auto;
    }
  }

/* ===== INSTRUCTORS SECTION ===== */
.instructors {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.instructor-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 2px solid transparent;
}

.instructor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(26, 77, 122, 0.2);
    border-color: var(--secondary-color);
}

.instructor-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.instructor-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.instructor-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.instructor-bio {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.instructor-affiliation {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-style: italic;
}

/* ===== PROGRAMS SECTION ===== */
.programs {
    padding: 80px 0;
    background: var(--white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.program-card {
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-left: 5px solid var(--secondary-color);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(26, 77, 122, 0.2);
}

.program-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a7fb1 100%);
    color: var(--white);
    padding: 25px;
}

.program-header h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.program-day {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.program-content {
    padding: 25px;
    list-style: none;
}

.program-content li {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
    font-size: 0.95rem;
}

.program-content li:last-child {
    border-bottom: none;
}

.program-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== COSTS SECTION ===== */
.costs {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8f4f8 100%);
}

.costs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.cost-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.cost-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--secondary-color);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 10;
}

.cost-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.cost-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

/* Costs table styles */
.costs-table-wrap {
    margin: 30px 0;
    overflow-x: auto;
}

.costs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    background: var(--white);
}

.costs-table thead th {
    background: var(--primary-color);
    color: var(--white);
    text-align: left;
    padding: 12px 16px;
    font-weight: 700;
}

.costs-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: #333;
}

.costs-table tbody tr:nth-child(even) {
    background: #fbfbfb;
}

.costs-table small {
    font-size: 0.8rem;
    color: #f0f0f0;
}

@media (max-width: 768px) {
    .costs-table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .costs-table thead th,
    .costs-table tbody td {
        padding: 10px 8px;
        font-size: 0.95rem;
    }
}

.cost-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a7fb1 100%);
    color: var(--white);
    padding: 30px 25px;
}

.cost-header h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.cost-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.cost-price {
    padding: 30px 25px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(247, 147, 30, 0.05) 100%);
}

.cost-price .currency {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.cost-price .amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin: 5px 0;
}

.cost-price .period {
    color: #666;
    font-size: 0.9rem;
}

.cost-features {
    padding: 25px;
    list-style: none;
    flex-grow: 1;
}

.cost-features li {
    padding: 10px 0;
    color: #555;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
}

.cost-features li:last-child {
    border-bottom: none;
}

.cost-features i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.cost-features .fa-check {
    color: var(--secondary-color);
    font-weight: bold;
}

.cost-features .fa-times {
    color: #ccc;
}

.cost-button {
    margin: 0 25px 25px;
    padding: 12px 30px;
    background: #f5e6d3;
    color: #333333;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.cost-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(26, 77, 122, 0.4);
}

.cost-button.featured {
    background: #e8d4b8;
}

.cost-button.featured:hover {
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.costs-info {
    margin-top: 50px;
    text-align: center;
    color: #666;
    font-size: 0.95rem;
}

.costs-info p {
    margin: 10px 0;
}

.costs-info i {
    margin-right: 8px;
    color: var(--secondary-color);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .instructors-grid,
    .programs-grid,
    .costs-grid {
        grid-template-columns: 1fr;
    }

    .cost-card.featured {
        transform: scale(1);
    }

    .cost-card.featured:hover {
        transform: translateY(-8px);
    }

    .programs,
    .instructors,
    .costs {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .instructors-grid,
    .programs-grid,
    .costs-grid {
        gap: 20px;
    }

    .instructor-card,
    .program-card,
    .cost-card {
        padding: 20px;
    }

    .cost-price .amount {
        font-size: 2rem;
    }
}

/* Mobile overrides for About Detail image full width */
@media (max-width: 480px) {
    .about-content {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .about-image {
        width: 100%;
        margin: 0;
    }

    .about-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 6px;
        display: block;
        margin: 0;
    }

}

/* ===== PROGRAMA SECTION ===== */
.program-section {
    background: transparent;
}
.program-section .container {
    position: relative;
    z-index: 1;
}
.program-content p {
    color: #333;
    line-height: 1.7;
    margin-bottom: 12px;
}
.program-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .program-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .program-buttons .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* ===== ORGANIZERS SECTION ===== */
.organizers-section {
    background: var(--white);
}
.organizers-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 10px 0 20px 0;
}
.organizer-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    max-width: 180px;
}
.organizer-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: none;
}
.sponsors {
    text-align: center;
    color: #444;
    margin-top: 18px;
    font-size: 0.95rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    .organizer-item { max-width: 120px; }
    .sponsors { padding: 0 16px; font-size: 0.92rem; }
}

/* ===== ALTERNATE SECTION BACKGROUNDS ===== */
/* Apply alternating backgrounds (white / subtle blue) to top-level sections, skipping the hero */
body > section:not(.hero):nth-of-type(odd) {
    background: var(--white) !important;
}
body > section:not(.hero):nth-of-type(even) {
    background: var(--section-alt) !important;
}

/* Force contact section to use the alternate blue background for clarity */
section.contact {
    background: var(--section-alt) !important;
}

/* Ensure overlays or section-specific backgrounds don't hide the alternation */
section.about::before,
section.program-section::before,
section.organizers-section::before,
section.committee::before,
section.contact::before {
    background: transparent;
}


/* CV / instructor page specific styles (responsive) */
.section-header h2 {
    font-size: 2rem;
    margin: 0 0 0.25rem;
    color: #1a4d7a;
}

.cv-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 1.25rem;
    padding-bottom: 1rem;
    text-align: justify;
}

.cv-text {
    flex: 1 1 60%;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.cv-image {
    flex: 0 0 200px;
    max-width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.cv-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    display: block;
}

/* CTA button alignment */
.cv-button {
    margin-top: 1.5rem;
    text-align: center;
}

/* Small screens: stack content */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    .cv-content {
        flex-direction: column;
        gap: 1rem;
    }
    .cv-image {
        max-width: 100%;
        flex: 0 0 auto;
    }
    .cv-image img {
        max-width: 360px;
        margin: 0 auto;
    }
    .cv-text {
        font-size: 0.98rem;
    }
    .cv-button {
        text-align: center;
    }
}

/* Extra-small phones */
@media (max-width: 420px) {
    .section-header h2 { font-size: 1.25rem; }
    .cv-text { font-size: 0.95rem; }
    .cv-content { padding: 0 0.5rem; }
}

/* FIN CV / instructor page specific styles (responsive) */

/* Inicio de animacion de imagenes*/

.gallery-section {
    max-width: 900px;
    margin: 50px auto;
  }
  
  .gallery-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(var(--primary-color), 0.15);
  }
  
  /* Imágenes */
  .gallery-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  
  /* Imagen activa */
  .gallery-container img.active {
    opacity: 1;
  }

  /*CV Link*/

  .cv-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: bold;
    position: relative;
}

.cv-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.cv-link:hover::after {
    width: 100%;
}