/* ========================================
   INVESTIGACIÓN 002 - TERMINAL AESTHETICS
   Inspirado en tallpoppypress.xyz
   ======================================== */

/* ========================================
   RESET Y CONFIGURACIÓN BASE
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier New', 'Courier', monospace;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    /* Cuadrícula de líneas punteadas verde neón */
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 19px,
            #00ff00 19px,
            #00ff00 20px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 19px,
            #00ff00 19px,
            #00ff00 20px
        );
    background-size: 20px 20px;
    position: relative;
}

/* Overlay oscuro sobre la cuadrícula para suavizar el efecto */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    pointer-events: none;
    z-index: 0;
}

/* Todos los contenidos deben estar por encima del overlay */
body > * {
    position: relative;
    z-index: 1;
}


/* ========================================
   MENÚ SUPERIOR TERMINAL
   ======================================== */

.terminal-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #00ff00;
    color: #000000;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: lowercase;
    border-bottom: 2px solid #00ff00;
}

.logo {
    font-weight: bold;
    letter-spacing: 0.05em;
}

.menu-items {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.menu-items a {
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.menu-items a:hover {
    opacity: 0.6;
}

.menu-end {
    font-weight: bold;
}


/* ========================================
   CARRUSEL PRINCIPAL
   ======================================== */

.carousel-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 3rem;
    padding: 2rem;
}

.carousel-container {
    width: 100%;
    max-width: 1400px;
    height: 80vh;
    position: relative;
    overflow: hidden;
    border: 2px dotted #00ff00;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%) contrast(1.2);
}

.slide-caption {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background-color: #00ff00;
    color: #000000;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: lowercase;
    border: 2px solid #00ff00;
}


/* ========================================
   CONTROLES DEL CARRUSEL
   ======================================== */

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #00ff00;
    color: #000000;
    border: none;
    padding: 1rem 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.carousel-control:hover {
    opacity: 0.7;
}

.carousel-control.prev {
    left: 2rem;
}

.carousel-control.next {
    right: 2rem;
}


/* ========================================
   INDICADORES DEL CARRUSEL
   ======================================== */

.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border: 2px solid #00ff00;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: #00ff00;
}

.indicator:hover {
    background-color: rgba(0, 255, 0, 0.5);
}


/* ========================================
   SECCIÓN DE DESCRIPCIÓN
   ======================================== */

.description-section {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    border-top: 2px dotted #00ff00;
    border-bottom: 2px dotted #00ff00;
}

.description-content {
    max-width: 900px;
}

.terminal-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    color: #ffffff;
    text-align: left;
}


/* ========================================
   SECCIÓN DE EVENTOS
   ======================================== */

.events-section {
    min-height: 50vh;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #00ff00;
    margin-bottom: 2rem;
    text-transform: lowercase;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    width: 100%;
}

.event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border: 2px dotted #00ff00;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.event-item:hover {
    background-color: #00ff00;
    color: #000000;
}

.event-date {
    font-weight: bold;
    min-width: 120px;
}

.event-name {
    flex: 1;
    text-align: right;
}


/* ========================================
   FOOTER TERMINAL
   ======================================== */

.terminal-footer {
    border-top: 2px dotted #00ff00;
    padding: 3rem 2rem 2rem;
    font-size: 0.85rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 2rem;
}

.footer-left p {
    margin-bottom: 0.5rem;
}

.footer-note {
    margin-top: 1rem;
    color: #999999;
    font-size: 0.75rem;
    max-width: 400px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #00ff00;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.6;
}

.newsletter-title {
    color: #00ff00;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    background-color: transparent;
    border: 2px solid #00ff00;
    color: #ffffff;
    padding: 0.5rem 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.newsletter-form input::placeholder {
    color: #666666;
}

.newsletter-form button {
    background-color: #00ff00;
    color: #000000;
    border: none;
    padding: 0.5rem 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.newsletter-form button:hover {
    opacity: 0.7;
}

.footer-credits {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 2px dotted #00ff00;
    color: #666666;
    font-size: 0.75rem;
}


/* ========================================
   RESPONSIVE - TABLET Y MÓVIL
   ======================================== */

@media (max-width: 1024px) {
    .terminal-menu {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }

    .menu-items {
        gap: 1rem;
    }

    .carousel-control {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .carousel-control.prev {
        left: 1rem;
    }

    .carousel-control.next {
        right: 1rem;
    }

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

@media (max-width: 640px) {
    body {
        background-size: 10px 10px;
    }

    .terminal-menu {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

    .menu-items {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .carousel-section {
        height: 70vh;
        padding: 1rem;
    }

    .carousel-container {
        height: 60vh;
    }

    .slide-caption {
        bottom: 1rem;
        left: 1rem;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .carousel-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .carousel-control.prev {
        left: 0.5rem;
    }

    .carousel-control.next {
        right: 0.5rem;
    }

    .carousel-indicators {
        bottom: 1rem;
        right: 1rem;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    .events-section {
        align-items: center;
    }

    .event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .event-name {
        text-align: left;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-credits {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
