* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f8fafc;
    color: #0b2b4b;
    line-height: 1.6;
}

/* Paleta de colores moderna */
:root {
    --primary: #0b2b4b;
    --secondary: #1e4a6d;
    --accent: #F29B1F;
    --accent-light: #F7C57A;
    --light: #f0f4f8;
    --white: #ffffff;
    --gray: #64748b;
    --gradient: linear-gradient(135deg, #0b2b4b 0%, #1e4a6d 100%);
    --card-border: rgba(11, 43, 75, 0.2);
    --card-shadow: 0 14px 36px rgba(11, 43, 75, 0.18);
    --card-shadow-hover: 0 24px 55px rgba(11, 43, 75, 0.28);
    --card-accent: #F29B1F;
    --card-sheen: transparent;
    --card-base: linear-gradient(180deg, #0f2f4f 0%, #143a60 100%);
    --card-text: #e6f0fb;
}

/* Navegación sticky */
.navbar {
    background: rgba(11, 43, 75, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(11, 43, 75, 0.35);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar .logo img:last-child {
    filter: brightness(0) invert(1);
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin-left: auto;
    margin-right: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 6px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: black;
    border-radius: 2px;
    transition: background 0.3s;
}

.menu-btn:hover span {
    background: var(--accent);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(11, 43, 75, 0.35);
    min-width: 200px;
    overflow: hidden;
    z-index: 1001;
}

.dropdown-menu.open {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.85rem 1.5rem;
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
}

.menu-wrapper {
    position: relative;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(135deg, rgba(11, 43, 75, 0.7) 0%, rgba(30, 74, 109, 0.6) 60%, rgba(11, 43, 75, 0.55) 100%), url('img/_DSC1536.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 4rem 5%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M0 0 L100 100 M100 0 L0 100" stroke="white" stroke-width="1"/></svg>');
    background-size: 30px 30px;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

/* Galeria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-card {
    background: var(--card-base);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.gallery-card img {
    width: 100%;
    height: 620px;
    object-fit: cover;
    display: block;
    background: transparent;
}

@media (max-width: 768px) {
    .gallery-card img {
        height: 420px;
    }
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-date {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent);
}

.hero-location {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-theme {
    font-size: 1.2rem;
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin: 2rem 0;
    backdrop-filter: none;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 0.5rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.btn-icon svg {
    width: 100%;
    height: 100%;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Secciones generales */
.section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Seccion con imagen de fondo */
.image-section {
    position: relative;
    color: var(--white);
    padding: 6rem 5%;
    max-width: 100%;
    margin: 0;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
}

.image-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 43, 75, 0.78) 0%, rgba(30, 74, 109, 0.7) 60%, rgba(11, 43, 75, 0.62) 100%);
    z-index: 0;
}

.image-section > * {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.image-section .section-title,
.image-section .section-title::after,
.image-section .motivation-text,
.image-section p,
.image-section h3,
.image-section h4 {
    color: var(--white);
}

.image-section .section-title::after {
    background: var(--accent);
}

.image-section .topic-card {
    background: var(--card-base);
    color: var(--card-text);
    border: 1px solid var(--card-border);
    border-top: 4px solid var(--card-accent);
    box-shadow: var(--card-shadow);
}

.image-section .feature-card,
.image-section .feature-card h3,
.image-section .feature-card p {
    color: var(--card-text);
}

.image-section .topic-card h4 {
    color: var(--card-text);
}

.image-motivacion {
    background-image: url('img/_DSC1567.jpg');
}

.image-tematicas {
    background-image: url('img/_DSC1590.jpg');
}

.image-organizadores {
    background-image: url('img/_DSC1599.jpg');
}

.image-organizadores .comite-columna {
    background: var(--card-base);
    color: var(--card-text);
    border-top: 4px solid var(--card-accent);
}

.image-organizadores .comite-header {
    background: rgba(11, 43, 75, 0.65);
}

.image-organizadores .comite-item {
    color: var(--card-text);
}

.image-organizadores .organizers img {
    background: rgba(255, 255, 255, 0.92);
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
}

.image-organizadores .comites-container {
    justify-content: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.image-organizadores {
    text-align: center;
}

.image-organizadores .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.image-organizadores .organizers {
    justify-content: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .image-section {
        background-attachment: scroll;
    }
}



@media (max-width: 1024px) {
    .image-section {
        background-attachment: scroll;
    }
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* Motivación con tarjetas */
.motivation-text {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 800px;
    text-align: justify;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card-base);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    border-top: 4px solid var(--card-accent);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    color: var(--card-text);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(11, 43, 75, 0.35);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: transparent;
    border: none;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-icon img {
    width: 42px;
    height: 42px;
    display: block;
    filter: brightness(0) invert(1);
}

.feature-card h3 {
    color: var(--card-text);
    margin-bottom: 1rem;
}

/* Call for Papers */
.call-papers {
    background: transparent;
    border-radius: 0;
    margin-top: 4rem;
    box-shadow: none;
    text-align: center;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 2.5rem auto 0;
    max-width: 1000px;
    padding: 3rem 0 0;
    z-index: 0;
}

.timeline::before,
.timeline::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 10px;
    border-radius: 999px;
    transform: translateX(-50%);
    pointer-events: none;
}

.timeline::before {
    bottom: 0;
    background: var(--card-accent);
    z-index: 0;
}

.timeline::after {
    height: var(--timeline-progress, 0%);
    background: var(--card-accent);
    box-shadow: none;
    z-index: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 4.5rem;
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: start;
    gap: 1.5rem;
    row-gap: 0;
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 2;
}

.timeline-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-marker {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    background: var(--primary);
    border: none;
    box-shadow: none;
    margin: 0.3rem auto 0;
    z-index: 5;
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    align-self: start;
    position: relative;
}

.timeline-item:nth-child(1) .timeline-marker,
.timeline-item:nth-child(3) .timeline-marker,
.timeline-item:nth-child(5) .timeline-marker {
    transform: translateY(10px);
}

.timeline-content {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    color: var(--primary);
    width: 100%;
    align-self: start;
    transform: translateY(-24px);
}


.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 1;
    align-self: start;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 3;
    align-self: start;
    text-align: left;
}

.timeline-item:nth-child(2) .timeline-content,
.timeline-item:nth-child(4) .timeline-content {
    transform: translateY(-4px);
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--primary);
    display: inline-block;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--card-accent);
}

.timeline-content p {
    margin: 0;
    color: var(--primary);
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 0;
    }

    .timeline::before,
    .timeline::after {
        left: 18px;
        transform: none;
    }

    .timeline-item {
        grid-template-columns: 28px 1fr;
        gap: 1rem;
    }

    .timeline-marker {
        grid-column: 1;
        margin: 0.1rem 0 0;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        grid-column: 2;
        text-align: left;
    }
}

.call-papers .section-title {
    text-align: left;
}

.timeline-title {
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    color: var(--primary);
    margin: 2.5rem 0 1rem;
    position: relative;
    padding-bottom: 0.6rem;
    text-align: left;
}

.timeline-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--card-accent);
    border-radius: 2px;
}

.inscripciones {
    margin-top: 3rem;
}

.inscripciones .timeline-title {
    font-size: clamp(2.0rem, 3.2vw, 2.1rem);
}

.inscripciones-cta {
    margin-top: 2rem;
    text-align: center;
}

.inscripciones-cta .btn {
    background: var(--primary);
    color: var(--white);
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.inscripciones-btn {
    position: relative;
}

.btn-icon-right {
    font-size: 1.1rem;
    margin-left: 0.25rem;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 43, 75, 0.65);
    backdrop-filter: blur(4px);
    transition: opacity 0.35s ease;
}

.modal-card {
    position: relative;
    z-index: 1;
    max-width: 960px;
    width: 100%;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(11, 43, 75, 0.35);
    display: flex;
    transform: scale(0.92) translateY(25px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.open .modal-card {
    transform: scale(1) translateY(0);
}

.modal-media {
    flex: 0 0 45%;
    overflow: hidden;
    position: relative;
    min-height: 400px;
}

.modal-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-body {
    flex: 1;
    padding: 2.5rem;
    color: var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-body h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.modal-body p {
    margin-bottom: 0;
    color: var(--gray);
    font-size: 0.95rem;
}

.modal-divider {
    height: 1px;
    background: rgba(11, 43, 75, 0.12);
    margin: 1.25rem 0;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(11, 43, 75, 0.8);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(11, 43, 75, 0.95);
}

.modal-open {
    overflow: hidden;
}

/* Formulario de inscripción */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--primary);
    font-size: 0.85rem;
}

.form-group input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 2px solid rgba(11, 43, 75, 0.12);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--white);
    color: var(--primary);
}

.form-group input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(242, 155, 31, 0.12);
}

#modalPayment h3 {
    color: var(--primary);
}

#modalPayment p {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .modal-card {
        flex-direction: column;
    }

    .modal-media {
        flex: 0 0 200px;
        min-height: 200px;
    }

    .modal-media img {
        position: relative;
        height: 200px;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

.inscripciones-note {
    margin-top: 0.75rem;
    color: var(--primary);
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.fees-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 2rem;
}

.fees-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
    padding: 0.9rem 0.4rem;
}

.fees-tag {
    background: var(--primary);
    color: var(--white);
    padding: 1.2rem 1.8rem;
    border-radius: 0;
    font-weight: 700;
    min-width: 220px;
    font-size: 1.15rem;
}

.fees-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.4rem;
}

@media (max-width: 900px) {
    .fees-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .fees-grid {
        grid-template-columns: 1fr;
    }
}

.call-papers .motivation-text {
    text-align: justify;
    text-align-last: auto;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

#bienvenida .motivation-text {
    text-align: justify;
    text-align-last: auto;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.call-papers .section-title::after {
    left: 0;
    transform: none;
}


/* Áreas temáticas */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.topic-card {
    background: var(--card-base);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    border-top: 4px solid var(--card-accent);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
    color: var(--card-text);
}

.topic-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
    border-color: rgba(11, 43, 75, 0.35);
}

.topic-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--card-accent);
    opacity: 0.6;
    line-height: 1;
}

/* Programa preview */
.program-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.program-full .program-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* Descargas */
.paper-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 2rem auto 0;
    align-items: center;
}

.paper-buttons .btn:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
}

.qr-callout {
    margin: 2.5rem auto 0;
    text-align: center;
}

.qr-callout img {
    width: 220px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 25px rgba(11, 43, 75, 0.2);
    background: var(--white);
    padding: 0.5rem;
}

.qr-caption {
    margin-top: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .paper-buttons {
        grid-template-columns: 1fr;
    }
}

/* Video Facultad de Ingenieria */
.video-section {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem;
    align-items: start;
}

.video-item .section-title {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}

.video-item .section-title::after {
    left: 0;
    transform: none;
}

@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.video-wrapper {
    max-width: 960px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 12px 30px rgba(11, 43, 75, 0.18);
    aspect-ratio: 16 / 9;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.day-card {
    background: var(--card-base);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--card-border);
    border-top: 4px solid var(--card-accent);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    color: var(--card-text);
}

.day-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(11, 43, 75, 0.35);
}

.day-card h3 {
    color: var(--card-text);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.day-card p {
    color: var(--card-text);
    margin: 1rem 0;
}

/* Organizadores */
.organizers {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    margin: 3rem 0;
}

.org-logo {
    width: 150px;
    height: 80px;
    background: var(--light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary);
}

.location-btn {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: color 0.3s, background 0.2s;
}

.location-btn:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.location-btn svg {
    width: 24px;
    height: 24px;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.map-container iframe {
    width: 100%;
    height: 420px;
    border: none;
    display: block;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 3rem 5%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer a:hover {
    opacity: 1;
}

.footer-content p {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    color: var(--white);
    opacity: 0.85;
}

.footer-icon svg {
    width: 100%;
    height: 100%;
}

/* Estilo consistente con la página sochedi2026.uct.cl */
.comites-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.comite-columna {
    width: 280px;  /* Tamaño fijo */
    min-width: 280px;
    max-width: 280px;
    background: var(--card-base);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
    border-top: 4px solid var(--card-accent);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    color: var(--card-text);
}

.comite-columna:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
    border-color: rgba(11, 43, 75, 0.35);
}

.comite-header {
    background: rgba(11, 43, 75, 0.65);
    padding: 0.8rem 0;
    padding-left: 25px;  /* Padding izquierdo de 25px */
    border-bottom: 2px solid #1e40af; /* azul institucional */
  }
  
.comite-header h3 {
    margin: 0;
    font-size: 1rem;  /* Título más pequeño */
    font-weight: 600;
    color: var(--card-text);
    letter-spacing: -0.2px;
    text-align: left;  /* Justificado a la izquierda */
}

.comite-lista {
    padding: 0.5rem 0 0.8rem 0;
}
  
.comite-item {
    padding: 0.5rem 0;
    padding-left: 25px;  /* Padding izquierdo de 25px */
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;  /* Texto ligeramente más pequeño */
    color: var(--card-text);
    text-align: left;
}

.comite-item:last-child {
    border-bottom: none;
}
  
@media (max-width: 768px) {
    .comites-container {
      justify-content: center;
    }
    .comite-columna {
      width: 280px;
      min-width: 280px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .program-preview {
        grid-template-columns: 1fr;
    }

    .hero-theme {
        font-size: 1rem;
    }

    .btn {
        display: block;
        margin: 1rem 0;
    }
}
.timeline-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}


/* =========================
   FIX RESPONSIVE GENERAL
========================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
}

/* Secciones */
@media (max-width: 900px) {
    .section {
        padding: 3rem 20px;
        max-width: 100%;
    }

    .image-section {
        padding: 4rem 20px;
        background-attachment: scroll;
    }

    .motivation-text {
        max-width: 100%;
        text-align: left;
    }
}

/* Grillas: que todas bajen a una columna */
@media (max-width: 900px) {
    .gallery-grid,
    .features-grid,
    .topics-grid,
    .video-grid,
    .program-preview,
    .program-full .program-preview,
    .paper-buttons,
    .fees-grid,
    .footer-content {
        grid-template-columns: 1fr !important;
    }

    .paper-buttons .btn:nth-child(3) {
        grid-column: auto;
        justify-self: stretch;
    }
}

/* Galería */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }

    .gallery-card img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }
}

/* Tarjetas */
@media (max-width: 640px) {
    .feature-card,
    .topic-card,
    .day-card,
    .gallery-card,
    .fees-item,
    .comite-columna {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .comites-container {
        display: grid;
        grid-template-columns: 1fr;
    }

    .fees-tag {
        min-width: 0;
        width: 100%;
    }
}

/* Botones */
@media (max-width: 640px) {
    .btn {
        width: 100%;
        display: block;
        text-align: center;
        margin: 0.75rem 0;
        padding: 0.9rem 1rem;
    }

    .inscripciones-cta .btn {
        width: 100%;
        max-width: 100%;
    }
}

/* Hero */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 4rem 20px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content img {
        width: 100%;
        height: auto;
    }

    .hero-date {
        font-size: 1.1rem;
    }

    .hero-location,
    .hero-theme {
        font-size: 1rem;
    }
}

/* Timeline móvil */
@media (max-width: 768px) {
    .timeline {
        max-width: 100%;
        padding-top: 2rem;
    }

    .timeline-item {
        grid-template-columns: 28px 1fr !important;
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .timeline::before,
    .timeline::after {
        left: 13px;
        width: 6px;
    }

    .timeline-marker {
        grid-column: 1;
        width: 22px;
        height: 22px;
    }

    .timeline-content {
        grid-column: 2 !important;
        text-align: left !important;
        transform: none !important;
    }
}

/* Modal móvil */
@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }

    .modal-card {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-media {
        flex: 0 0 180px;
        min-height: 180px;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

/* Mapa */
@media (max-width: 640px) {
    .map-container iframe {
        height: 320px;
    }
}
