@font-face {
    font-family: 'Poppins';
    src: url("../assets/fonts/Poppins/Poppins-Regular.ttf");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url("../assets/fonts/Poppins/Poppins-Medium.ttf");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url("../assets/fonts/Poppins/Poppins-SemiBold.ttf");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url("../assets/fonts/Poppins/Poppins-Bold.ttf");
    font-weight: 700;
    font-style: normal;
}


* {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* Asegurar que el nav no provoca overflow horizontal */
html,
body {
    overflow-x: hidden;
}

.gradient-bg {
    background: 
    radial-gradient(circle at 80% 10%, rgba(18, 43, 185, 0.8), transparent 50%),
    radial-gradient(circle at 30% 0%, black, transparent 60%),
    radial-gradient(circle at 20% 80%, black, transparent 100%),
    linear-gradient(45deg, #05002a 0%, #000000 25%, #0b0565 50%, #0032b8 75%, #64b5ff 100%);
    background-blend-mode: screen, lighten, multiply, normal;
}

.gradient-bg-other {
    background: linear-gradient(135deg, #0f2c59 0%, #1a3a6a 50%, #2a4d8f 100%);
    position: relative;
    overflow: hidden;
}


.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 8s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-20px) translateX(10px);
    }

    50% {
        transform: translateY(-10px) translateX(20px);
    }

    75% {
        transform: translateY(-30px) translateX(-10px);
    }
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.3);
    pointer-events: none;
}

.service-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    z-index: 0;
    transition: all 0.5s ease;
}

.service-card:hover::before {
    transform: scale(1.5);
}

.service-icon {
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
}

.btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(99, 94, 94, 0.164);
    border-radius: 50%;
    transform: scale(0) translate(-50%, -50%);
    transform-origin: left top;
    transition: transform 0.5s ease;
}

.btn-primary:hover::after {
    transform: scale(15) translate(-50%, -50%);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgb(176 188 209 / 50%)
}

.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.navbar {
    transition: all 0.5s ease;
    background-color: #000000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#mobile-menu {
    background-color: #000000;
}

/* Estado abierto */
#mobile-menu.open {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


#mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease-in-out;
  pointer-events: none; /* evita clicks mientras está cerrado */
}

.hamburger {
    cursor: pointer;
    width: 24px;
    height: 24px;
    position: relative;
}

.hamburger-top,
.hamburger-middle,
.hamburger-bottom {
    position: absolute;
    width: 24px;
    height: 2px;
    top: 0;
    left: 0;
    background: #fff;
    transform: rotate(0);
    transition: all 0.5s;
}

.hamburger-middle {
    transform: translateY(7px);
}

.hamburger-bottom {
    transform: translateY(14px);
}

.open .hamburger-top {
    transform: rotate(45deg) translateY(6px) translateX(6px);
}

.open .hamburger-middle {
    display: none;
}

.open .hamburger-bottom {
    transform: rotate(-45deg) translateY(6px) translateX(-6px);
}

.floating-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.dot {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.section-divider {
    height: 55px;
    overflow: hidden;
    position: relative;
}

.section-divider.top {
    margin-top: -100px;
}

.section-divider.bottom {
    margin-bottom: -100px;
}

.divider-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.wave-top {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23d4dce5'/%3E%3C/svg%3E");
}

.wave-bottom {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%230f2c59'/%3E%3C/svg%3E");
    transform: rotate(180deg);
}

.bg-dots {
    background-image: radial-gradient(rgba(59, 130, 246, 0.1) 2px, transparent 2px);
    background-size: 30px 30px;
}

.logo-container {
    display: inline-block;
}

.logo-container svg {
    height: 32px;
    width: auto;
    font-style: normal;
}

@keyframes sunGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
    }
}

@keyframes rayPulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.tab-btn {
    color: #6b7280;
}

.tab-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.website-card {
    transition: all 0.2s ease;
}

.website-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.15);
}

.social-card {
    transition: all 0.2s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.15);
}

form button.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

form .btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(235, 237, 240, 0.23);
    border-radius: 50%;
    transform: scale(0) translate(-50%, -50%);
    transform-origin: left top;
    transition: transform 0.5s ease;
}

/* Boton flotante WhatsApp */
.btn-wsp{
    position:fixed;
    width:65px;
    height:65px;
    border-radius: 50px;
    bottom:85px;
    right:0px;
    z-index:100;
    transition: all 300ms ease;
}

.btn-wsp:hover{
    background: #20ba5a;
}

/* Google recaptcha */
.grecaptcha-badge {
  z-index: 9999 !important;
}

@media (max-width: 640px) {
    p {
        font-size: 14px;
    }

    form label,
    input::placeholder {
        font-size: 14px;
    }

    textarea {
        font-size: 16px !important;
    }

    footer .title-links {
        font-size: 16px;
    }

    .title-social-media {
        font-size: 16px;
    }

    .links li a,
    li span {
        font-size: 14px;
    }
}

/* se aplica solo en dispositivos que no admiten “hover” */
@media (hover: none) {
    .btn-primary:hover::after {
        transform: none;
    }
    .btn-primary::after {
        transition: transform 0.5s ease;
    }
    .btn-primary:hover {
        transform: none;
        box-shadow: none;
    }
    .website-card:hover,
    .social-card:hover {
        transform: none;
    }
    .btn-wsp:hover{
        background: none;
    }

}