@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::::::::::::::::::::::::::::::::::::::::::::::::*/

.contenedorPortada {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column; /* nav arriba, texto centrado abajo */
  justify-content: flex-start;
  overflow: hidden;
  z-index: 1;
}

.contenedorPortada::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(2, 2, 2, 0), rgb(0, 0, 0)),
    url('/img/FondoPortada.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 1;
}

.portada {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  z-index: 2;
  color: #fff;
}

.portada h2 {
  font-size: clamp(24px, 6vw, 84px);
  font-family: var(--fuente-montserratBold);
  margin-bottom: 1rem;
}

.portada h4 {
  font-size: clamp(14px, 4vw, 30px);
  font-family: var(--fuente-monntserratMedium);
  line-height: 1.4;
}

/*:::::::::::::::::::::::::::::::::::::::::INTRODUCCION::::::::::::::::::::::::::::::::::::::::::::::::*/

.contenedorintro::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.contenedorintro {
    display: flex;
    justify-content: center;  /* Centrar todo el contenido horizontalmente */
    align-items: center; 
    text-align: center;
    margin-top: 10%;
    margin-bottom: 10%;
}

.contenedorintro p {
    font-family: var(--fuente-monntserratMedium);
    font-size: 25px;
}


/*:::::::::::::::::::::::::::::::::::::::::SERVICIOS::::::::::::::::::::::::::::::::::::::::::::::::*/
.cuadro-servicios {
  background-color: var(--color-hover);
  border: 1px solid #8000ff30;
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
  max-width: 1320px;
  margin: 60px auto;
}

.wrapper {
    position: relative; 
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1rem;
    box-sizing: border-box;
    overflow: hidden; 
}

.wrapper h3 {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: var(--fuente-montserratBold);
    font-size: 35px;
    margin-bottom: 5%;
}


.containercard {
    height: 400px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: start;
}


.card {
    width: 80px;
    border-radius: 2rem;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
    margin: 0 15px;
    display: flex;
    align-items: flex-end;
    margin-bottom: -10%;
    transition: .6s cubic-bezier(.28,-0.03,0,.99);
    box-shadow: 0px 10px 30px -5px rgba(0,0,0,0.8);
}


.card > .row {
    color: var(--color-texto2);
    display: flex;
    flex-wrap: nowrap;
}

.card > .row > .icon {
    background: #223;
    color: white;
    border-radius: 50%;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px;
    font-family: var(--fuente-monntserratMedium);
}

.card > .row > .description {
    display: flex;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    height: 80px;
    width: 520px;
    opacity: 0;
    transform: translateY(30px);
    transition-delay: .3s;
    transition: all .3s ease;
}


.description p {
    color: #8000ff;
    padding-top: 5px;
    font-family: var(--fuente-monntserratMedium);
}

.description h4 {
    text-transform: uppercase;
    font-family: var(--fuente-montserratBold);
}


input {
    display: none;
}


input:checked + label {
    width: 800px;
}

input:checked + label .description {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


.card[for="c1"] {
    background-image: url('/img/desarrolloWeb.png');
}
.card[for="c2"] {
    background-image: url('/img/SEO.png');
}
.card[for="c3"] {
    background-image: url('/img/mantenimientoWeb.png');
}


/*:::::::::::::::::::::::::::::::::::::::::INTERMEDIO INFO::::::::::::::::::::::::::::::::::::::::::::::::*/

.contenedorinfo {
  text-align: center;
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: -15%;
}

.contenedorinfo h2 {
  font-size: 28px;
  font-family: var(--fuente-montserratBold);
  color: var(--color-texto);
  margin-bottom: 10px;
}

.contenedorinfo p {
    font-family: var(--fuente-monntserratMedium);
    font-size: 20px;
    margin-bottom: 80px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Fuerza 3 columnas */
  gap: 40px;
  justify-items: center;
}


.info {
  margin-bottom: 20%;
  text-align: center;
}

.info img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.info h4 {
  font-size: 18px;
  font-family: var(--fuente-montserratBold);
  margin-bottom: 12px;
  color: var(--color-texto);
}

.info p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-texto);
  font-family: var(--fuente-monntserratMedium);
}

/*:::::::::::::::::::::::::::::::::::::::::INTRO::::::::::::::::::::::::::::::::::::::::::::::::*/

.intro {
  width: 100%;
  padding: 2rem 2rem;
  text-align: center;
  background-color: var(--fondoPagina);
  margin-bottom: -50px;
}


.intro h2 {
  font-size: 28px;
  font-family: var(--fuente-montserratBold);
  color: var(--color-hover);
  font-weight: bold;
}

.intro p {
  font-size: 18px;
  font-family: var(--fuente-monntserratMedium);
  margin-top: 10px;
  color: var(--color-texto2);
}

.intro strong {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--color-hover);
}
/*:::::::::::::::::::::::::::::::::::::::::INTERMEDIO::::::::::::::::::::::::::::::::::::::::::::::::*/

.textinfo {
  display: flex;
  align-items: stretch; /* Estira los elementos para que midan lo mismo */
  justify-content: center;
  max-width: 1100px;
  margin: 60px auto;
  margin-bottom: 30px;
  padding: 20px;
  flex-wrap: nowrap; /* Impide que se bajen */
  gap: 0; /* Elimina el espacio, lo controlaremos mejor desde márgenes */
}

.columna-textinfo {
  flex: 1;
  padding: 20px 40px;
}

.columna-textinfo h3 {
    font-family: var(--fuente-montserratBold);
    font-size: 30px;
    margin-bottom: 30px;
}

.columna-textinfo p {
    font-family: var(--fuente-monntserratMedium);
    font-size: 17px;
}

.separador-vertical {
  width: 1px;
  background-color: #ccc;
  height: auto;
  align-self: stretch;
}


@media (max-width: 900px) {
  .textinfo {
    flex-direction: column;
    gap: 40px;
    padding: 20px 20px;
    margin: 40px 20px;
  }

  .columna-textinfo {
    padding: 0; /* más compacto en mobile */
    text-align: center;
  }

  .separador-vertical {
    display: none; /* lo quitamos cuando las columnas se apilan */
  }

  .columna-textinfo h3 {
    font-size: 24px;
  }

  .columna-textinfo p {
    font-size: 16px;
  }
}

/*:::::::::::::::::::::::::::::::::::::::::NOSOTROS::::::::::::::::::::::::::::::::::::::::::::::::*/

.cuadro-nosotros {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-hover);
  border: 2px solid #8000ff20;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 60px;
  gap: 40px;
  max-width: 1320px;
  margin: 60px auto;
  flex-wrap: wrap;
}

.columna-img {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.columna-img img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  object-fit: cover;
}

.columna-txt {
  flex: 1 1 50%;
}

.columna-txt h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-texto);
  margin-bottom: 20px;
  font-family: var(--fuente-montserratBold);
}

.columna-txt p {
  font-size: 16px;
  color: var(--color-texto);
  line-height: 1.6;
  margin-bottom: 16px;
  font-family: var(--fuente-monntserratMedium);
}

.btn-cuadro {
  background-color: #8000ff;
  color: #fff;
  font-size: 14px;
  font-family: var(--fuente-monntserratMedium);
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
  display: inline-block;
}

.btn-cuadro:hover {
  background-color: #5800c9;
}


@media (max-width: 1024px) {
  .cuadro-nosotros {
    padding: 40px;
    margin: 40px 30px;
  }
}

@media (max-width: 768px) {
  .cuadro-nosotros {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    margin: 30px 20px;
  }

  .columna-img, .columna-txt {
    flex: 1 1 100%;
  }

  .columna-txt h2 {
    font-size: 24px;
  }

  .columna-txt p {
    font-size: 15px;
  }
}

/*:::::::::::::::::::::::::::::::::::::::::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;
}

/*:::::::::::::::::::::::::::::::::::::::::RESPONSIVE::::::::::::::::::::::::::::::::::::::::::::::::*/

/* RESPONSIVE STYLES FOR TARJETAS */

@media (max-width: 1024px) {
  .cuadro-servicios {
    margin: 40px 30px;
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .cuadro-servicios {
    margin: 30px 20px;
    padding: 25px 20px;
  }
}

@media (max-width: 1024px) {
  .containercard {
    flex-direction: column;
    align-items: center;
    height: auto;
  }

  .card {
    width: 90% !important;
    margin: 20px 0;
  }

  .card > .row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card > .row > .description {
    width: 100%;
    height: auto;
    opacity: 1;
    transform: translateY(0);
  }

  input:checked + label {
    width: 90% !important;
  }
}

@media (max-width: 600px) {
  .wrapper h3 {
    font-size: 24px;
  }

  .card > .row > .icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .description h4 {
    font-size: 16px;
  }

  .description p {
    font-size: 14px;
  }

}

/* RESPONSIVE STYLES FOR INTRO */
@media (max-width: 600px) {
  .contenedorintro {
   
    margin-top: 20%;
    margin-bottom: 20%;
  }

  .contenedorintro p {
    font-size: 18px;
    line-height: 1.6;
  }
}

/* RESPONSIVE STYLES FOR INFO */
@media screen and (max-width: 1024px) {
  .contenedorinfo {
    padding: 60px 30px;
    margin-bottom: 0;
  }

  .contenedorinfo h2 {
    font-size: 24px;
  }

  .contenedorinfo p {
    font-size: 18px;
    margin-bottom: 50px;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    gap: 30px;
  }

  .info {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 600px) {
  .contenedorinfo h2 {
    font-size: 20px;
  }

  .contenedorinfo p {
    font-size: 16px;
  }

  .info-grid {
    grid-template-columns: 1fr; /* 1 columna en móviles */
    gap: 25px;
  }

  .info img {
    width: 60px;
    height: 60px;
  }

  .info h4 {
    font-size: 16px;
  }

  .info p {
    font-size: 14px;
  }
}
