/* =========================================================
   JG Ecuador — Hoja de estilos compartida
   ========================================================= */

body { background-color: #030712; color: #f8fafc; }

/* --- Paneles de cristal (glassmorphism) --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-panel-highlight {
    background: linear-gradient(180deg, rgba(0, 210, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 210, 255, 0.3);
}

/* --- Efectos de brillo --- */
.glow-text { text-shadow: 0 0 20px rgba(0, 210, 255, 0.5); }
.glow-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,136,255,0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

/* --- Slider del Hero --- */
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 10;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}
.hero-slide.active {
    opacity: 1;
    z-index: 20;
    pointer-events: auto;
}
.animate-on-active {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.hero-slide.active .animate-on-active {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 200ms; }
.delay-200 { transition-delay: 400ms; }
.delay-300 { transition-delay: 600ms; }

/* --- Carrusel vertical de logos / equipo --- */
.animate-marquee-v { animation: marqueeVertical 25s linear infinite; }
.animate-marquee-v-rev { animation: marqueeVerticalRev 30s linear infinite; }

@keyframes marqueeVertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
@keyframes marqueeVerticalRev {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

/* Máscara de desvanecimiento para los bordes */
.mask-v-fade {
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

/* Pausa al pasar el mouse sobre un carrusel */
.pause-on-hover:hover .animate-marquee-v,
.pause-on-hover:hover .animate-marquee-v-rev {
    animation-play-state: paused;
}

/* Ocultar scrollbars en carruseles horizontales */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* --- Mapa SVG interactivo --- */
.map-prov {
    fill: rgba(255, 255, 255, 0.05);
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1px;
    transition: fill 0.3s ease, filter 0.3s ease;
}
#prov-pichincha { fill: rgba(185, 61, 84, 0.85); cursor: pointer; }
#prov-sucumbios { fill: rgba(168, 17, 44, 0.85); cursor: pointer; }
#prov-pastaza { fill: rgba(243, 217, 222, 0.85); cursor: pointer; }
#prov-orellana { fill: rgba(235, 195, 202, 0.85); cursor: pointer; }
#prov-guayas { fill: rgba(0, 210, 255, 0.85); cursor: pointer; }
.map-prov[style*="--target-fill"]:hover {
    fill: var(--target-fill) !important;
    filter: drop-shadow(0 0 10px var(--target-fill));
    stroke: #fff;
    stroke-width: 2px;
}

/* --- Navbar --- */
.nav-link {
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #00d2ff, #0088ff);
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: #00d2ff; }

/* Dropdown de Soluciones */
.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    padding-top: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.dropdown-group:hover .dropdown-panel,
.dropdown-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-panel .dropdown-card {
    background: rgba(3, 7, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.dropdown-panel a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: 0.6rem;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.dropdown-panel a:hover {
    background: rgba(0, 210, 255, 0.1);
    color: #00d2ff;
}

/* --- Botón volver arriba --- */
#back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#back-to-top.visible { opacity: 1; visibility: visible; }

/* --- Resaltado de enlaces de anclaje --- */
html { scroll-behavior: smooth; }

/* --- Esfera 3D de reseñas (estilo dashboard) --- */
.review-sphere {
    position: relative;
    width: 100%;
    height: 600px;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}
@media (min-width: 768px) {
    .review-sphere { height: 860px; }
}
.review-sphere.dragging { cursor: grabbing; }

/* Burbuja de comentario: rectangular con esquinas redondeadas + punta tipo globo */
.review-tag {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    max-width: 340px;
    border-radius: 14px;
    white-space: normal;
    will-change: transform, opacity;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.72) 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    pointer-events: auto;
}
/* Punta tipo globo de conversación (margen inferior izquierdo) */
.review-tag::after {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 18px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 10px solid rgba(255, 255, 255, 0.86);
}
.review-tag:hover {
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
/* Indicador circular de color al inicio del texto */
.review-tag-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px currentColor;
}
.review-tag-text {
    color: #1e293b;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
}

/* Partículas brillantes del fondo */
.sphere-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.8);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.9);
    animation: particleFloat 6s ease-in-out infinite;
}
@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.35; }
    50% { transform: translateY(-22px) scale(1.35); opacity: 0.95; }
}
