/* =========================================================
   INTECMIN CALAMA 2026
   TAILWIND.CSS / CUSTOM THEME
   ========================================================= */

/* ---------------------------------------------------------
   1. VARIABLES
   --------------------------------------------------------- */

:root {
    --primario: #0b1a2e;
    --secundario: #152133;
    --acento: #00a8e8;
    --destaque: #f2c500;
    --gris: #f4f6f8;
    --gris-oscuro: #667085;
    --blanco: #ffffff;
}


/* ---------------------------------------------------------
   2. BASE
   --------------------------------------------------------- */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: var(--primario);
    font-family: 'Open Sans', Arial, sans-serif;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
}

section {
    position: relative;
}


/* ---------------------------------------------------------
   3. COLORES PERSONALIZADOS
   --------------------------------------------------------- */

.bg-primario {
    background-color: var(--primario) !important;
}

.bg-secundario {
    background-color: var(--secundario) !important;
}

.bg-gris {
    background-color: var(--gris) !important;
}

.bg-acento {
    background-color: var(--acento) !important;
}

.bg-destaque {
    background-color: var(--destaque) !important;
}

.text-primario {
    color: var(--primario) !important;
}

.text-secundario {
    color: var(--secundario) !important;
}

.text-acento {
    color: var(--acento) !important;
}

.text-destaque {
    color: var(--destaque) !important;
}

.border-acento {
    border-color: var(--acento) !important;
}

.border-destaque {
    border-color: var(--destaque) !important;
}

.border-primario {
    border-color: var(--primario) !important;
}


/* ---------------------------------------------------------
   4. TIPOGRAFÍAS
   --------------------------------------------------------- */

.font-montserrat {
    font-family: 'Montserrat', Arial, sans-serif !important;
}

.font-opensans {
    font-family: 'Open Sans', Arial, sans-serif !important;
}


/* ---------------------------------------------------------
   5. LOGOS
   --------------------------------------------------------- */

.logo-blanco {
    filter: brightness(0) invert(1);
}

footer img {
    max-height: 60px;
    width: auto;
}


/* ---------------------------------------------------------
   6. NAVBAR
   --------------------------------------------------------- */

#navbar {
    transition:
        padding 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease;
    z-index: 9990;
}

#navbar a {
    transition: color 0.25s ease;
}

#mobile-menu {
    transition:
        max-height 0.3s ease,
        opacity 0.3s ease;
}


/* ---------------------------------------------------------
   7. COUNTDOWN
   --------------------------------------------------------- */

.countdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.time-box {
    flex: 1 1 100px;
    min-width: 85px;
    background: rgba(21, 33, 51, 0.95);
    padding: 18px 12px;
    border-radius: 10px;
    text-align: center;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.number {
    display: block;
    font-size: clamp(1.7rem, 5vw, 2.8rem);
    line-height: 1;
    font-weight: 900;
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
}

.label {
    display: block;
    margin-top: 8px;
    font-size: clamp(0.62rem, 2vw, 0.85rem);
    line-height: 1;
    color: var(--destaque);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* ---------------------------------------------------------
   8. SPEAKERS
   --------------------------------------------------------- */

.speaker-card {
    position: relative;
    background: var(--primario);
    border-radius: 16px;
    overflow: hidden;
    min-height: 320px;
}

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

.speaker-overlay {
    background:
        linear-gradient(
            to top,
            rgba(5, 15, 28, 0.98) 0%,
            rgba(5, 15, 28, 0.75) 32%,
            rgba(5, 15, 28, 0.12) 72%,
            rgba(5, 15, 28, 0) 100%
        );
    transition: background 0.35s ease;
}

.speaker-card:hover .speaker-overlay {
    background:
        linear-gradient(
            to top,
            rgba(5, 15, 28, 0.98) 0%,
            rgba(5, 15, 28, 0.8) 45%,
            rgba(5, 15, 28, 0.3) 100%
        );
}

.speaker-card .group-hover\:opacity-100 {
    transition: opacity 0.3s ease;
}


/* ---------------------------------------------------------
   9. PATROCINADORES / EXPOSITORES
   --------------------------------------------------------- */

#patrocinadores img,
#expositores img {
    display: block;
    width: 100%;
    max-width: 150px;
    height: 100%;
    object-fit: contain;
    margin: auto;
}

#patrocinadores .bg-white,
#expositores .bg-white {
    min-height: 90px;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

#patrocinadores .bg-white:hover,
#expositores .bg-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(11, 26, 46, 0.08);
}


/* ---------------------------------------------------------
   10. PRENSA
   --------------------------------------------------------- */

#prensa {
    overflow: hidden;
}

#prensa h3 {
    line-height: 1.25;
}

#prensa .bg-gris {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#prensa .bg-gris:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(11, 26, 46, 0.07);
}


/* ---------------------------------------------------------
   11. MARQUEE / MEDIOS
   --------------------------------------------------------- */

.scrolling-wrapper {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
}

.scrolling-content {
    display: inline-flex;
    align-items: center;
    width: max-content;
    animation: scroll-left 30s linear infinite;
}

.scrolling-content img {
    flex: 0 0 auto;
    width: auto;
    max-width: 180px;
    height: 55px;
    object-fit: contain;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* ---------------------------------------------------------
   12. CAROUSEL INTECMIN
   --------------------------------------------------------- */

.intec-carousel {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    font-family: Arial, sans-serif;
}

.intec-carousel-main {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 10px;
    background: #111;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.intec-carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.intec-carousel-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}


/* ---------------------------------------------------------
   13. BOTONES CAROUSEL
   --------------------------------------------------------- */

.intec-carousel-btn {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 26, 46, 0.78);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    font-size: 20px;
    line-height: 1;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.intec-carousel-btn:hover {
    background: var(--acento);
}

.intec-carousel-prev {
    left: 15px;
}

.intec-carousel-next {
    right: 15px;
}


/* ---------------------------------------------------------
   14. DOTS
   --------------------------------------------------------- */

.intec-carousel-dots {
    text-align: center;
    margin-top: 15px;
}

.intec-carousel-dot {
    width: 9px;
    height: 9px;
    display: inline-block;
    margin: 4px;
    background: #c4c8ce;
    border-radius: 50%;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.intec-carousel-dot.active {
    background: var(--acento);
    transform: scale(1.25);
}


/* ---------------------------------------------------------
   15. THUMBNAILS
   --------------------------------------------------------- */

.intec-carousel-thumbnails {
    display: flex;
    gap: 7px;
    margin-top: 14px;
    overflow-x: auto;
    padding: 3px 2px 8px;
    scrollbar-width: thin;
}

.intec-carousel-thumbnails img {
    flex: 0 0 auto;
    width: 90px;
    height: 62px;
    object-fit: cover;
    opacity: 0.55;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition:
        opacity 0.2s ease,
        border-color 0.2s ease;
}

.intec-carousel-thumbnails img.active {
    opacity: 1;
    border-color: var(--acento);
}


/* ---------------------------------------------------------
   16. LIGHTBOX
   --------------------------------------------------------- */

.intec-carousel-lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.94);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 20px;
    cursor: zoom-out;
}

.intec-carousel-lightbox img {
    max-width: 95%;
    max-height: 92%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
}

.intec-carousel-lightbox.active {
    display: flex;
}


/* ---------------------------------------------------------
   17. POPUP VIDEO
   --------------------------------------------------------- 

.popup {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.78);
    justify-content: center;
    align-items: center;
    z-index: 100000;
    padding: 20px;
}

.popup-content {
    position: relative;
    width: min(900px, 95vw);
    max-height: 90vh;
    background: #fff;
    padding: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.popup-content video {
    display: block;
    width: 100%;
    max-height: 85vh;
}

.close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
}  */


/* ---------------------------------------------------------
   18. PLANO DE EXHIBICIÓN
   --------------------------------------------------------- */

#plano {
    overflow: hidden;
}

#image-map-pro-cd9817fa-8ca4-439e-b3ff-a196de94e150 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}


/* ---------------------------------------------------------
   19. NOTICIAS
   --------------------------------------------------------- */

.news-card {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-card img {
    transition: transform 0.7s ease;
}


/* ---------------------------------------------------------
   20. FOOTER
   --------------------------------------------------------- */

footer {
    background: var(--secundario);
}

footer a {
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

footer .w-10 {
    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

footer .w-10:hover {
    transform: translateY(-2px);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 1024px) {

    .speaker-card {
        min-height: 300px;
    }

    .intec-carousel-track img {
        height: 420px;
    }

    #patrocinadores img,
    #expositores img {
        max-width: 130px;
        height: 50px;
    }

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 767px) {

    html {
        scroll-padding-top: 70px;
    }

    body {
        font-size: 14px;
    }


    /* -------------------------------------
       SECCIONES
       ------------------------------------- */

    section.py-24 {
        padding-top: 55px !important;
        padding-bottom: 55px !important;
    }

    section.py-20 {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }


    /* -------------------------------------
       TITULARES
       ------------------------------------- */

    h1 {
        font-size: 2rem !important;
        line-height: 1.05 !important;
    }

    h2 {
        font-size: 1.65rem !important;
        line-height: 1.1 !important;
    }

    h3 {
        line-height: 1.2;
    }

    p {
        line-height: 1.6;
    }


    /* -------------------------------------
       COUNTDOWN
       ------------------------------------- */

    .countdown {
        gap: 7px;
        max-width: 330px;
    }

    .time-box {
        flex: 1 1 65px;
        min-width: 65px;
        padding: 12px 7px;
        border-radius: 7px;
    }

    .number {
        font-size: 1.45rem;
    }

    .label {
        font-size: 0.55rem;
        margin-top: 5px;
    }

    .seconds-box {
        display: none !important;
    }


    /* -------------------------------------
       CUNA DEL COBRE
       ------------------------------------- */

    #cuna-cobre .flex {
        gap: 35px !important;
    }

    #cuna-cobre img {
        height: 280px !important;
    }

    #cuna-cobre h2 {
        font-size: 2rem !important;
    }

    #cuna-cobre p {
        font-size: 0.92rem !important;
        line-height: 1.65 !important;
    }


    /* -------------------------------------
       SPEAKERS
       ------------------------------------- */

    #oradores .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }

    .speaker-card {
        min-height: 220px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    }

    .speaker-card .aspect-\[3\/4\] {
        aspect-ratio: 3 / 4;
    }

    .speaker-overlay {
        padding: 9px !important;
    }

    .speaker-overlay p {
        font-size: 6px !important;
        line-height: 1.15 !important;
        margin-bottom: 3px !important;
    }

    .speaker-overlay h4 {
        font-size: 10px !important;
        line-height: 1.1 !important;
        margin-bottom: 2px !important;
    }

    .speaker-overlay .flex {
        gap: 5px !important;
    }


    /* -------------------------------------
       PATROCINADORES
       ------------------------------------- */

    #patrocinadores .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }

    #patrocinadores .bg-white {
        min-height: 65px;
        padding: 8px 4px !important;
        border-radius: 3px;
    }

    #patrocinadores img {
        max-width: 75px;
        height: 38px;
    }


    /* -------------------------------------
       EXPOSITORES
       ------------------------------------- */

    #expositores .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }

    #expositores .bg-white {
        min-height: 65px;
        padding: 7px 3px !important;
        border-radius: 3px;
    }

    #expositores img {
        max-width: 75px;
        height: 36px;
    }

    #expositores .bg-primario {
        min-height: 65px;
    }

    #expositores .bg-primario span:first-child {
        font-size: 9px !important;
    }

    #expositores .bg-primario span:last-child {
        font-size: 7px !important;
    }


    /* -------------------------------------
       PRENSA
       ------------------------------------- */

    #prensa .grid {
        gap: 15px !important;
    }

    #prensa .bg-gris {
        padding: 18px !important;
    }

    #prensa h3 {
        font-size: 0.9rem !important;
    }

    #prensa p {
        font-size: 0.75rem !important;
        line-height: 1.5 !important;
    }

    #prensa .w-12 {
        width: 35px !important;
        height: 35px !important;
    }


    /* -------------------------------------
       MEDIOS
       ------------------------------------- */

    .scrolling-content {
        gap: 35px;
    }

    .scrolling-content img {
        max-width: 120px;
        height: 40px;
    }


    /* -------------------------------------
       PLANO
       ------------------------------------- */

    #plano {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #plano .max-w-7xl {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    #plano .bg-white {
        padding: 8px !important;
        overflow: hidden;
    }

    #image-map-pro-cd9817fa-8ca4-439e-b3ff-a196de94e150 {
        min-width: 650px;
        transform-origin: top left;
    }


    /* -------------------------------------
       CAROUSEL
       ------------------------------------- */

    .intec-carousel {
        margin: 25px auto;
    }

    .intec-carousel-main {
        border-radius: 6px;
    }

    .intec-carousel-track img {
        height: 250px;
    }

    .intec-carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .intec-carousel-prev {
        left: 8px;
    }

    .intec-carousel-next {
        right: 8px;
    }

    .intec-carousel-thumbnails {
        gap: 4px;
    }

    .intec-carousel-thumbnails img {
        width: 60px;
        height: 43px;
    }


    /* -------------------------------------
       NOTICIAS
       ------------------------------------- */

    #pauta article {
        border-radius: 10px;
    }

    #pauta .p-10 {
        padding: 20px !important;
    }

    #pauta h3 {
        font-size: 1rem !important;
    }

    #pauta p {
        font-size: 0.75rem !important;
    }


    /* -------------------------------------
       FOOTER
       ------------------------------------- */

    footer {
        padding-top: 40px !important;
    }

    footer .grid {
        gap: 30px !important;
    }

    footer p {
        font-size: 0.78rem;
    }

    footer h4 {
        font-size: 0.75rem;
        margin-bottom: 15px !important;
    }

}


/* ---------------------------------------------------------
   TELÉFONOS MUY PEQUEÑOS
   --------------------------------------------------------- */

@media (max-width: 400px) {

    .countdown {
        gap: 5px;
    }

    .time-box {
        min-width: 58px;
        padding: 10px 5px;
    }

    .number {
        font-size: 1.25rem;
    }

    .label {
        font-size: 0.48rem;
    }

    #oradores .grid {
        gap: 5px !important;
    }

    .speaker-card {
        min-height: 190px;
    }

    #patrocinadores img,
    #expositores img {
        max-width: 65px;
    }

    .intec-carousel-track img {
        height: 220px;
    }

}


/* ---------------------------------------------------------
   TOUCH DEVICES
   --------------------------------------------------------- */

@media (hover: none) {

    .speaker-card:hover .speaker-overlay {
        background:
            linear-gradient(
                to top,
                rgba(5, 15, 28, 0.98) 0%,
                rgba(5, 15, 28, 0.7) 40%,
                rgba(5, 15, 28, 0.1) 100%
            );
    }

    .news-card:hover {
        transform: none;
    }

    #patrocinadores .bg-white:hover,
    #expositores .bg-white:hover {
        transform: none;
    }

}


/* ---------------------------------------------------------
   ACCESIBILIDAD
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}
