/* ===========================
   BASE & RESETS
   =========================== */

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

html, body {
    height: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #000000;
    color: #CCCCCC;
}

a {
    color: #f0ba13;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFFFFF;
}

h1,
h2,
h3 {
    font-family: 'Orbitron', Arial, sans-serif;
    letter-spacing: 1px;
}

/* Animaciones genéricas */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   HEADER & NAV
   =========================== */

header {
    background-color: rgba(58, 61, 73, 0.6);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.contenedor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo img {
    height: 90px;
}

/* Navegación desktop */
nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    color: #FFFFFF;
    padding: 8px 12px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #6699FF;
    border-bottom: 1px solid #6699FF;
}

/* Botón hamburguesa (móvil) */
.hamburger {
    display: none;
    font-size: 2em;
    cursor: pointer;
    color: #FFFFFF;
}

/* ===========================
   MAIN LAYOUT
   =========================== */

main#contenido {
    padding-top: 120px;
}

/* ===========================
   HERO SLIDER + OVERLAY
   =========================== */

.slider.hero-coming {
    width: 100vw;
    height: 100vh;
    position: relative;
    margin: 0;
    overflow: hidden;
    margin-top: -120px;
}

.slider-container {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 1s ease-in-out;
}

.slide {
    position: relative;
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    display: none;
    justify-content: center;
    align-items: center;
}

.slide.active {
    display: flex;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay hero */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    animation: fadeInUp 1.2s ease forwards;
}

.hero-logo {
    width: 180px;
    max-width: 40vw;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
}

.hero-eyebrow {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: #ffd987;
    margin-bottom: 6px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: #FFFFFF;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px #000;
    margin-bottom: 8px;
}

.coming-soon-text {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #f0ba13;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.7;
    color: #DDDDDD;
    max-width: 700px;
    margin: 0 auto 24px;
}

.hero-subtitle span {
    color: #ffd987;
}

/* Botones hero */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
    background: #6699FF;
    color: #0B0C1A;
    box-shadow: 0 0 15px rgba(102, 153, 255, 0.5);
}

.btn.primary:hover {
    background: #99CCFF;
    transform: translateY(-2px);
}

.btn.secondary {
    background: #f0ba13;
    color: #0B0C1A;
}

.btn.secondary:hover {
    background: #ffd987;
    transform: translateY(-2px);
}

.btn.ghost {
    background: transparent;
    color: #FFFFFF;
    border-color: #6699FF;
}

.btn.ghost:hover {
    background: rgba(102, 153, 255, 0.2);
    transform: translateY(-2px);
}

/* ===========================
   ABOUT / PRESENTACIÓN
   =========================== */

.presentacion {
    padding: 60px 20px 40px;
    text-align: center;
    background-color: #000000;
    animation: fadeInUp 1s ease forwards;
}

.presentacion h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #FFFFFF;
}

.presentacion p {
    margin: 10px auto;
    font-size: 1.05em;
    max-width: 840px;
    line-height: 1.7;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.about-card {
    background-color: rgba(58, 61, 73, 0.8);
    border: 1px solid #787A87;
    border-radius: 10px;
    padding: 22px 18px;
    box-shadow: 0 0 12px rgba(11, 12, 26, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.about-card h3 {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.about-card p {
    color: #CCCCCC;
    font-size: 0.95rem;
    margin: 0;
}

.about-card:hover {
    transform: translateY(-6px);
    border-color: #6699FF;
    box-shadow: 0 10px 20px rgba(102, 153, 255, 0.3);
}

/* ===========================
   PROJECTS SECTION
   =========================== */

.projects-section {
    padding: 60px 20px 60px;
    background-color: #0B0C1A;
    text-align: center;
}

.projects-section h2 {
    color: #FFFFFF;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    background: rgba(11, 12, 26, 0.9);
    border: 2px solid rgba(102, 153, 255, 0.25);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    margin: 15px 18px 4px 18px;
    font-size: 1.2rem;
    color: #FFFFFF;
}

.project-card p {
    margin: 0 18px 18px 18px;
    font-size: 0.95rem;
    color: #CCCCCC;
    line-height: 1.5;
}

.project-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(102, 153, 255, 0.4);
    border-color: rgba(102, 153, 255, 0.6);
}

/* Badges */
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: #6699FF;
    color: #0B0C1A;
    box-shadow: 0 0 10px rgba(102, 153, 255, 0.7);
}

.badge.prototipo {
    background-color: #f40695;
}

.badge.banda {
    background-color: #66cc66;
}

/* ===========================
   CONTACT SECTION
   =========================== */

.contact-section {
    padding: 60px 20px 80px;
    text-align: center;
    background-color: #000000;
}

.contact-section h2 {
    font-size: 1.7rem;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.contact-section p {
    margin: 8px auto;
    max-width: 600px;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-mail a {
    font-size: 1.1rem;
}

.contact-small {
    font-size: 0.9rem;
    color: #999999;
}

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

.footer {
    background-color: #0B0C1A;
    color: #CCCCCC;
    padding: 40px 20px 20px;
    font-family: 'Orbitron', Arial, sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

.footer-column img {
    max-width: 150px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #CCCCCC;
    font-size: 1em;
}

.footer-column a:hover {
    color: #6699FF;
}

.footer-column h4 {
    margin-bottom: 10px;
    color: #FFFFFF;
    font-size: 1.1em;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85em;
    border-top: 1px solid #787A87;
    padding-top: 10px;
    color: #787A87;
}

.mini-footer {
    text-align: center;
    background-color: #0B0C1A;
    color: #787A87;
    font-size: 0.8em;
    padding: 15px 10px;
    font-family: 'Orbitron', Arial, sans-serif;
    border-top: 1px solid #787A87;
    opacity: 0.8;
}

.mini-footer strong {
    color: #CCCCCC;
}

/* ===========================
   PRELOADER
   =========================== */

#preloader {
    position: fixed;
    inset: 0;
    background-color: #0B0C1A;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preloader-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-bar {
    position: relative;
    width: 100%;
    height: 50px;
    background: rgba(12, 13, 22, 0.9);
    clip-path: polygon(2% 0, 98% 0, 100% 50%, 98% 100%, 2% 100%, 0 50%);
    border: 2px solid #6688FF;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(102, 153, 255, 0.5) inset,
        0 0 25px rgba(102, 153, 255, 0.5);
}

.preloader-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1A1D30, #1A1D30);
    z-index: 0;
}

.preloader-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, rgba(193, 204, 235, 0.726) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

#preloader-text {
    position: absolute;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #FFFFFF;
    z-index: 2;
    text-shadow: 0 0 8px #000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

#sound-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(102, 153, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(102, 153, 255, 0.27);
    z-index: 10000;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease, transform 0.2s ease;
}

#sound-button:hover {
    transform: scale(1.05);
    background: rgba(102, 153, 255, 1);
}

.preloader-hidden {
    opacity: 0;
    transition: opacity 0.7s ease;
}

/* ===========================
   GLITCH EFFECT (COLOR)
   =========================== */

.glitch-color {
    animation: glitchColorEffect 0.3s ease-in-out infinite alternate;
}

@keyframes glitchColorEffect {
    0% {
        filter: drop-shadow(2px 0 magenta) drop-shadow(-2px 0 cyan);
    }

    50% {
        filter: drop-shadow(-2px 0 magenta) drop-shadow(2px 0 cyan);
    }

    100% {
        filter: drop-shadow(2px 0 cyan) drop-shadow(-2px 0 magenta);
    }
}

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

@media (max-width: 1024px) {
    .hero-content {
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-buttons {
        gap: 8px;
    }
}

@media (max-width: 768px) {

    /* Navegación móvil */
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        background-color: #3A3D49;
        width: 220px;
        border-radius: 8px;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease-in-out;
    }

    nav ul.show {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    nav ul li {
        padding: 14px 20px;
    }

    nav ul li a {
        color: #ffffff;
        font-size: 1.1em;
        display: block;
        width: 100%;
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 25px;
        right: 20px;
        z-index: 1001;
    }

    .hero-logo {
        width: 150px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .coming-soon-text {
        font-size: 1.2rem;
        letter-spacing: 0.1em;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    #sound-button {
        width: 52px;
        height: 52px;
        font-size: 1.7rem;
    }
}

@media (max-width: 500px) {
    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
