* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f6f3f1;
    color: #222222;
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
}

body.sin-desplazamiento {
    overflow: hidden;
}

.logo-header {
    height: 100px;
    width: auto;
    margin-right: 40px;
    transition: height 0.3s ease;
}

header {
    background-color: #ffffff;
    border-bottom: 2px solid #524342;
    padding: 12px 40px;
    display: flex;
    align-items: center;
    gap: 32px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-chico {
    padding: 4px 40px;
}

.header-chico .logo-header {
    height: 60px;
}

.btn-inscripcion {
    background-color: #d52f2f;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    margin-left: auto;   /* esto empuja solo este elemento hacia la derecha */
}

.btn-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 0;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-menu span {
    display: block;
    height: 3px;
    background-color: #524342;
    border-radius: 2px;
}

.btn-inscripcion:hover {
    background-color: #b52424;
}

.btn-inscripcion.activo {
    background-color: #ffffff;
    color: #d52f2f;
    border: 2px solid #d52f2f;
    padding: 8px 22px;
}

.btn-inscripcion.activo:hover {
    background-color: #d52f2f;
    color: #ffffff;
}

.seccion-con-imagen {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: -6px;
}

.logo-fcfm {
  width: 220px;
  height: auto;
  flex-shrink: 0;
}

.logo-dimec {
  width: 140px;
  height: auto;
  flex-shrink: 0;
}

.logo-ceimec {
  width: 180px;
  height: auto;
  flex-shrink: 0;
  margin-left: auto;
}

.texto-footer {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.logos-footer {
    height: 20px;
    width: auto;
}

.titulo-footer {
    font-size: 14px;
    font-weight: bold;
    color: #d52f2f;  
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    color: #555555;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
}

nav a:hover {
    color: #000000;
    text-decoration: underline;
}

.destacado {
    color: #d52f2f;  
}

.banner-texto {
    background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('imagenes/Espacios FCFM/fachada_851.jpg');
    background-size: cover;
    background-position: center bottom;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 20px;
}

.banner-inicio {
    background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('imagenes/Espacios FCFM/pajarera.jpg');
}

.banner-noticias {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('imagenes/Espacios FCFM/araña.jpg');
    background-position: center;
}

.banner-inicio .banner-cuadro::before {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.banner-cuadro {
    position: relative;
    z-index: 0;
    padding: 80px 150px;
    border-radius: 24px;
    color: #ffffff;
}

.banner-cuadro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);

    mask-image: 
        linear-gradient(to right, transparent 0%, black 30%, black 70%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-image: 
        linear-gradient(to right, transparent 0%, black 30%, black 70%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
    -webkit-mask-composite: source-in;

    z-index: -1;
}

.banner-texto h1 {
    font-size: 40px;
    margin-bottom: 8px;
}

.banner-cuadro-cronograma {
    padding: 48px 60px;
}

main {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.fondo-inscripcion {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1400px;
    max-width: none;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

.bajada-inscripcion,
.tarjeta-precios,
.botones-etapas {
    position: relative;
    z-index: 1;
}

.btn-inscripcion-grande {
    display: inline-block;
    background-color: #d52f2f;
    color: #ffffff;
    text-decoration: none;
    padding: 16px 48px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.tarjeta-precios {
    max-width: 600px;
    margin: 0 auto 32px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.bajada-inscripcion {
    max-width: 440px;
    margin: 40px auto 28px;
    padding: 16px 24px;
    color: #524342;
    font-size: 26px;
    font-weight: 600;
    text-align: center;
}

.bajada-inscripcion::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(246, 243, 241, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    z-index: -1;
}

.tarjeta-precios h2 {
    text-align: center;
    font-size: 22px;
    color: #524342;
    margin-bottom: 24px;
}

.tabla-precios {
    width: 100%;
    border-collapse: collapse;
}

.tabla-precios th {
    background-color: #524342;
    color: #ffffff;
    padding: 12px 16px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tabla-precios td {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 15px;
    color: #333333;
    text-align: center;
}

.tabla-precios tbody tr:last-child td {
    border-bottom: none;
}

.botones-etapas {
    display: flex;
    gap: 12px;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto 80px;
}

.btn-etapa {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #d52f2f;
    border-radius: 6px;
    background-color: #d52f2f;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-etapa:hover {
    background-color: #b52424;
    border-color: #b52424;
}

.tabla-precios td:first-child {
    font-weight: bold;
}

.btn-inscripcion-grande:hover {
    background-color: #b52424;
    transform: translateY(-2px);
}

.banner-cuadro .contador-subtitulo {
    font-size: 16px;
    margin-bottom: 20px;
}

.contador {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contador-item {
    background-color: #524342;
    border-radius: 12px;
    padding: 20px 12px;
    width: 120px;
    text-align: center;
}

.contador-numero {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
}

.contador-label {
    display: block;
    font-size: 13px;
    color: #e0e0e0;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contador-finalizado {
    font-size: 20px;
    font-weight: bold;
    color: #d52f2f;
}

article {
    border-bottom: 1px solid #cccccc;
    padding-bottom: 80px;
    margin-bottom: 32px;
}

article:last-of-type {
    border-bottom: none;
    padding-bottom: 60px;
    margin-bottom: 0;
}

article:has(+ .bloques-info) {
    border-bottom: none;
    padding-bottom: 16px;
    margin-bottom: 0;
}

hr + article {
    margin-top: 40px;
}

article h2 {
    font-size: 22px;
    margin-bottom: 8px;
    text-align: center;
}

article > h2 {
    margin-bottom: 36px;
}

.titulo-seccion {
    position: relative;
    margin-bottom: 36px;
    padding-bottom: 14px;
    color: #524342;
    font-size: 26px;
    text-align: center;
}

.titulo-seccion::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 72px;
    height: 4px;
    transform: translateX(-50%);
    background-color: #d52f2f;
}

.introduccion-layout {
    margin-bottom: 56px;
}

.introduccion-layout article {
    margin-bottom: 0;
}

.introduccion-layout .bloques-info {
    display: flex;
    flex-direction: row;
    gap: 0;
    margin-top: 32px;
}

.introduccion-layout .bloque-info {
    width: 320px;
}

.introduccion-layout .bloque-tematicas {
    width: 360px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.introduccion-layout .bloque-actividades {
    margin-left: -60px;
    margin-top: 60px;
}

.tarjeta-precios h2.titulo-seccion,
.tarjeta-cronograma h2.titulo-seccion {
    text-align: center;
}

hr {
    border: none;
    border-top: 1px solid #cccccc;
    margin: 40px 0;
}

article hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 40px 0;
}

article p {
    font-size: 16px;
    color: #333333;
    text-align: justify;
}

article p + p {
    margin-top: 16px;
}

.imagen-comite-completa {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 4px 0 24px;
}

.bajada-comite {
    margin-bottom: 24px;
    color: #524342;
    font-size: 18px;
    line-height: 1.45;
    text-align: justify;
}

.bajada-comite a {
    color: #d52f2f;
}

.btn-mapa-banner {
    margin-top: 28px;
}

.seccion-nosotros > article {
    margin-bottom: 0;
    padding-bottom: 24px;
    border-bottom: none;
}

.seccion-nosotros > .panel-lideres {
    margin-top: 0;
}

.panel-lideres {
    margin: 40px 0;
    padding: 32px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(82, 67, 66, 0.1);
}

.panel-lideres h3 {
    margin-bottom: 20px;
    color: #524342;
    font-size: 22px;
    text-align: center;
}

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

.panel-lideres .lider-comision {
    min-width: 0;
    margin: 0;
    padding: 16px;
    background-color: #f6f3f1;
    border-top: 4px solid #d52f2f;
    border-bottom: none;
    border-radius: 8px;
    color: #524342;
    text-align: center;
}

.foto-lider {
    display: block;
    width: 100%;
    height: 150px;
    margin-bottom: 12px;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 6px;
}

.lider-comision h4 {
    margin-bottom: 6px;
    font-size: 17px;
    text-align: center;
}

.rol-lider {
    margin-bottom: 6px;
    color: #d52f2f;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.lider-comision span {
    display: block;
    color: #777777;
    font-size: 13px;
    text-align: center;
}

.correo-lider {
    display: block;
    color: #777777;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.correo-lider:hover {
    color: #d52f2f;
    text-decoration: underline;
}

.hitos-beauchef {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 32px 0;
}

.hito-beauchef {
    padding: 20px 16px;
    border-top: 4px solid #d52f2f;
    background-color: #f6f3f1;
    border-radius: 8px;
}

.hito-beauchef span {
    display: block;
    margin-bottom: 10px;
    color: #d52f2f;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.hito-beauchef p {
    color: #333333;
    font-size: 14px;
    text-align: center;
}

.galeria-beauchef {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.foto-beauchef {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(82, 67, 66, 0.16);
}

.foto-beauchef img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.foto-beauchef figcaption {
    padding: 10px 12px;
    color: #666666;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.fuente-beauchef {
    color: #777777;
    font-size: 13px;
    text-align: center;
}

.fuente-beauchef a {
    color: #d52f2f;
}

.ediciones {
    margin: 56px 0;
}

.ediciones h2 {
    text-align: center;
}

.bajada-ediciones {
    max-width: 640px;
    margin: 0 auto 40px;
    color: #333333;
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
}

.ediciones-subtitulo {
    margin: 8px 0 24px;
    text-align: center;
    color: #524342;
    font-size: 18px;
    font-weight: 600;
}

.edicion {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 236px;
    margin-bottom: 28px;
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
    background-color: #d52f2f;
    border-radius: 14px;
    box-shadow: 8px 8px 0 rgba(82, 67, 66, 0.14);
}

.edicion:last-child {
    margin-bottom: 0;
}

.edicion h3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px;
    flex-shrink: 0;
    padding: 24px;
    color: #ffffff;
    font-size: 26px;
    line-height: 1.1;
    text-align: center;
}

.edicion h3::before {
    content: 'CONEIM';
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
}

.edicion-fotos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 1;
    gap: 12px;
    padding: 12px;
    background-color: #f6f3f1;
}

.edicion-fotos img {
    width: 100%;
    height: 210px;
    min-width: 0;
    object-fit: cover;
    border-radius: 8px;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(82, 67, 66, 0.16);
}

.edicion:nth-of-type(2) {
    flex-direction: row-reverse;
    background-color: #524342;
}

.edicion:nth-of-type(3) {
    background-color: #d52f2f;
}

.foto-arriba {
    object-position: top;
}

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

    .tarjeta-expositor {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .info-expositor h3,
    .info-expositor .cargo-expositor {
        text-align: center;
    }

    .ediciones {
        margin: 40px 0;
    }

    .ediciones h2 {
        font-size: 23px;
    }

    .titulo-seccion {
        font-size: 23px;
    }

    .introduccion-layout {
        display: block;
        width: auto;
        max-width: none;
        left: auto;
        transform: none;
    }

    .introduccion-layout .bloques-info {
        display: flex;
        flex-direction: column;
        margin-top: 28px;
    }

    .introduccion-layout .bloque-info,
    .introduccion-layout .bloque-tematicas {
        width: 100%;
        max-width: 280px;
        align-self: flex-start;
    }

    .introduccion-layout .bloque-actividades {
        width: 100%;
        max-width: 260px;
        align-self: flex-end;
        margin-left: 0;
        margin-top: -24px;
    }

    .panel-lideres {
        padding: 20px 16px;
    }

    .lideres-comisiones {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hitos-beauchef {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .galeria-beauchef {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .foto-beauchef img {
        height: 120px;
    }

    .botones-etapas {
        flex-direction: column;
    }

    .edicion,
    .edicion:nth-of-type(2) {
        display: block;
    }

    .edicion h3 {
        width: 100%;
        min-height: 76px;
    }

    .edicion-fotos {
        gap: 8px;
        padding: 8px;
    }

    .edicion-fotos img {
        height: 140px;
    }
}

.bloques-info {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 32px;
}

.bloque-info {
    position: relative;
    width: 320px;
    padding: 32px 36px;
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.2);
}

.bloque-tematicas {
    background-color: #d52f2f;
    z-index: 1;
    width: 360px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.bloque-actividades {
    background-color: #524342;
    margin-left: -60px;
    margin-top: 60px;
    z-index: 2;
}

.bloque-info h3 {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    color: #ffffff;
    margin-bottom: 20px;
}

.bloque-info ul {
    list-style: disc;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bloque-info li {
    font-size: 16px;
    color: #ffffff;
}

.expositores {
    margin: 56px 0;
    text-align: center;
}

.bajada-expositores {
    max-width: 560px;
    margin: 0 auto 32px;
    color: #333333;
    font-size: 16px;
    line-height: 1.6;
}

.link-mas-noticias {
    display: inline-block;
    margin-top: 24px;
    color: #d52f2f;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.link-mas-noticias:hover {
    text-decoration: underline;
}

.tarjeta-expositores {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.pista-expositores {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.pista-expositores::-webkit-scrollbar {
    display: none;
}

.item-expositor {
    flex: 0 0 calc(100% / 3);
    min-width: 0;
    padding: 24px;
    text-align: center;
    scroll-snap-align: start;
}

.item-expositor + .item-expositor {
    border-left: 1px solid #e0e0e0;
}

.tarjeta-expositores + .ediciones-subtitulo {
    margin-top: 40px;
}

.flecha-expositores {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background-color: #d52f2f;
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    z-index: 2;
}

.tarjeta-expositores:hover .flecha-expositores,
.flecha-expositores:focus-visible {
    opacity: 1;
}

.flecha-expositores:hover {
    background-color: #b52424;
}

.flecha-expositores-izq {
    left: 12px;
}

.flecha-expositores-der {
    right: 12px;
}

.foto-expositor {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.foto-expositor.logo-empresa {
    border-radius: 12px;
    object-fit: contain;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 12px;
}

.item-expositor h3 {
    font-size: 18px;
    color: #524342;
    margin-bottom: 6px;
}

.cargo-expositor {
    font-size: 14px;
    font-weight: 600;
    color: #d52f2f;
    margin-bottom: 10px;
}

.tema-expositor {
    font-size: 14px;
    color: #666666;
    line-height: 1.4;
}

.seccion-expositores {
    margin: 56px 0;
}

.bajada-expositores-pagina {
    max-width: 700px;
    margin: 0 auto 32px;
    color: #333333;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

.tarjeta-expositor {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.tarjeta-expositor:last-child {
    margin-bottom: 0;
}

.grid-charlistas-tecnicas {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.tarjeta-charlista-tecnica {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.foto-charlista-tecnica {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 10px;
}

.tarjeta-charlista-tecnica h4 {
    font-size: 14px;
    color: #524342;
    margin-bottom: 4px;
}

.tema-charlista-tecnica {
    font-size: 12px;
    color: #d52f2f;
    font-weight: 600;
}

.foto-expositor-grande {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.foto-expositor-grande.logo-empresa {
    object-fit: contain;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 20px;
}

.info-expositor h3 {
    font-size: 20px;
    color: #524342;
    margin-bottom: 4px;
    text-align: left;
}

.info-expositor .cargo-expositor {
    text-align: left;
    margin-bottom: 16px;
}

.info-expositor p:not(.cargo-expositor) {
    font-size: 15px;
    color: #333333;
    text-align: justify;
    line-height: 1.6;
}

.info-expositor p + p {
    margin-top: 12px;
}

.info-expositor p.tema-expositor {
    text-align: left;
    font-weight: 600;
    color: #524342;
    margin-bottom: 16px;
}

.bio-expositor {
    display: none;
}

.bio-expositor.mostrar {
    display: block;
    margin-top: 4px;
}

.btn-leer-mas {
    display: block;
    margin-top: 10px;
    padding: 0;
    background: none;
    border: none;
    color: #d52f2f;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.btn-leer-mas:hover {
    text-decoration: underline;
}

.tarjeta-cronograma {
    text-align: center;
    margin-top: 56px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 950px;
    max-width: 95vw;
}

.tarjeta-cronograma h2 {
    font-size: 24px;
    color: #524342;
}

.bajada-cronograma {
    max-width: 560px;
    margin: 0 auto 24px;
    color: #333333;
    font-size: 16px;
    line-height: 1.6;
}

.imagen-cronograma-preview {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    padding: 32px 24px;
    font-size: 13px;
    color: #cccccc;
    background-color: #524342;
    border-top: 1px solid #e0e0e0;
}

footer hr {
    border: none;
    border-top: 1px solid #6a5958;
    width: 100%;
    max-width: 330px;
}

footer .titulo-footer {
    color: #e0e0e0;
}

footer .link-normal:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.link-normal {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-wrap: anywhere;
}

.imagen-ampliable {
    cursor: zoom-in;
}

.visor-imagenes {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background-color: rgba(34, 28, 27, 0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.visor-imagenes.mostrar {
    opacity: 1;
    pointer-events: auto;
}

.visor-imagen {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.visor-cerrar {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background-color: transparent;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.visor-cerrar:hover {
    background-color: #d52f2f;
    border-color: #d52f2f;
}

.cronograma {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.cronograma h2 {
    position: relative;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
    scroll-margin-top: 140px;
}

.nav-dias {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.btn-dia {
    display: block;
    background-color: #524342;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-dia span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #e0e0e0;
    margin-top: 4px;
}

.btn-dia-activo {
    background-color: #ffffff;
    color: #524342;
}

.btn-dia-activo span {
    color: #999999;
}


.btn-dia:hover {
    background-color: #d52f2f;
    transform: translateY(-2px);
}

.dia-cronograma {
    margin-bottom: 60px;
}

.evento {
    display: flex;
    gap: 24px;
    position: relative;
    padding-bottom: 32px;
    border-left: 2px solid #e0e0e0;
    padding-left: 24px;
    margin-left: 60px;
}

.evento::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d52f2f;
}

.hora {
    position: absolute;
    left: -120px;
    width: 100px;
    font-weight: bold;
    font-size: 14px;
    color: #555555;
    text-align: right;
}

.detalle h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.detalle p {
    font-size: 14px;
    color: #666666;
}

.evento-clickeable {
    cursor: pointer;
    user-select: none;
}

.evento-clickeable:hover {
    color: #d52f2f;
}

.charlas-paralelas {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

.charlas-paralelas.mostrar {
    display: flex;
}

@media (max-width: 600px) {
    .dia-cronograma {
        margin-bottom: 40px;
    }

    .cronograma {
        max-width: 300px;
    }

    .cronograma h2 {
        font-size: 20px;
    }

    .evento {
        flex-direction: column;
        gap: 4px;
        margin-left: 4px;
        padding-left: 16px;
    }

    .hora {
        position: static;
        width: auto;
        text-align: left;
    }

    .nav-dias {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }

    .nav-dias > .btn-dia:nth-child(1) { grid-column: 1 / span 2; }
    .nav-dias > .btn-dia:nth-child(2) { grid-column: 3 / span 2; }
    .nav-dias > .btn-dia:nth-child(3) { grid-column: 5 / span 2; }
    .nav-dias > .btn-dia:nth-child(4) { grid-column: 2 / span 2; }
    .nav-dias > .btn-dia:nth-child(5) { grid-column: 4 / span 2; }
}

@media (max-width: 980px) {
    header {
        flex-wrap: wrap;
        padding: 12px 20px;
    }

    .btn-menu {
        display: flex;
    }

    header nav,
    .btn-inscripcion {
        display: none;
        flex-basis: 100%;
    }

    header.menu-abierto nav {
        display: flex;
    }

    header.menu-abierto .btn-inscripcion {
        display: block;
    }

    header nav {
        flex-direction: column;
        gap: 0;
        order: 3;
    }

    header nav a {
        padding: 12px 4px;
        border-top: 1px solid #eeeeee;
    }

    .btn-inscripcion {
        order: 4;
        margin: 8px 0 4px;
        text-align: center;
    }

    .seccion-con-imagen {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        column-gap: 8px;
        row-gap: 24px;
        align-items: center;
        margin-bottom: 0;
    }

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

    .texto-footer:nth-of-type(1) {
        grid-row: 1;
        grid-column: 1 / span 3;
    }

    .texto-footer:nth-of-type(2) {
        grid-row: 1;
        grid-column: 4 / span 3;
    }

    .seccion-con-imagen > a:has(.logo-fcfm) {
        grid-row: 2;
        grid-column: 1 / span 2;
        justify-self: center;
    }

    .seccion-con-imagen > a:has(.logo-dimec) {
        grid-row: 2;
        grid-column: 3 / span 2;
        justify-self: center;
    }

    .seccion-con-imagen > a:has(.logo-ceimec) {
        grid-row: 2;
        grid-column: 5 / span 2;
        justify-self: center;
        margin-left: 0;
    }

    .logo-fcfm {
        width: 120px;
    }

    .logo-dimec {
        width: 95px;
    }

    .logo-ceimec {
        width: 112px;
    }
}

@media (max-width: 600px) {
    .banner-texto {
        height: auto;
        min-height: 320px;
        padding: 24px 16px;
    }

    .banner-cuadro {
        padding: 32px 20px;
    }

    .banner-texto h1 {
        font-size: 28px;
    }

    .banner-cuadro .contador-subtitulo {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .contador {
        gap: 12px;
    }

    .contador-item {
        padding: 14px 8px;
        width: 92px;
    }

    .contador-numero {
        font-size: 26px;
    }

    .contador-label {
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    .item-expositor {
        flex: 0 0 100%;
    }
}

