/*
Theme Name: Tull Theme Hybrid Azul-Negro
Theme URI: https://smetromero.com
Author: Marcel Ed. Torres R.
Author URI: https://smetromero.com
Description: Tema visual inspirado en el azul-negro con efectos dinámicos y metalizados. Burbujas flotantes, ondas musicales y líneas 2D estilo modelador BIM.
Version: 2.6
License: Private Creative License (Internal Use Only)
License URI: https://smetromero.com/licencia-privada
Text Domain: tull-theme-hybrid
Tags: smooth, elegant, minimal, responsive, azul, metalizado, dinámico
*/

/* ================= VARIABLES GLOBALES ================= */
:root {
    --fuente-base: 'Poppins', 'Roboto', sans-serif;
    --transicion-suave: all 0.3s ease;
    --radio-bordes: 12px;

    /* Paleta Azul-Negro */
    --cosmos-bg: #0a0a14;
    --cosmos-text: #f0f8ff;
    --cosmos-grey: #1b1f33;
    --cosmos-glow: rgba(30,144,255,0.3);

    /* Colores acento metalizados */
    --azul-metal: #1e90ff;
    --cian-metal: #00ffff;
    --plateado: #c0c0c0;

    /* Colores de texto destacados */
    --texto-vivo: #ffffff;
    --texto-acento: #00bfff;
}

/* ================= BODY ================= */
body {
    font-family: var(--fuente-base);
    margin: 0;
    padding: 0;
    transition: var(--transicion-suave);
    line-height: 1.6;
    background: var(--cosmos-bg);
    color: var(--cosmos-text);
}

/* ================= ENCABEZADO ================= */
header {
    text-align: center;
    padding: 2rem;
    border-bottom: 1px solid #222;
    background: linear-gradient(135deg, var(--cosmos-grey) 0%, #0a0a14 100%);
    backdrop-filter: blur(10px);
    transition: var(--transicion-suave);
}

header h1 {
    font-size: 2rem;
    letter-spacing: 1px;
    color: var(--azul-metal);
}

header p {
    color: var(--texto-acento);
    margin-top: 0.5rem;
}

/* ================= HERO / CABECERA ================= */
.header-cover {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.header-hero {
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radio-bordes);
    animation: fadeIn 1.2s ease forwards;
    transition: var(--transicion-suave);
    position: relative;
    z-index: 0;
}

/* ================= CAPAS ABSOLUTAS ================= */
#burbujas-container,
#lineas-plano,
.ondas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#burbujas-container { z-index: 1; }
#lineas-plano { z-index: 1; }

.ondas-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    bottom: 10px;
    left: 0;
    z-index: 2;
}

/* ================= BURBUJAS FLOTANTES ================= */
.burbuja {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    box-shadow: 0 0 8px rgba(255,255,255,0.3);
    animation: flotar 10s linear infinite;
    pointer-events: none;
}

@keyframes flotar {
    0% { transform: translateY(100vh) scale(0.5); opacity: 0.7; }
    50% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0.2; }
}

/* ================= ONDAS MUSICALES ================= */
.onda-musical {
    width: 30%;
    height: 3px;
    background: linear-gradient(90deg, var(--azul-metal), var(--cian-metal));
    animation: mover-onda 1.5s linear infinite;
    border-radius: 2px;
}

@keyframes mover-onda {
    0% { background-position: 0 0; }
    100% { background-position: 100% 0; }
}

/* ================= MENÚ PRINCIPAL ================= */
.nav-search-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.menu-horizontal {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.menu-horizontal li a {
    text-decoration: none;
    color: var(--cian-metal);
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: var(--transicion-suave);
}

.menu-horizontal li a:hover {
    color: var(--plateado);
    text-shadow: 0 0 5px var(--cian-metal);
    background-color: rgba(255,255,255,0.05);
}

.menu-horizontal li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 0.5rem 0;
    background: rgba(27,31,51,0.95);
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 999;
}

.menu-horizontal li:hover > ul { display: block; }

.menu-horizontal li ul li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--texto-vivo);
}

.menu-horizontal li ul li a:hover {
    background: rgba(30,144,255,0.2);
}

/* ================= BARRA DE BÚSQUEDA ================= */
.search-bar form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-bar input[type="search"] {
    padding: 0.5rem 1rem;
    border-radius: var(--radio-bordes);
    border: 1px solid var(--plateado);
    font-size: 1rem;
    width: 180px;
    transition: var(--transicion-suave);
    background: #0a0a1a;
    color: var(--texto-vivo);
}

.search-bar input[type="search"]:focus {
    border-color: var(--azul-metal);
    outline: none;
    box-shadow: 0 0 8px var(--azul-metal);
}

.search-bar input[type="submit"] {
    padding: 0.5rem 1rem;
    background-color: var(--azul-metal);
    border: none;
    color: var(--texto-vivo);
    border-radius: var(--radio-bordes);
    cursor: pointer;
    transition: var(--transicion-suave);
}

.search-bar input[type="submit"]:hover {
    background-color: var(--cian-metal);
}

/* ================= CONTENIDO PRINCIPAL ================= */
main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1rem;
}

main article {
    background-color: var(--cosmos-grey);
    color: var(--cosmos-text);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--radio-bordes);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-bottom: 1px solid #222;
}

/* ================= PIE DE PÁGINA ================= */
footer {
    background: var(--cosmos-grey);
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #222;
    font-size: 0.9rem;
    color: var(--texto-vivo);
}

/* ================= BOTÓN CAMBIO DE TEMA ================= */
#theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: transparent;
    border: 1px solid var(--texto-vivo);
    border-radius: var(--radio-bordes);
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
    transition: var(--transicion-suave);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

#theme-toggle:hover {
    transform: scale(1.1);
}

/* ================= ANIMACIONES ================= */
.fade-in {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .menu-horizontal {
        flex-direction: column;
        gap: 1rem;
    }

    .search-bar input[type="search"] {
        width: 100%;
        max-width: 300px;
    }

    header,
    main {
        padding: 1rem;
    }

    .header-hero {
        height: 45vh;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
    }
}



