@font-face {  
    font-family: 'montserrat-Bold';  
    src: url(/fonts/Montserrat-Bold.ttf) format('truetype');
    font-weight: normal;  
    font-style: normal;  
}

@font-face {  
    font-family: 'montserrat-Medium';  
    src: url(/fonts/Montserrat-Medium.ttf) format('truetype');
    font-weight: normal;  
    font-style: normal;  
}

/* Definición de variables globales para colores y fuentes */
:root {
    --fuente-montserratBold: 'Montserrat-Bold', sans-serif; /* Fuente principal para el texto */
    --fuente-monntserratMedium: 'Montserrat-Medium', sans-serif;       /* Fuente para títulos destacados */
    
    --fondoPaginaWeb: #000000;
    --fondoPagina: #ffffff;
    --color-texto: #ffffff;
    --color-texto2: #1b1b1b;
    --color-hover: #c2aff7;
    
}

/*:::::::::::::::::::::::::::::::::::::::::BODY PAGINA::::::::::::::::::::::::::::::::::::::::::::::::*/

/* Reset de márgenes y rellenos para todos los elementos */
* {
    padding: 0; /* Eliminar todo el relleno predeterminado */
    margin: 0;  /* Eliminar todos los márgenes predeterminados */
}

/* Estilos para el cuerpo de la página */
body {
    background-color: var(--fondoPaginaWeb) ; /* Fondo de la página utilizando la variable definida */
    color: #fafafa;          /* Color del texto principal utilizando la variable definida */
    box-sizing: border-box;                   /* Incluir el relleno y borde dentro del ancho/alto total del elemento */
    
}

/*:::::::::::::::::::::::::::::::::::::::::ENCABEZADO::::::::::::::::::::::::::::::::::::::::::::::::*/

.nav {
  background-color: transparent;
  height: 80px;
  color: #fff;
  position: relative;
  z-index: 200; /* Asegura que todo el nav esté encima */
}

.nav__container {
  display: flex;
  height: 90%;
  width: 90%;
  margin: 0 auto;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 200; /* ⬆️ Logo y botón por encima del menú */
}

.nav__container img {
  height: 240px;
  width: auto;
  object-fit: contain;
}

.nav__menu {
  display: grid;
  grid-auto-flow: column;
  gap: 2em;
}

.nav__item {
  color: #fff;
  text-decoration: none;
  font-family: var(--fuente-montserratBold);
  font-size: 15px;
  --clippy: polygon(0 0, 0 0, 0 100%, 0% 100%);
}

.nav__item::after {
  content: "";
  display: block;
  background: #fff;
  width: 90%;
  margin-top: 3px;
  height: 3px;
  clip-path: var(--clippy);
  transition: clip-path .3s;
}

.nav__item:hover {
  --clippy: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  color: var(--color-hover);
}

.nav__logo {
  font-size: 20px;
  font-family: var(--fuente-montserratBold);
  font-weight: 900;
}

.nav__label,
.nav__input {
  display: none;
}

@media (max-width: 700px) {
  .nav__label {
    display: block;
    cursor: pointer;
    z-index: 200;
    position: relative;
  }

  .nav__img {
    width: 30px !important;
    height: auto !important;
  }

  .nav__input {
    display: none;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #5d18b9;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    clip-path: circle(0 at center);
    transition: clip-path 0.8s ease-in-out;
    z-index: 100; /* ⬅️ Menú debajo del logo y botón */
  }

  .nav__input:checked ~ .nav__menu {
    clip-path: circle(150% at center);
  }

  .nav__container img {
    height: 170px;
  }

  .nav__menu .nav__item {
    font-size: 20px;
    margin: 10px 0;
  }
}



/*:::::::::::::::::::::::::::::::::::::::::PORTADA::::::::::::::::::::::::::::::::::::::::::::::::*/

.hero-final {
  background: linear-gradient(to bottom, #faf7ff 0%, #ffffff 100%);
  padding: 120px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #1a1a1a;
  z-index: 1; /* aseguramos que esté por debajo del nav */
}

.hero-final::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #8000ff20 0%, transparent 70%);
  z-index: 0; /* está al fondo */
}

.hero-contenido {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-contenido h2 {
  font-size: 50px;
  font-family: var(--fuente-montserratBold);
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-contenido h2 span {
  font-family: var(--fuente-monntserratMedium);
  color: #8000ff;
  font-style: italic;
}

.hero-contenido h2 small {
  display: block;
  font-size: 25px;
}

.hero-contenido p {
  font-family: var(--fuente-monntserratMedium);
  font-size: 20px;
}

.hero-contenido a {
  font-family: var(--fuente-montserratBold);
  font-size: 20px;
}

.hero-contenido a:hover {
  color: #5800c9;
}


/*:::::::::::::::::::::::::::::::::::::::::FORMULARIO::::::::::::::::::::::::::::::::::::::::::::::::*/

.contacto-digitech {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: var(--color-hover);
  border-radius: 20px;
  padding: 60px 40px;
  gap: 60px;
  max-width: 1200px;
  margin: 80px auto;
  flex-wrap: wrap;
}

.contacto-info {
  flex: 1 1 45%;
}

.contacto-info h2 {
  font-size: 32px;
  color: #f5f5ff;
  font-family: var(--fuente-montserratBold);
  margin-bottom: 20px;
}

.contacto-info p {
  font-size: 16px;
  line-height: 1.6;
  color: #f5f5ff;
  font-family: var(--fuente-monntserratMedium);
  margin-bottom: 16px;
}

.contacto-formulario {
  flex: 1 1 45%;
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contacto-formulario form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacto-formulario input,
.contacto-formulario select,
.contacto-formulario textarea {
  font-size: 14px;
  font-family: var(--fuente-monntserratMedium);
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  outline: none;
}

.contacto-formulario button {
  background-color: #8000ff;
  color: #fff;
  font-size: 15px;
  font-family: var(--fuente-monntserratMedium);
  padding: 14px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s ease;
}

.contacto-formulario button:hover {
  background-color: #6700cc;
}

#mensaje-exito {
  font-family: var(--fuente-monntserratMedium);
}

@media (max-width: 768px) {
  .contacto-digitech {
    padding: 40px 20px;
    margin: 40px 20px;
    flex-direction: column;
    align-items: center;
  }

  .contacto-info,
  .contacto-formulario {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


/*:::::::::::::::::::::::::::::::::::::::::CONTACTOS::::::::::::::::::::::::::::::::::::::::::::::::*/

.contacto-directo {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0px auto;
  max-width: 1200px;
}

.tarjeta-contacto {
  background-color: #eae6ff;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 300px;
  text-decoration: none;
  color: #1a1a1a;
  transition: 0.3s;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.tarjeta-contacto:hover {
  background-color: #ded9ff;
  transform: translateY(-5px);
}

.icono-contacto {
  background-color: #fff;
  border-radius: 50%;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
}

.icono-contacto img {
  width: 24px;
  height: 24px;
}

.contenido-contacto h4 {
  font-size: 16px;
  font-family: var(--fuente-montserratBold);
  margin: 0 0 6px 0;
}

.contenido-contacto p {
  font-size: 14px;
  color: #555;
  margin: 0;
  font-family: var(--fuente-monntserratMedium);
}

.flecha {
  margin-left: auto;
  font-size: 24px;
  color: #8000ff;
}

@media (max-width: 768px) {
  .contacto-directo {
    padding: 0 16px;
    gap: 16px;
  }

  .tarjeta-contacto {
    flex-direction: row; /* 👈 Mantenemos en fila */
    align-items: center;
    padding: 20px;
    gap: 14px;
  }

  .icono-contacto {
    width: 48px;
    height: 48px;
    padding: 10px;
    flex-shrink: 0; /* evita que se achique */
  }

  .icono-contacto img {
    width: 22px;
    height: 22px;
  }

  .contenido-contacto {
    flex-grow: 1; /* el texto toma el resto del espacio */
  }

  .contenido-contacto h4 {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .contenido-contacto p {
    font-size: 13px;
  }

  .flecha {
    font-size: 20px;
    margin-left: auto;
  }
}


/*:::::::::::::::::::::::::::::::::::::::::::INTRO2::::::::::::::::::::::::::::::::::::::::::::::*/

.contenedorsinweb {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1400px;
  margin-top: 20px;
  padding: 0 20px;
  flex-wrap: nowrap;
}

.imagen-izquierda {
  flex: 1 1 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.imagen-izquierda img {
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.texto-derecha {
  flex: 1 1 35%;
}

.texto-derecha h2 {
  font-size: 28px;
  font-family: var(--fuente-montserratBold);
  color: var(--color-texto);
  margin-bottom: 30px;
}

.texto-derecha p {
    font-family: var(--fuente-monntserratMedium);
    font-size: 20px;
}

@media (max-width: 768px) {
  .contenedorsinweb {
    flex-direction: column; /* Cambia de fila a columna */
    padding: 0 16px;
    gap: 24px;
    align-items: center;
  }

  .imagen-izquierda {
    flex: none;
    width: 100%;
    max-width: 300px;
  }

  .imagen-izquierda img {
    max-width: 100%;
    height: auto;
  }

  .texto-derecha {
    flex: none;
    width: 100%;
    text-align: center;
  }

  .texto-derecha h2 {
    font-size: 22px;
  }

  .texto-derecha p {
    font-size: 16px;
  }
}


/*:::::::::::::::::::::::::::::::::::::::::PREGUNTAS FRECUENTES::::::::::::::::::::::::::::::::::::::::::::::::*/

.faqs-digitech {
  width: 1320px;
  margin: 80px auto;
  padding: 60px;
  background-color: var(--color-hover); /* fondo clarito */
  border: 2px solid #8000ff20;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  font-family: var(--fuente-monntserratMedium);
}

.faqs-digitech h2 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 50px;
  color: var(--color-texto);
  font-family: var(--fuente-montserratBold);
}

.faq-item {
  border: 1px solid #ddd;
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  background-color: #fff;
}

.faq-item h3 {
  margin: 0;
  padding: 20px 24px;
  cursor: pointer;
  background-color: #f5f5f5;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  position: relative;
  transition: background-color 0.3s ease;
}

.faq-item h3::after {
  content: "+";
  position: absolute;
  right: 24px;
  font-size: 22px;
  transition: transform 0.3s ease;
}

.faq-item.active h3::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 24px 20px;
  margin: 0;
  display: none;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.faq-item.active p {
  display: block;
}

.faq-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.faq-item.active h3 {
  background-color: #eae2ff;
  color: #8000ff;
}
 

/*:::::::::::::::::::::::::::::::::::::::::FOOTER::::::::::::::::::::::::::::::::::::::::::::::::*/

.footer {
    background-color: var(--fondoPaginaWeb);
    padding: 20px;                           /* Espaciado del pie de página */
    color: #ffffff;            /* Color del texto */
    text-align: center;                       /* Centrar texto */
    font-family: var(--fuente-montserratBold);   /* Usar fuente Montserrat */
    font-size: 12px;                       /* Tamaño de fuente */
    font-weight: 400;                        /* Grosor de fuente */
    margin-top: 5%;
}

.footer b {
    background: linear-gradient(90deg, #a387f0, #f8eded, #a387f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}