:root {

  /**
   * colors
   */

  --rich-black-fogra-29-1: hsl(215, 31%, 14%);
  --rich-black-fogra-29-2: hsl(230, 14%, 8%);
  --rich-black-fogra-39: hsl(158, 29%, 5%);
  --granite-gray: hsl(0, 0%, 40%);
  --go-green_50: hsla(145, 63%, 42%, 0.5);
  --go-green_8: hsla(145, 63%, 42%, 0.08);
  --go-green_5: hsla(145, 63%, 42%, 0.05);
  --light-gray: hsl(0, 0%, 80%);
  --mint-cream: hsl(160, 100%, 98%);
  --cultured: hsl(0, 0%, 93%);
  --go-green: #9e00ff;
  --white: hsl(0, 0%, 100%);
  --jet: hsl(0, 0%, 18%);

  /**
   * typography
   */

  --ff-poppins: 'Poppins', sans-serif;
  --ff-cuprum: 'Cuprum', sans-serif;

  --fs-1: 4.5rem;
  --fs-2: 3.6rem;
  --fs-3: 3.5rem;
  --fs-4: 3.2rem;
  --fs-5: 2.5rem;
  --fs-6: 2.4rem;
  --fs-7: 2.2rem;
  --fs-8: 2rem;
  --fs-9: 1.8rem;
  --fs-10: 1.5rem;
  --fs-11: 1.4rem;
  --fs-12: 1.3rem;

  --fw-600: 600;
  --fw-500: 500;

  /**
   * spacing
   */

  --section-padding: 80px;

  /**
   * shadow
   */

  --shadow-1: 3px 4px 30px hsla(0, 0%, 53%, 0.1);
  --shadow-2: 5px 3px 40px hsla(191, 100%, 17%, 0.1);

  /**
   * radius
   */

  --radius-5: 5px;

  /**
   * transition
   */

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease;
  --cubic-out: cubic-bezier(0.33, 0.85, 0.4, 0.96);

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #fff;
    color: #7b2cbf;
    font-family: "Outfit", sans-serif;
    overflow-x: hidden;
}

/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header .btn-outline { display: none; }

.header {
  padding-block: 15px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 4;
}

.header.active {
  background-color: var(--white);
  box-shadow: var(--shadow-2);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #9e00ff;
  font-family: var(--ff-cuprum);
  font-size: 33px;
  font-weight: var(--fw-500);
  line-height: 1;
}

.nav-open-btn {
  color: var(--rich-black-fogra-29-1);
  font-size: 35px;
}

.navbar {
  position: fixed;
  top: 0;
  left: -280px;
  max-width: 280px;
  width: 100%;
  height: 100%;
  background-color: var(--rich-black-fogra-39);
  color: var(--white);
  padding: 30px 20px;
  visibility: hidden;
  transition: 0.25s var(--cubic-out);
  z-index: 4;
}

.navbar.active {
  visibility: visible;
  transform: translateX(280px);
  transition-duration: 0.5s;
}

.navbar .logo,
.nav-close-btn { color: var(--white); }

.navbar .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 25px;
}

.nav-close-btn { font-size: 30px; }

.navbar-link {
    position: relative;
    padding-block: 10px;
    color: var(--white);
    transition: var(--transition-1);
}

.navbar-link:hover,
.navbar-link:focus,
.navbar-link.active {
    color: #9e00ff;
}

/* Línea animada */
.navbar-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 0;
    height: 2px;
    background: #9e00ff;
    border-radius: 10px;
    transition: width .3s ease;
}

.navbar-link:hover::after,
.navbar-link:focus::after,
.navbar-link.active::after {
    width: 100%;
}
.overlay {
  position: fixed;
  inset: 0;
  background-color: hsla(0, 0%, 100%, 0.7);
  visibility: hidden;
  opacity: 0;
  transition: var(--transition-1);
  z-index: 3;
}

.overlay.active {
  visibility: visible;
  opacity: 1;
}


/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background: #fff;
    animation: fadeIn 2s ease;
    border-radius: 10px;
}

.hero h2 {
    font-size: 2.8rem;
    color: #7b2cbf;
    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: #7b2cbf;
    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: #fff;
}

/* 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: #fff;
    padding: 120px 10%;
    text-align: center;
}

.sobre-nosotros h2 {
    font-size: 2.5rem;
    color: #9d4edd;
    text-shadow: 0 0 20px #9d4edd;
    margin-bottom: 30px;
}

.sobre-nosotros p {
    color: #000;
    max-width: 800px;
    margin: 15px auto;
    line-height: 1.8;
    font-size: 1.7rem;
    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 */
.footer {
    background: radial-gradient(circle at top, #0b0013, #000);
    color: #fff;
    padding: 60px 20px 30px;
    font-family: "Poppins", sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    flex: 1 1 300px;
    max-width: 400px;
}

.footer-logo img {
    width: 150px;
    margin-bottom: 15px;
}

.footer-logo p {
    line-height: 1.6;
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-block;
    margin-right: 15px;
    color: #333;
    font-size: 18px;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #7b2cbf;
}

.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;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #7b2cbf;
}

.footer-bottom {
    display: flex;
    justify-content: space-around;
    text-align: center;
    border-top: 1px solid #ddd;
    margin-top: 40px;
    padding-top: 15px;
    font-size: 14px;
    color: #777;
}

.footer-bottom a {
    color: #777;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #7b2cbf;
}

/* 📱 Responsividad */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-links div {
        margin-bottom: 25px;
    }

    .footer-logo img {
        margin: 0 auto 15px;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .card {
        width: 100%;
    }
}

.section-title{
    text-align: center;
    margin: 80px auto 50px;
    max-width: 700px;
    padding: 0 20px;
    text-align: center;
}

.section-title .subtitle{
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: #7c3aed;
    background: rgba(124, 58, 237, .1);
    padding: 8px 18px;
    border-radius: 30px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

.section-title h2{
    text-align: center;
    font-size: clamp(2.3rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #1f2937;
    margin: 0;
    gap: 5px;
}

.section-title h2 span{
    background: linear-gradient(90deg,#7c3aed,#9333ea,#c026d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title .title-line{
    width: 90px;
    height: 5px;
    margin: 20px auto 0;
    border-radius: 20px;
    background: linear-gradient(90deg,#7c3aed,#a855f7,#d946ef);
    box-shadow: 0 0 18px rgba(147,51,234,.45);
}