/* =========================================
   AmuleyDev - Hoja de Estilos Principal V6
   Tema: Tech Dark / Neon Green
========================================= */

:root {
    --bg-dark: #07090f; 
    --bg-card: #0d1117;
    --accent-green: #00ff73; 
    --accent-hover: #00cc5c;
    --text-claro: #e2e8f0; /* Nuevo color de texto más claro y legible */
}

html {
    scroll-padding-top: 100px; 
    scroll-behavior: smooth;
    overflow-x: hidden; /* Evita scroll horizontal */
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-dark);
    color: #ffffff;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    overflow-x: hidden; /* Evita scroll horizontal */
}

/* --- CLARIDAD DE TEXTOS GLOBAL --- */
/* Esta regla hace que todos los textos secundarios brillen más */
.text-secondary, p {
    color: var(--text-claro) !important;
    font-weight: 400;
}

/* --- BARRA DE NAVEGACIÓN --- */
.navbar {
    background-color: rgba(7, 9, 15, 0.85) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 255, 115, 0.1);
    transition: all 0.3s ease;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.logo-main {
    height: 80px;
    transition: transform 0.3s ease;
    filter: none;
}

@media (max-width: 991.98px) {
    .logo-main {
        height: 55px;
    }
}

.logo-main:hover {
    transform: scale(1.03);
}

/* Menú hamburguesa visible y con color neón */
.navbar-toggler {
    border-color: rgba(0, 255, 115, 0.4) !important;
    padding: 6px 10px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(0, 255, 115, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 255, 115, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Menú desplegado en móvil */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(7, 9, 15, 0.97);
        border-top: 1px solid rgba(0, 255, 115, 0.1);
        padding: 1rem 0;
        margin-top: 0.5rem;
        border-radius: 0 0 12px 12px;
    }

    .navbar-nav .nav-link {
        padding: 0.6rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .navbar-nav.gap-3 {
        gap: 0 !important;
    }
}

.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-green) !important;
}

/* --- SECCIÓN HERO --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(0, 255, 115, 0.08) 0%, transparent 50%);
    padding-top: 120px;
    padding-bottom: 3rem;
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 90px;
        padding-bottom: 3rem;
        min-height: auto;
    }
}

/* Títulos responsivos */
@media (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem !important;
    }
    .display-5 {
        font-size: 1.6rem !important;
    }
    .lead {
        font-size: 1rem !important;
    }
}

.text-accent {
    color: var(--accent-green);
    text-shadow: 0 0 20px rgba(0, 255, 115, 0.4);
}

.line-height-tight {
    line-height: 1.1;
}

.badge-tech {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(0, 255, 115, 0.1);
    border: 1px solid rgba(0, 255, 115, 0.3);
    color: var(--accent-green);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* --- BOTONES --- */
.btn-custom-primary {
    background-color: var(--accent-green) !important;
    color: #000 !important;
    font-weight: 700;
    padding: 12px 35px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.btn-custom-primary:hover {
    background-color: var(--accent-hover) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 255, 115, 0.4);
}

.btn-outline-light {
    border: 1px solid #444;
    color: #fff;
    padding: 12px 35px;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: 0 0 15px rgba(0, 255, 115, 0.2);
}

@media (max-width: 575.98px) {
    .btn-custom-primary,
    .btn-outline-light {
        padding: 10px 20px;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
}

/* --- EFECTOS DE IMÁGENES --- */
.shadow-custom {
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.glow-effect {
    position: absolute;
    width: 80%;
    height: 80%;
    background: var(--accent-green);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    opacity: 0.12;
    z-index: 0;
    pointer-events: none; /* No interfiere con clicks */
    max-width: 100%;      /* No se desborda */
}

/* --- SOBRE NOSOTROS --- */
.nosotros-section {
    background-color: var(--bg-card);
    border-top: 1px solid #1a2e20;
    border-bottom: 1px solid #1a2e20;
}

/* --- SERVICIOS Y TARJETAS --- */
.services-section {
    position: relative;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid #1a2e20;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

/* AQUÍ ESTÁ EL NUEVO EFECTO DE LUZ VERDE AL PASAR EL MOUSE */
.service-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-10px);
    /* Resplandor exterior e interior verde neón */
    box-shadow: 0 0 25px rgba(0, 255, 115, 0.4), inset 0 0 10px rgba(0, 255, 115, 0.1);
}

.icon-box {
    font-size: 2.5rem;
    display: inline-block;
    padding: 15px;
    background: rgba(0, 255, 115, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 115, 0.1);
}

.badge-price {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 400;
}

.border-accent {
    border-color: rgba(0, 255, 115, 0.4);
}

/* --- IMÁGENES DE SERVICIOS (Para la página de servicios) --- */
.card-img-custom {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
    border-bottom: 1px solid #1a2e20;
}

/* --- FOOTER --- */
.footer-custom {
    border-top: 1px solid #1a2e20;
    background-color: #05070a;
}

.logo-footer {
    height: 70px;
    transition: transform 0.3s ease;
    filter: none;
}

.logo-footer:hover {
    transform: translateY(-5px) scale(1.08);
}

@media (max-width: 575.98px) {
    .logo-footer {
        height: 52px;
    }
}

.logo-footer:hover {
    transform: scale(1.1);
}

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 25px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
}

/* --- ICONOS NEÓN INTEGRADOS (Truco de Fusión) --- */
.icon-neon-custom {
    height: 110px;
    width: auto;
    object-fit: contain;
    /* ESTA ES LA MAGIA: Borra el fondo oscuro de la foto y deja solo el neón */
    mix-blend-mode: screen; 
    /* Le damos un resplandor extra */
    filter: drop-shadow(0 0 10px rgba(0, 255, 115, 0.3));
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* Animación al pasar el mouse por la tarjeta */
.service-card:hover .icon-neon-custom {
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 0 20px rgba(0, 255, 115, 0.8));
}

/* =========================================
   ANIMACIÓN DE ESTRELLA Y GARANTÍA NEÓN
========================================= */

/* Contenedor de la estrella para el aura de luz */
.star-glow-container {
    position: relative;
    display: inline-block;
}

/* La estrella levitando con fondo transparente */
.star-animated {
    height: 130px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen; /* Borra el fondo oscuro de tu jpg */
    filter: drop-shadow(0 0 15px rgba(0, 255, 115, 0.6));
    animation: float-pulse 3s ease-in-out infinite;
}

/* Aura de luz palpitante detrás de la estrella */
.star-glow-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(0, 255, 115, 0.5) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse-aura 3s ease-in-out infinite alternate;
    z-index: -1;
}

/* Animación de la caja de garantía completa */
.garantia-card {
    background-color: rgba(13, 17, 23, 0.8) !important;
    border: 2px solid var(--accent-green) !important;
    border-radius: 15px;
    animation: border-pulse 2s infinite alternate;
}

/* Keyframes (Los movimientos) */
@keyframes float-pulse {
    0% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 15px rgba(0, 255, 115, 0.4)); }
    50% { transform: translateY(-10px) scale(1.08); filter: drop-shadow(0 0 35px rgba(0, 255, 115, 1)); }
    100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 15px rgba(0, 255, 115, 0.4)); }
}

@keyframes pulse-aura {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    100% { transform: translate(-50%, -50%) scale(1.8); opacity: 1; }
}

@keyframes border-pulse {
    0% { box-shadow: 0 0 10px rgba(0, 255, 115, 0.2), inset 0 0 10px rgba(0, 255, 115, 0.05); }
    100% { box-shadow: 0 0 25px rgba(0, 255, 115, 0.6), inset 0 0 15px rgba(0, 255, 115, 0.2); }
}

/* =========================================
   CORRECCIONES RESPONSIVIDAD MÓVIL
========================================= */

/* Contenedores con position relative no se desbordan */
.position-relative {
    overflow: hidden;
}

/* Imágenes nunca se salen de su contenedor */
img {
    max-width: 100%;
    height: auto;
}

/* Sección nosotros en móvil */
@media (max-width: 767.98px) {
    .nosotros-section .col-lg-6 img {
        margin-top: 1.5rem;
    }
}

/* Tarjetas de servicios en móvil */
@media (max-width: 575.98px) {
    .service-card {
        margin-bottom: 0;
    }

    .icon-neon-custom {
        height: 80px;
    }

    .star-animated {
        height: 90px;
    }

    .garantia-card {
        padding: 1.5rem !important;
    }
}

/* Página de contacto: quitar borde divisor en móvil */
@media (max-width: 767.98px) {
    .border-end {
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

    .contact-central-card {
        padding: 1.5rem !important;
    }
}

/* Página de tecnologías: íconos más pequeños en móvil */
@media (max-width: 575.98px) {
    .tech-icon {
        font-size: 2.8rem !important;
    }

    .tech-card {
        padding: 1.2rem !important;
    }
}

/* Evitar que el grid de Bootstrap cause overflow */
@media (max-width: 575.98px) {
    .row {
        --bs-gutter-x: 1rem;
    }
}
