@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700&family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at top, #0b0013, #000);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(20, 0, 40, 0.4);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    color: #c77dff;
    text-shadow: 0 0 20px #9d4edd;
    letter-spacing: 2px;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: #c77dff;
    bottom: -5px;
    left: 0;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #c77dff;
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: #c77dff;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: 0.3s;
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 60%;
    height: 100%;
    background: rgba(25, 0, 50, 0.95);
    backdrop-filter: blur(10px);
    transition: right 0.4s ease;
    padding: 80px 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 999;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: white;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.mobile-menu a:hover {
    color: #c77dff;
    text-shadow: 0 0 10px #c77dff;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background: radial-gradient(circle at center, rgba(100, 0, 150, 0.2), transparent);
    animation: fadeIn 2s ease;
}

.hero h2 {
    font-size: 2.8rem;
    color: #ffffff;
    text-shadow: 0 0 25px #9d4edd;
}

.titlesitemap{
    font-size: 1.8rem;
    color: #ffffff;
    text-shadow: 0 0 25px #9d4edd;
}

.hero p {
    max-width: 600px;
    color: #ccc;
    margin-top: 15px;
    font-size: 1.1rem;
    animation: fadeInUp 2s ease;
}

.hero img {
    filter: drop-shadow(0 0 15px #c77dff);
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #c77dff;
    }

    to {
        text-shadow: 0 0 25px #9d4edd, 0 0 50px #7b2cbf;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn_conte {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    /* espacio entre botones */
    flex-wrap: wrap;
    /* permite que bajen si no caben */
}

.btn_pro,
.btn_ser {
    width: 200px;
    /* tamaño fijo y moderado en pantallas grandes */
    text-align: center;
    padding: 12px 0;
    font-size: 16px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn_pro {
    background-color: #7b2cbf;
    color: #fff;
}

.btn_ser {
    background-color: transparent;
    border: 2px solid #7b2cbf;
    color: #7b2cbf;
}

/* Responsive */
@media (max-width: 768px) {
    .btn_conte {
        flex-direction: column;
        align-items: center;
    }

    .btn_pro,
    .btn_ser {
        width: 90%;
    }
}


/* PRODUCTOS */
.productos {
    padding: 100px 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    background: linear-gradient(180deg, rgba(20, 0, 40, 0.8), rgba(0, 0, 0, 1));
}

/* Contenedor de las cards */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    /* 🔥 hace que todas las cards tengan la misma altura */
    gap: 30px;
}

/* CARD individual */
.card {
    position: relative;
    flex: 1 1 300px;
    /* 🔥 ancho flexible y altura igual */
    max-width: 350px;
    background: rgba(25, 0, 50, 0.6);
    border-radius: 20px;
    text-align: center;
    padding: 40px 20px 80px;
    /* espacio para el botón */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 25px rgba(155, 0, 255, 0.2);
    transition: 0.4s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* organiza el contenido en vertical */
    justify-content: space-between;
    /* mantiene todo equilibrado */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(155, 0, 255, 0.4);
}

.card img {
    width: 90%;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 15px #c77dff);
    flex-shrink: 0;
}

.card h3 {
    color: #c77dff;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.card p {
    color: #cfcfcf;
    font-size: 0.95rem;
    flex-grow: 1;
    /* 🔥 fuerza a ocupar el espacio restante para equilibrar alturas */
}

/* 🔘 BOTÓN VISITAR */
.btn-visitar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #7b2cbf, #9d4edd);
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(155, 66, 255, 0.6);
    animation: glowPulse 2s infinite ease-in-out;
    z-index: 10;
}

/* Flecha animada continuamente */
.btn-visitar::after {
    content: "➜";
    display: inline-block;
    animation: flechaMove 1.2s infinite ease-in-out;
}

/* ✨ Animaciones */
@keyframes flechaMove {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(6px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 10px rgba(155, 66, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 25px rgba(155, 66, 255, 0.9);
    }

    100% {
        box-shadow: 0 0 10px rgba(155, 66, 255, 0.5);
    }
}

/* SOBRE NOSOTROS */
.sobre-nosotros {
    background: radial-gradient(circle at top, rgba(50, 0, 100, 0.3), rgba(0, 0, 0, 0.9));
    padding: 120px 10%;
    text-align: center;
}

.sobre-nosotros h2 {
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 0 0 20px #9d4edd;
    margin-bottom: 30px;
}

.sobre-nosotros p {
    color: #ccc;
    max-width: 800px;
    margin: 15px auto;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
}

/* SERVICIOS */
.servicios {
    background: linear-gradient(180deg, rgba(10, 0, 20, 1), rgba(0, 0, 0, 1));
    padding: 120px 10%;
    text-align: center;
}

.servicios h2 {
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 0 0 20px #9d4edd;
    margin-bottom: 50px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.servicio-card {
    background: rgba(25, 0, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 20px;
    transition: 0.4s;
    box-shadow: 0 0 25px rgba(155, 0, 255, 0.1);
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(155, 0, 255, 0.4);
}

.servicio-card i {
    font-size: 2.5rem;
    color: #c77dff;
    margin-bottom: 15px;
}

.servicio-card h3 {
    color: #fff;
    margin-bottom: 10px;
}

.servicio-card p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

/*Animacion*/
.section {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.quiz-header-section {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 1s ease;
}

.quiz-icon-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.quiz-icon-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 2px solid #7b2cbf;
    border-radius: 50%;
    opacity: 0.3;
    animation: ringExpand 3s ease-out infinite;
}

.quiz-icon-ring:nth-child(2) {
    width: 140px;
    height: 140px;
    animation-delay: 1s;
}

@keyframes ringExpand {
    0% {
        width: 120px;
        height: 120px;
        opacity: 0.3;
    }

    50% {
        width: 160px;
        height: 160px;
        opacity: 0.1;
    }

    100% {
        width: 120px;
        height: 120px;
        opacity: 0.3;
    }
}



/* CLIENTES */
.productos h2 {
    font-size: 2rem;
    color: #ffffff;
    text-shadow: 0 0 15px #9d4edd;
    margin-bottom: 50px;
}

.clientes {
    padding: 100px 8%;
    background: rgba(15, 0, 30, 0.8);
    text-align: center;
}

.clientes h2 {
    font-size: 2rem;
    color: #c77dff;
    text-shadow: 0 0 15px #9d4edd;
    margin-bottom: 50px;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 40px;
    justify-items: center;
}

.logos-grid img {
    width: 100px;
    opacity: 0.4;
    transition: 0.3s;
    filter: grayscale(100%);
}

.logos-grid img:hover {
    opacity: 1;
    filter: grayscale(0%) drop-shadow(0 0 15px #9d4edd);
}

/* 🌌 FOOTER MODERNO Y RESPONSIVO */
.footer {
    background: radial-gradient(circle at top, #0b0013, #000);
    color: #fff;
    padding: 60px 20px 30px;
    font-family: "Poppins", sans-serif;
    position: relative;
    overflow: hidden;
}

/* ✨ Sutil brillo */
.footer::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.25), transparent 70%);
    filter: blur(80px);
    z-index: 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* 🧩 Logo y descripción */
.footer-logo {
    flex: 1 1 300px;
    max-width: 400px;
    text-align: left;
}

.footer-logo img {
    width: 160px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(123, 44, 191, 0.6));
}

.footer-logo p {
    line-height: 1.6;
    font-size: 15px;
    color: #bbb;
    margin-bottom: 20px;
}

/* 🔗 Redes sociales */
.footer-social a {
    display: inline-block;
    margin-right: 15px;
    color: #bbb;
    font-size: 20px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: #7b2cbf;
    transform: translateY(-3px);
}

/* 📚 Enlaces */
.footer-links {
    display: flex;
    flex: 2 1 500px;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-links h4 {
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 0 8px rgba(123, 44, 191, 0.5);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #9d4edd;
    text-shadow: 0 0 6px #7b2cbf;
}

/* ⚙️ Parte inferior */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 14px;
    color: #aaa;
}

.footer-bottom a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #7b2cbf;
}

/* 📱 Responsividad */
@media (max-width: 992px) {
    
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-logo {
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .footer-links div {
        width: 100%;
    }

    .footer-social {
        margin-top: 15px;
    }
}

@media (max-width: 600px) {
    
    nav { display: none; } 
    
    .hamburger { display: flex; }
    
    .footer {
        padding: 40px 15px 20px;
    }

    .footer-logo img {
        width: 120px;
    }

    .footer-logo p {
        font-size: 14px;
    }

    .footer-links a {
        font-size: 14px;
    }

    .footer-bottom {
        font-size: 13px;
        padding-top: 15px;
    }
}
