/* === VARIABLES GLOBALES Y RESET === */
:root {
    --primary-cyan: #00E5FF;
    --primary-magenta: #FF007A;
    --neon-gradient: linear-gradient(90deg, var(--primary-cyan), var(--primary-magenta));
    --bg-dark: #050505;
    --text-light: #ffffff;
    --glass-bg: rgba(25, 25, 25, 0.30);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --section-spacing: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* ESTO ELIMINA EL RECUADRO AZUL AL TOCAR EN CELULARES */
    -webkit-tap-highlight-color: transparent; 
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* === SOMBRAS GLOBALES DE REALCE === */
/* Esto le da legibilidad y un efecto 3D Premium a todos los textos */
p, h3, h4, li, .nav-links a, .lead-text {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* === ESTILOS DEL VIDEO DE FONDO === */
#bg-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -100;
    object-fit: cover;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -99;
}

/* === CLASES UTILITARIAS === */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.section-pad { padding: var(--section-spacing) 0; }

/* === TIPOGRAFÍA === */
.main-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6); /* Sombra un poco más fuerte */
    margin-bottom: 40px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 60px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.neon-text {
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.5));
}

.neon-icon {
    color: var(--primary-cyan);
    filter: drop-shadow(0 0 8px var(--primary-cyan));
}

/* === BOTÓN NEÓN CORREGIDO (Sin fondo negro) === */
.btn-neon {
    display: inline-block;
    padding: 12px 30px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 30px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    background: var(--neon-gradient); /* Color sólido de fondo */
    border: none; /* Quitamos bordes */
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); /* Sombrecita para que el texto resalte sobre el neón */
}

.btn-neon:hover {
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.6), 0 0 30px rgba(255, 0, 122, 0.4);
    transform: translateY(-3px);
}

.full-width { width: 100%; text-align: center; }

/* === HEADER NAVEGACIÓN BASE === */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    border-radius: 50px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-container {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-cyan);
    text-shadow: 0 0 10px var(--primary-cyan);
}

.search-icon {
    position: absolute;
    right: 30px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.search-icon:hover { opacity: 1; }

/* === HERO SECTION === */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    width: 100%;
    padding: 0 20px; 
    transition: margin-top 0.3s ease;
}

.hero-logo {
    width: clamp(180px, 20vw, 260px);
    margin-bottom: 30px;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.4)) drop-shadow(0 0 30px rgba(255, 0, 122, 0.4));
    transition: width 0.3s ease;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    font-size: 1.5rem;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* === SERVICIOS === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 16px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    color: white !important;
    cursor: pointer;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    color: #7a7a7a;
    transition: all 0.4s ease;
}

.service-card h3 {
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.4s ease;
}

.service-card:hover {
    border-color: var(--primary-cyan) !important; 
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4), inset 0 0 10px rgba(0, 229, 255, 0.1);
    transform: translateY(-5px);
}

.service-card:hover .service-icon {
    color: var(--primary-cyan);
    filter: drop-shadow(0 0 10px var(--primary-cyan));
}

/* === PORTAFOLIO === */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.portfolio-item {
    position: relative;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid transparent;
    background: var(--glass-bg);
    transition: all 0.3s ease;
}

.portfolio-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-item:hover video {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 2;
}

.portfolio-overlay h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-item:hover {
    border-color: var(--primary-magenta); 
    box-shadow: 0 0 30px rgba(255, 0, 122, 0.6), inset 0 0 15px rgba(255, 0, 122, 0.3);
    z-index: 5;
}   

/* === CONTACTO === */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    border: 2px solid transparent;
    background-image: linear-gradient(var(--glass-bg), var(--glass-bg)), var(--neon-gradient);
    background-origin: border-box;
    background-clip: content-box, border-box;
    padding: 1px;
    border-radius: 16px;
}

.contact-info, .contact-form {
    padding: 50px;
    flex: 1 1 300px; 
}

.contact-info {
    border-right: 1px solid rgba(255,255,255,0.1);
}

.lead-text {
    font-size: 1.4rem;
    margin-bottom: 40px;
}

/* Alineación BASE de PC para info-item */
.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    width: 100%; 
}

.info-item i {
    font-size: 1.5rem;
    margin-right: 20px;
    width: 30px;
    flex-shrink: 0; 
}

.info-item div {
    flex: 1; 
    min-width: 0; 
}

.info-item h4 { font-weight: 700; margin-bottom: 5px; }

.info-item p { 
    color: rgba(255,255,255,0.8); 
    overflow-wrap: break-word; 
    word-wrap: break-word; 
}

.glass-input {
    position: relative;
    margin-bottom: 35px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-input input,
.glass-input textarea {
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    resize: none;
}

.glass-input label {
    position: absolute;
    top: 15px;
    left: 20px;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: 0.3s ease all;
}

.glass-input input:focus ~ label,
.glass-input input:not(:placeholder-shown) ~ label,
.glass-input textarea:focus ~ label,
.glass-input textarea:not(:placeholder-shown) ~ label {
    top: -25px;
    left: 10px;
    font-size: 0.9rem;
    color: var(--primary-cyan);
    text-shadow: 0 0 5px var(--primary-cyan);
}

.glass-input input:focus,
.glass-input textarea:focus {
    box-shadow: inset 0 0 15px rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.5);
}

/* ========================================================= */
/* === RESPONSIVE DESIGN (TABLETS Y MÓVILES) === */
/* ========================================================= */

@media (max-width: 900px) {
    .contact-info {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

@media (max-width: 768px) {
    
    :root {
        --section-spacing: 60px;
    }

    .hero-content {
        margin-top: -15vh; 
    }

    .main-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem); 
        line-height: 1.3;
        margin-bottom: 30px;
        word-wrap: break-word; 
    }

    .hero-logo {
        width: 220px; 
        margin-bottom: 25px;
    }

    .section-title {
        font-size: 1.8rem; 
        margin-bottom: 40px;
    }

    .navbar {
        top: 15px !important; 
        width: 94% !important; 
        border-radius: 25px !important; 
        padding: 12px 5px !important; 
        display: flex !important;
        align-items: center !important;
    }
    
    .nav-container {
        width: 100%;
        padding: 0 5px; 
        display: flex;
        align-items: center;
    }

    .nav-links {
        display: flex;
        width: 100%;
        justify-content: space-between; 
        align-items: center; 
        gap: 0; 
        margin: 0;
        padding: 0;
    }

    .nav-links a {
        font-size: clamp(0.55rem, 2.5vw, 0.8rem) !important; 
        letter-spacing: 0 !important;
        font-weight: 600 !important;
        padding: 0 5px;
        line-height: 1 !important; 
        display: block; 
    }

    .search-icon { display: none !important; }
    
    .services-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
        padding: 0;
    }

    .service-card {
        padding: 30px 20px; 
    }

    .service-icon {
        font-size: 3rem; 
        margin-bottom: 15px;
    }

    .service-card h3 {
        font-size: 1.2rem; 
    }

    .service-card p {
        font-size: 0.85rem; 
    }

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

    .contact-info { 
        padding: 40px 15px; 
        text-align: center; 
    }

    .contact-form { 
        padding: 30px 15px; 
    }

    .lead-text {
        font-size: 1rem; 
        line-height: 1.5;
        margin-bottom: 35px;
        padding: 0 10px; 
    }

    .info-item {
        flex-direction: column; 
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .info-item i {
        margin-right: 0;
        margin-bottom: 12px;
        font-size: 2.2rem; 
    }

    .info-item h4 {
        margin-bottom: 8px;
        font-size: 1.1rem;
    }

    .info-item p {
        font-size: 0.9rem; 
        word-break: break-all; 
    }
}