/* --------------------- ESTILOS GENERALES --------------------- */

body {
    font-family: 'Poppins', sans-serif;
    background: #0a0a0f;
    color: #fff;
    overflow-x: hidden;
    margin: 0;
    width: 100vw;
}

a { text-decoration: none; color: #fff; }

/* --------------------- HEADER ESTÉTICO --------------------- */

header {
    width: 93%;
    padding: 14px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(10, 10, 20, 0.72);
    backdrop-filter: blur(12px);

    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    border-bottom: 1px solid rgba(1,125,255,0.35);
    box-shadow:
        0 0 25px rgba(1,125,255,0.15),
        inset 0 0 20px rgba(1,125,255,0.12);
}

/* Efecto barra luminosa (detalle premium) */
header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #017dff, transparent);
    opacity: 0.7;
}

/* ----------------------- NAV LINKS ----------------------- */

header nav a {
    position: relative;
    margin: 0 18px;
    font-weight: 500;
    font-size: 15.5px;
    letter-spacing: 0.5px;

    opacity: 0.85;
    transition: 0.25s ease;
}

/* Subrayado animado estilo “scanner line” */
header nav a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #017dff;
    box-shadow: 0 0 8px #017dff;
    transition: 0.3s ease;
}

header nav a:hover {
    opacity: 1;
    color: #a8d4ff;
}

header nav a:hover::after {
    width: 100%;
}

/* ---------------------- BOTÓN CTA ---------------------- */

.btn-cta {
    background: linear-gradient(135deg, #005bbd, #017dff);
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;

    box-shadow:
        0 0 15px rgba(1,125,255,0.5),
        inset 0 0 12px rgba(255,255,255,0.15);
    
    transition: 0.25s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 25px rgba(1,125,255,0.8),
        inset 0 0 15px rgba(255,255,255,0.25);
}

/* ---------------- HERO SECTION ---------------- */

.hero {
    width: 100%;
    padding: 150px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, #003e7f 0%, #0c0c15 70%);
}
.logo-img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 0 8px #017dff55);
    user-select: none;
}

.hero-left { width: 50%; }

.hero-left h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
}

.hero-left h1 span {
    color: #339aff;
}

.hero-sub {
    margin-top: 20px;
    width: 85%;
    opacity: 0.8;
    font-size: 17px;
}

/* ---------- BOTONES ---------- */

.btn-primary {
    background: linear-gradient(45deg, #005bbd, #017dff);
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 0 14px #005bbd;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 22px;
    border-radius: 8px;
    margin-left: 10px;
    border: 1px solid #017dff;
}

.hero-buttons { margin-top: 30px; }

/* ---------- BOLITAS ---------- */

.clientes { margin-top: 40px; }

.clientes .bolitas {
    margin-top: 8px;
    display: flex;
    gap: 10px;
}

.bolitas div {
    width: 14px;
    height: 14px;
    background: #ffffff50;
    border-radius: 50%;
}

/* ---------- HERO IMAGEN ---------- */

.hero-right {
    width: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column-reverse;
}

.hero-phone {
    width: 410px;
    transform: rotate(-5deg);
    filter: drop-shadow(0 0 20px #017dff);
    animation: float 5s ease-in-out infinite;
}

/* ---------- ETIQUETAS ---------- */

.tag {
    position: absolute;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #339aff;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(6px);
    color: #fff;
}

.tag1 { top: 40px; right: 150px; }
.tag2 { top: 140px; right: 250px; }
.tag3 { bottom: 120px; right: 200px; }
.tag4 { bottom: 40px; right: 80px; }

/* flotación */
@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-1.5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* ----------------- SERVICIOS ------------------- */

.section-title {
    text-align: center;
    margin-top: 120px;
    font-size: 32px;
    font-weight: 700;
}

.services {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

.card {
    width: 280px;
    padding: 30px;
    background: rgba(20, 20, 35, 0.8);
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(1, 125, 255, 0.25);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(1, 125, 255, 0.8);
}

.card-icon {
    font-size: 45px;
    margin-bottom: 15px;
    color: #66b8ff;
}

.card p {
    opacity: 0.7;
    font-size: 14px;
}

/* ----------------- DIAMANTE ------------------- */

.diamond-section {
    margin-top: 140px;
    text-align: center;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.diamond-section img {
    width: 310px;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 25px #017dff);
}

/* ----------------- FOOTER ------------------- */

footer {
    margin-top: 100px;
    padding: 40px;
    background: #0a0a10;
    text-align: center;
    opacity: 0.7;
}

/* ------------------ SECCIÓN FLOTANTE ------------------ */

.floating-section {
    padding: 120px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    background: radial-gradient(circle at left, #017dff22 0%, #000 70%);
}

.floating-left {
    width: 30%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.float-card {
    background: rgba(0, 100, 255, 0.05);
    border: 1px solid #017dff;
    box-shadow: 0 0 20px #005bbd;
    border-radius: 18px;
    padding: 15px;
    text-align: center;
    color: #fff;
    backdrop-filter: blur(6px);
    transition: 0.3s;
    animation: floatCard 3.5s ease-in-out infinite;
}

.float-card:hover {
    transform: scale(1.06) rotate(0deg);
    box-shadow: 0 0 25px #66b8ff;
}

/* posiciones */
.card1 { transform: translateY(-20px) rotate(-4deg); }
.card2 { transform: translateY(20px) rotate(2deg); animation-delay: 0.3s; }
.card3 { transform: translateY(10px) rotate(-2deg); animation-delay: 0.6s; }
.card4 { transform: translateY(-15px) rotate(5deg); animation-delay: 0.9s; }

/* animación */
@keyframes floatCard {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.floating-right {
    width: 45%;
    color: #e0e0e0;
}

.floating-right h2 { font-size: 32px; margin-bottom: 15px; }

.float-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: #017dff;
    color: #fff;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 0 15px #339aff;
}

 /* ------------------ SECCIÓN FLOTANTE ------------------ */

.floating-section {
    padding: 120px 10%;
    display: flex
;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}
.floating-left {
    width: 30%;
    display: grid
;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    position: relative;
}

.float-card {
    background: rgba(0, 255, 255, 0.05);
    border-radius: 18px;
    padding: 15px;
    text-align: center;
    color: #fff;
    backdrop-filter: blur(6px);
    transition: 0.3s;
    animation: floatCard 3.5s 
ease-in-out infinite;
}

.float-card img {
    width: 50px;
    margin-bottom: 15px;
}

.float-card h3 {
    margin: 0;
    font-size: 18px;
}

/* posiciones específicas como en la imagen */
.card1 { transform: translateY(-20px) rotate(-4deg); }
.card2 { transform: translateY(20px) rotate(2deg); animation-delay: 0.3s; }
.card3 { transform: translateY(10px) rotate(-2deg); animation-delay: 0.6s; }
.card4 { transform: translateY(-15px) rotate(5deg); animation-delay: 0.9s; }

/* hover */
.float-card:hover {
    transform: scale(1.06) rotate(0deg);
}
/* animación suave */
@keyframes floatCard {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* ------------ TEXTO DERECHA ------------ */

.floating-right {
    width: 45%;
    color: #e0e0e0;
}

.floating-right h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.floating-right p {
    opacity: 0.8;
    line-height: 1.6;
    width: 90%;
}

.float-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    color: #fff;
    border-radius: 20px;
    font-weight: bold;
}



/* ------------------ PORTAFOLIO ------------------ */

.portfolio {
    padding: 80px 10%;
    text-align: center;
    background: radial-gradient(circle at center, #003e7f55 0%, #000 70%);
}

.portfolio-desc {
    opacity: 0.7;
    width: 60%;
    margin: 10px auto 50px auto;
    font-size: 16px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.project-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid #017dff;
    box-shadow: 0 0 20px #017dff55;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
    animation: floatCard 4s ease-in-out infinite;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px #66b8ff;
}

.project-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    filter: brightness(0.85);
}

.project-info {
    padding: 20px;
    text-align: left;
}

.project-info h3 { margin-bottom: 10px; }

.project-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #017dff;
    border-radius: 12px;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 0 12px #339aff;
}

.project-btn:hover {
    background: #339aff;
}

/* ------------------ CINTA INFINITA ESTÉTICA ------------------ */

.infinite-band {
    width: 100%;
    overflow: hidden;
    padding: 22px 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);

    border-top: 1px solid rgba(1,125,255,0.35);
    border-bottom: 1px solid rgba(1,125,255,0.25);

    box-shadow:
        0 0 18px rgba(1,125,255,0.25) inset,
        0 0 28px rgba(1,125,255,0.15);
    
    position: relative;
}

/* Efecto de brillo que recorre la cinta */
.infinite-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(1,125,255,0.18),
        transparent
    );
    width: 60%;
    animation: bandGlow 4s linear infinite;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Animación del brillo */
@keyframes bandGlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Contenedor deslizable */
.band-track {
    display: flex;
    gap: 80px;
    white-space: nowrap;
    animation: scrollBand 22s linear infinite;
    padding-left: 20px;
}

/* Ítems del texto */
.band-track span {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;

    color: #a8d4ff; /* azul pastel moderno */
    text-shadow: 0 0 8px rgba(1,125,255,0.4);

    opacity: 0.95;
    transition: 0.2s;
}

/* Sutil zoom al pasar el mouse */
.band-track span:hover {
    transform: scale(1.08);
}

/* Scroll más suave */
@keyframes scrollBand {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}



/* ----------- MODAL POPUP ----------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease;
    z-index: 9999;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-box {
    width: 420px;
    background: rgba(20,20,40,0.85);
    padding: 30px;
    border-radius: 18px;
    border: 1px solid #017dff88;
    box-shadow: 0 0 25px #017dff55;
    position: relative;
    animation: fadeIn 0.35s ease;
    color: #fff;
}

.modal-box h2 {
    margin-top: 0;
    color: #66b8ff;
}

.modal-box p {
    opacity: 0.8;
    margin-bottom: 15px;
}

/* Inputs */
.modal-box input,
.modal-box textarea {
    width: 94%;
    padding: 12px;
    background: rgba(255,255,255,0.07);
    border: 1px solid #017dff55;
    border-radius: 10px;
    margin-bottom: 15px;
    color: #fff;
    font-size: 15px;
}

.modal-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: #017dff;
    font-weight: bold;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 18px #017dff;
}

.modal-btn:hover {
    background: #339aff;
}

/* Cerrar */
.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    opacity: 0.7;
    transition: 0.2s;
}

.modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
/* LOADER FULLSCREEN */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d0d0d;
    z-index: 999999;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Partes de la cortina */
.loader-left, .loader-right {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: #0d0d0d;
    z-index: 2;
    transition: transform 1s ease-in-out;
}

/* izquierda */
.loader-left {
    left: 0;
    transform: translateX(0);
}

/* derecha */
.loader-right {
    right: 0;
    transform: translateX(0);
}

/* GIF centrado */
.loader-gif {
    z-index: 5;
    width: 120px;
    height: auto;
    animation: fadein 0.5s ease;
}

@keyframes fadein {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Cuando el loader ya se oculta */
#loader.hide .loader-left {
    transform: translateX(-100%);
}

#loader.hide .loader-right {
    transform: translateX(100%);
}

#loader.hide .loader-gif {
    opacity: 0;
    transition: opacity .4s;
}
#loader, .loader-left, .loader-right {
    will-change: transform, opacity;
}
