﻿:root {
    --black-deep: #0a0a0a;
    --neon-green: #39ff14;
    --neon-purple: #bc13fe;
    --neon-blue: #1e90ff;
    --white: #ffffff;
    --gray-dark: #1a1a1a;
}

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

body {
    background-color: var(--black-deep);
    color: var(--white);
    font-family: 'Exo 2', sans-serif;
    overflow-x: hidden;
}

/* Navegación */
.navbar {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(57, 255, 20, 0.1);
}

.navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
}

.logo-text {
    color: var(--white);
}

.logo-accent {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

.nav-link {
    color: var(--white) !important;
    margin: 0 1rem;
    transition: all 0.3s ease;
    position: relative;
}

    .nav-link:hover {
        color: var(--neon-green) !important;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--neon-green);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after {
        width: 100%;
    }

/* Hero Section */
.hero {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.neon-green {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

.neon-purple {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Botones */
.btn-neon {
    background: transparent;
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    padding: 12px 30px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    text-decoration: none;
}

    .btn-neon:hover {
        background: var(--neon-green);
        color: var(--black-deep);
        box-shadow: 0 0 20px var(--neon-green);
    }

/* Secciones */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.neon-underline {
    position: relative;
    color: var(--neon-green);
}

    .neon-underline::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 100%;
        height: 3px;
        background: var(--neon-green);
        box-shadow: 0 0 10px var(--neon-green);
    }

/* Tarjetas de servicios */
.service-card {
    background: var(--gray-dark);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    margin-bottom: 2rem;
    height: 100%;
}

    .service-card:hover {
        border-color: var(--neon-green);
        transform: translateY(-10px);
        box-shadow: 0 10px 20px rgba(57, 255, 20, 0.1);
    }

.neon-icon {
    font-size: 3rem;
    color: var(--neon-green);
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1rem;
    color: var(--white);
}

.service-card p {
    color: #aaa;
}

.about {
    padding: 100px 0;
    background: radial-gradient(circle at top, #0f172a, #05070f);
    color: #e5e7eb;
    position: relative;
    overflow: hidden;
}

    .about::before {
        content: "";
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 0v120M0 60h120' stroke='rgba(0,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
        opacity: 0.3;
    }

    .about .section-title {
        font-size: 2.8rem;
        font-weight: 700;
        margin-bottom: 25px;
        text-align: center;
    }

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #cbd5f5;
    margin-bottom: 18px;
}

    .about-text.highlight {
        font-weight: 600;
        color: #38fdfd;
        letter-spacing: 0.5px;
    }

.about-visual {
    height: 280px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #38fdfd;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    text-align: center;
    padding: 30px;
}

.neon-frame {
    border: 2px solid rgba(56, 253, 253, 0.6);
    box-shadow: 0 0 12px rgba(56, 253, 253, 0.4), 0 0 30px rgba(56, 253, 253, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .neon-frame:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 0 18px rgba(56, 253, 253, 0.7), 0 0 45px rgba(56, 253, 253, 0.3);
    }

.dragon-btn {
    position: relative;
    display: inline-block;
    margin-top: 35px;
    padding: 14px 40px;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #38fdfd;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid rgba(56, 253, 253, 0.7);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 0 12px rgba(56, 253, 253, 0.4), 0 0 35px rgba(56, 253, 253, 0.15);
}

.dragon-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient( 120deg, transparent, rgba(56,253,253,0.6), transparent );
    transform: translateX(-120%);
}

/* portafolio */
.portfolio {
    padding: 120px 0;
    background: radial-gradient(circle at top, #0b1020 0%, #04060f 70%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.portfolio-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(12,18,40,0.85);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(0,255,255,0.15);
    transition: transform .4s ease, box-shadow .4s ease;
    cursor: pointer;
}

    .portfolio-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 0 35px rgba(56,253,253,.6), 0 0 90px rgba(168,85,247,.4);
    }

.media-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

    .media-wrapper img,
    .media-wrapper video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s ease;
    }

.portfolio-card:hover img,
.portfolio-card:hover video {
    transform: scale(1.12);
}

.portfolio-info {
    padding: 18px;
    text-align: center;
}

    .portfolio-info h3 {
        font-family: Orbitron;
        color: #38fdfd;
        font-size: 1.1rem;
        margin-bottom: 4px;
    }

    .portfolio-info span {
        color: #c5c9ff;
        font-size: .9rem;
        opacity: .85;
    }

/* video hover play */

.portfolio-card.video:hover video {
    play-state: running;
}

.portfolio-card.video video {
    animation-play-state: paused;
}


/* contact */
.contact-section {
    padding: 120px 0;
    background: radial-gradient(circle at top, #050816, #02030a);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 80px;
    align-items: center;
}

.dragon-form {
    display: grid;
    gap: 30px;
}

.form-group {
    position: relative;
}

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 14px 16px;
        background: transparent;
        border: 2px solid rgba(56,253,253,.25);
        border-radius: 12px;
        color: #fff;
        font-size: 1rem;
        outline: none;
    }

    .form-group textarea {
        min-height: 140px;
        resize: none;
    }

    .form-group label {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: rgba(255,255,255,.6);
        pointer-events: none;
        transition: .3s;
        background: #02030a;
        padding: 0 6px;
    }

    .form-group input:focus + label,
    .form-group textarea:focus + label,
    .form-group input:valid + label,
    .form-group textarea:valid + label {
        top: -8px;
        font-size: .75rem;
        color: #38fdfd;
    }

.dragon-send {
    margin-top: 15px;
    font-size: 1.1rem;
    border-radius: 0.5rem;
}

/* aviso de recaptcha */
.recaptcha-notice {
    margin-top: 18px;
    font-size: 0.75rem;
    color: #c5c9ff;
    line-height: 1.6;
    opacity: 0.75;
    text-align: center;
    max-width: 420px;
}

    .recaptcha-notice a {
        color: var(--neon-green);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .recaptcha-notice a:hover {
        color: var(--neon-blue);
        text-shadow: 0 0 8px var(--neon-blue);
    }

.bi-shield-check {
    color: var(--neon-green);
}

/* BOTONES CIRCULARES */
.contact-shortcuts {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.dragon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid rgba(56,253,253,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #38fdfd;
    background: rgba(5,10,30,.6);
    backdrop-filter: blur(6px);
    transition: .3s;
    cursor: pointer;
}

    .dragon-circle:hover {
        transform: scale(1.12);
        box-shadow: 0 0 30px #38fdfd, 0 0 80px rgba(168,85,247,.6);
    }

    .dragon-circle.whatsapp {
        color: #25D366;
    }

    .dragon-circle.mail {
        color: #38fdfd;
    }

    .dragon-circle.google {
        color: #f44336;
    }

.dragon-loader,
.dragon-success {
    position: fixed;
    inset: 0;
    background: rgba(2,4,12,.95);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 99999;
    color: #38fdfd;
}

    .dragon-loader.active,
    .dragon-success.active {
        opacity: 1;
        pointer-events: auto;
    }

/* LOADER */

.loader-core {
    width: 90px;
    height: 90px;
    border: 4px solid rgba(56,253,253,.3);
    border-top: 4px solid #38fdfd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 30px #38fdfd;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* SUCCESS */

.success-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #38fdfd;
    box-shadow: 0 0 40px #38fdfd, 0 0 100px rgba(168,85,247,.6);
    animation: pulse 1.2s ease-out infinite;
    margin-bottom: 25px;
}

@keyframes pulse {
    from {
        transform: scale(.6);
        opacity: .3;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.dragon-success h3 {
    font-family: Orbitron;
    font-size: 2rem;
}

.dragon-success p {
    opacity: .8;
}


/* Footer */
.footer {
    background: #05080f;
    padding: 40px 0;
    border-top: 1px solid rgba(0,255,255,.15);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.footer p {
    color: #b5c7d3;
    font-size: 0.95rem;
}

.socials {
    display: flex;
    gap: 15px;
}

.social-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(0,255,255,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ffff;
    font-size: 1.2rem;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(0,255,255,.25);
}

/* Efectos de texto neón */
.neon-text {
    animation: neon-glow 1.5s ease-in-out infinite alternate;
}

@keyframes neon-glow {
    from {
        text-shadow: 0 0 5px var(--neon-green), 0 0 10px var(--neon-green), 0 0 15px var(--neon-green);
    }

    to {
        text-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green), 0 0 30px var(--neon-green), 0 0 40px var(--neon-purple);
    }
}

/* Efectos de borde neón */
.neon-border {
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green), inset 0 0 10px var(--neon-green);
    animation: border-pulse 2s infinite;
}

@keyframes border-pulse {
    0%, 100% {
        box-shadow: 0 0 5px var(--neon-green), inset 0 0 5px var(--neon-green);
    }

    50% {
        box-shadow: 0 0 20px var(--neon-green), inset 0 0 20px var(--neon-green);
    }
}

/* Partículas de fondo */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Elemento visual animado */
.hero-logo-wrap {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MARCO NEÓN */
.hero-visual {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(57,255,20,.12));
    border-radius: 24px;
    z-index: 1;
}

    .hero-visual::before {
        content: '';
        position: absolute;
        inset: -3px;
        background: linear-gradient( 45deg, var(--neon-green), var(--neon-purple) );
        border-radius: 26px;
        filter: blur(22px);
        z-index: -1;
    }

/* LOGO */
.hero-logo {
    width: 100%;
    max-width: 300px;
    border-radius: 1rem;
    z-index: 2;
    filter: drop-shadow(0 0 25px rgba(56,253,253,.6));
    transition: transform .4s ease;
}

/* micro vida al hover */
.hero-logo-wrap:hover .hero-logo {
    transform: scale(1.04);
}

/* Scrollbar general */
::-webkit-scrollbar {
    width: 10px;
}

/* Fondo */
::-webkit-scrollbar-track {
    background: #05080f;
}

/* Barra */
::-webkit-scrollbar-thumb {
    background: linear-gradient( 180deg, #00ffff, #007a7a );
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0,255,255,.6);
}

    /* Hover glow */
    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient( 180deg, #4dffff, #00b3b3 );
        box-shadow: 0 0 18px rgba(0,255,255,.9);
    }

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

    .navbar-brand {
        font-size: 1rem;
    }

    .hero {
        padding-top: 120px;
        text-align: center;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        margin: 0 auto 2rem;
    }

    .hero-logo-wrap {
        width: 240px;
        height: 240px;
        margin-top: 40px;
    }

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

    .service-card {
        padding: 2rem;
    }

    .about {
        padding: 80px 20px;
    }

    .about-visual {
        height: auto;
        padding: 25px;
        margin-top: 35px;
    }

    .portfolio-grid {
        gap: 25px;
    }

    .media-wrapper {
        height: 190px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-shortcuts {
        flex-direction: row;
        justify-content: center;
    }

    .dragon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .footer-content {
        padding: 0 20px;
    }

    .navbar-collapse {
        display: block !important; /* mata el collapse de bootstrap */
        visibility: visible;
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: rgba(5,10,25,.96);
        backdrop-filter: blur(14px);
        padding-top: 120px;
        transition: right .45s ease;
        box-shadow: -15px 0 40px rgba(56,253,253,.25);
        z-index: 9998;
    }

        .navbar-collapse.open {
            right: 0;
        }

    body.menu-open {
        overflow: hidden;
    }

    .navbar-nav {
        display: flex;
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }

    .nav-link {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }

        .nav-link::after {
            display: none;
        }
}

@media (max-width: 480px) {

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

    .hero-logo-wrap {
        width: 200px;
        height: 200px;
    }

    .btn-neon {
        padding: 10px 24px;
        font-size: .9rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .media-wrapper {
        height: 170px;
    }

    .dragon-circle {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

    .dragon-form {
        gap: 22px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {

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

    .hero-logo-wrap {
        width: 280px;
        height: 280px;
    }

    .about {
        padding: 90px 40px;
    }

    .portfolio-grid {
        gap: 30px;
    }

    .contact-grid {
        grid-template-columns: 1fr 180px;
        gap: 60px;
    }

    .navbar-collapse {
        display: block !important; /* mata el collapse de bootstrap */
        visibility: visible;
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: rgba(5,10,25,.96);
        backdrop-filter: blur(14px);
        padding-top: 120px;
        transition: right .45s ease;
        box-shadow: -15px 0 40px rgba(56,253,253,.25);
        z-index: 9998;
    }

        .navbar-collapse.open {
            right: 0;
        }

    body.menu-open {
        overflow: hidden;
    }

    .navbar-nav {
        display: flex;
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }

    .nav-link {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

        .nav-link::after {
            display: none;
        }
}

@media (min-width: 1200px) {

    .container {
        max-width: 1200px;
    }

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

    .hero-logo-wrap {
        width: 340px;
        height: 340px;
    }

    .section-title {
        font-size: 2.7rem;
    }

    .media-wrapper {
        height: 240px;
    }
}

/* Ocultar badge flotante de reCAPTCHA */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
}