*{
    
}

/* ==========================================
   MOBILE-SPECIFIC STYLES (nuevo layout)
   ========================================== */

/* Glow del hero móvil */
.mobile-bg-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 40%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

/* Glow del contacto móvil */
.mobile-contact-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

/* Cards de proyecto móvil */
.mobile-project-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border-radius: 20px;
    overflow: hidden;
}

/* Iconos de tecnologías de fondo en móvil (zigzag como en PC) */
.mobile-background-logos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.06;
    z-index: 0;
    pointer-events: none;
}

.mobile-background-logos img {
    position: absolute;
    max-width: 32px;
    max-height: 32px;
    filter: brightness(0.8) saturate(0.7);
}

/* Patrón zigzag más espaciado y centrado */
.mobile-background-logos img:nth-child(1) { top: 18%; left: 8%; }
.mobile-background-logos img:nth-child(2) { top: 24%; left: 75%; }
.mobile-background-logos img:nth-child(3) { top: 32%; left: 25%; }
.mobile-background-logos img:nth-child(4) { top: 38%; left: 60%; }
.mobile-background-logos img:nth-child(5) { top: 46%; left: 12%; }
.mobile-background-logos img:nth-child(6) { top: 52%; left: 80%; }
.mobile-background-logos img:nth-child(7) { top: 60%; left: 40%; }
.mobile-background-logos img:nth-child(8) { top: 68%; left: 5%; }
.mobile-background-logos img:nth-child(9) { top: 70%; left: 70%; }
.mobile-background-logos img:nth-child(10) { top: 80%; left: 30%; }
.mobile-background-logos img:nth-child(11) { top: 86%; left: 55%; }

/* Animación suave para scroll indicator */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Animación del punto del scroll mouse */
@keyframes scrollDot {
    0% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.5; transform: translateY(12px); }
    100% { opacity: 0; transform: translateY(12px); }
}

.animate-scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

/* Animación del punto del scroll mouse hacia arriba */
@keyframes scrollDotUp {
    0% { opacity: 0; transform: translateY(16px); }
    50% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-4px); }
}

.animate-scroll-dot-up {
    animation: scrollDotUp 1.5s ease-in-out infinite;
}

/* ==========================================
   DESKTOP STYLES (original)
   ========================================== */

#bgmain {
    background: linear-gradient(125deg, rgba(0, 204, 255, 0.5) 5%, rgba(0, 204, 255, 0.15) 25%, rgba(0, 204, 255, 0.075) 100%);
    filter: blur(90px);
    border-radius: 100%;
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 20%;
    height: 40%; 
    overflow: hidden;
    z-index: -1;
}

#bgprojects {
    background: linear-gradient(125deg, rgba(0, 204, 255, 0.5) 5%, rgba(0, 204, 255, 0.15) 25%, rgba(0, 204, 255, 0.075) 100%);
    filter: blur(90px);
    border-radius: 100%;
    position: absolute;
    left: 80%;
    transform: translate(-50%, -50%);
    width: 20%;
    height: 40%; 
    overflow: hidden;
    z-index: -1;
}


#bgcontact {
    position: absolute;
    --t:60px;
    background:
    radial-gradient(farthest-side, transparent calc(100% - var(--t)), rgba(0, 255, 255, 0.1), transparent 100%);
    display:inline-block;
    height: 560px;
    width: 600px;
}

#contact {
    height: 80vh;
}

#title-home {
    font-size: var(--font-size-xxxl);
}
  
#description-home {
    font-size: var(--font-size-md)
}

.button-home {
    background-color: #f2f2f20f;
    transition: all .2s ease-in-out
}

.button-home>div {
    background-color: #f2f2f20f
}

.button-home>div svg {
    transition: all .2s ease-in-out
}

.button-home:hover {
    background-color: #f2f2f21a
}

.button-home:hover>div svg {
    transform: rotate(-45deg)
}

#button-home-pad {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    display: flex;
    gap: 0.75rem;
}

#button-home-pad2 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    display: flex;
    gap: 0.75rem;
}
  
.button-home-pad2 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    display: flex;
    gap: 1.2rem;
}

:root {
    --font-size-sm: clamp(.8rem, .17vw + .76rem, .89rem);
    --font-size-base: clamp(1rem, .34vw + .91rem, 1.19rem);
    --font-size-md: clamp(1.25rem, .61vw + 1.1rem, 1.58rem);
    --font-size-lg: clamp(1.56rem, 1vw + 1.31rem, 2.11rem);
    --font-size-xl: clamp(1.95rem, 1.56vw + 1.56rem, 2.81rem);
    --font-size-xxl: clamp(2.44rem, 2.38vw + 1.85rem, 3.75rem);
    --font-size-xxxl: clamp(3.05rem, 3.54vw + 2.17rem, 5rem);
    --cor-fundo: #212123;
    --cor-icones: #535c68;
    --cor-fundo-icone1: #e4405f;
    --cor-fundo-icone2: #171515;
    --cor-fundo-icone3: #0874ac;
}

::-webkit-scrollbar {
    width: 12px; 
}
  
::-webkit-scrollbar-track {
    background: #2c2c2c;  /* Fondo oscuro */
}

::-webkit-scrollbar-thumb {
    background-color: #888888;  /* Desplazable */
    border-radius: 1px; /
}

::-webkit-scrollbar-thumb:hover {
    background-color: #aaaaaa; /* Hover desplazable */
}

/* ICONOS RRSS */
.elemento__interno__redirect {
    display: inline-flex;
    font-size: 2.3vw;
    text-decoration: none;
    color: var(--cor-icones);
    width: 5vw;
    height: 5vw;
    transition: 0.5s linear;
    position: relative;
    z-index: 1;
}

.elemento__interno__redirect:hover {
    color: #fff;
}

.elemento__interno__redirect i {
    margin: auto;
}

.elemento__interno__redirect::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4.25vw;
    height: 4.3vw;
    background: #000;
    border-radius: 50%;
    z-index: -1;
    transform: translate(-50%, -50%) scale(0);
    transition: 0.3s cubic-bezier(0.95, 0.32, 0.37, 1.21);
}

.elemento__interno__redirect:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.icone__elemento__geral:nth-child(1) a:hover:before {
    background: var(--cor-fundo-icone1);
}

.icone__elemento__geral:nth-child(2) a:hover:before {
    background: var(--cor-fundo-icone2);
}

.icone__elemento__geral:nth-child(3) a:hover:before {
    background: var(--cor-fundo-icone3);
}

.lista__icones {
    width: 100%;
    max-width: 50rem;
    padding: 0 1.5rem;
    border-radius: 10px;
    list-style: none;
}

.project-card {
    outline-offset: -1px;
    background-color: #f2f2f20a;
    outline: 1px solid rgba(242,242,242,.06);
    box-shadow: 0 20px 60px #0d0d0d80;
    position: relative
}

.project-card-content {
    border: 1px solid #3d3d3d;
    background-image: radial-gradient(circle at 50% 0,#ffffff1a,#0d0d0d);
    position: relative
}

.tooltip {
    position: relative
}

.tooltip .tooltiptext {
    margin-top: -62px;
    visibility: hidden;
    padding: 4px 12px;
    background-color: #0d0d0d;
    color: #fff;
    text-align: center;
    font-weight: 500;
    border-radius: 6px;
    position: absolute;
    z-index: 1
}

.tooltip:hover .tooltiptext {
    visibility: visible
}

.icon-work svg {
    position: relative;
    transition: all .2s ease-in-out
}

.icon-work:hover svg {
    transform: translate(6px)
}

.titleEffect {
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #ffffff1c
}

.glare-card {
    z-index: 1;
    height: 1px;
    background-image: linear-gradient(to right,#0000 5%,#fff9 35%,#fff,#fff9 65%,#0000 95%);
    position: absolute;
    inset: 0% 0% auto
}

.dot-title {
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px #fff
}

.hiddenImportant{
    display:none!important;
}

.background-logos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.background-logos img {
    max-width: 100px;
    max-height: 100px;
    position: absolute;
}

.background-logos img:nth-child(1) { top: 10%; left: 10%; }
.background-logos img:nth-child(2) { top: 20%; left: 25%; }
.background-logos img:nth-child(3) { top: 30%; left: 40%; }
.background-logos img:nth-child(4) { top: 40%; left: 55%; }
.background-logos img:nth-child(5) { top: 50%; left: 70%; }
.background-logos img:nth-child(6) { top: 60%; left: 85%; }
.background-logos img:nth-child(7) { top: 70%; left: 10%; }
.background-logos img:nth-child(8) { top: 80%; left: 25%; }
.background-logos img:nth-child(9) { top: 90%; left: 40%; }
.background-logos img:nth-child(10) { top: 100%; left: 55%; }
.background-logos img:nth-child(11) { top: 110%; left: 70%; }