@charset "utf-8";
/* CSS Document */

/*minimizar texto pcon pantalla inferior a 600px*/
@media screen and (max-width: 600px) {
  h3 {
    font-size: 40%;
  }
}

#header {
  width: 100%;
  float: center;
  margin-top: 5px;
}

/*valores de body*/
body {
  font: 400 1em/1.5 "Neuton";
  border: 3px solid;
  box-sizing: border-box;
  border-color: var(--myColor);
  padding: 0px;
  text-align: justify;
  background-color: #f5f5f5;
  width: 100%;
}

/*texto en header*/
h1 {
  color: darkgray;
  font-size: 150%;
  text-align: center;
  letter-spacing: 0.5em;
  display: inline-block;
  border: 4px double darkgrey;
  border-width: 4px 0;
  padding: 1.5em 0em;
  padding-top: 15px;
  position: absolute;
  z-index: -1;
  top: 10%;
  left: 50%;
  width: 40em;
  margin: 0 0 0 -20em;
}

/*minimizar texto con pantalla inferior a 600px*/
@media screen and (max-width: 600px) {
  h1 {
    font-size: 40%;
  }
}

/*Cabecera con fondo en movimiento*/
h2 {
  color: white;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  display: inline-block;
  border: 4px double darkgrey;
  border-width: 4px 0;
  padding: 1.5em 0em;
  padding-top: 15px;
  /*position: absolute; cambio noe*/
  z-index: -1;
  top: 10%;
  left: 50%;
  width: 40em;
  margin: 0 0 0 -20em;
  -webkit-text-stroke-width: 1px !important;
  -webkit-text-stroke-color: hsl(0, 1.3%, 44.5%) !important;
}

/*minimizar texto pcon pantalla inferior a 600px*/
@media screen and (max-width: 600px) {
  h2 {
    font-size: 40%;
  }
}

/*Efectos en el nombre*/

.name {
  /* 1. Eliminamos el trazo de color llamativo y usamos uno más sutil o lo quitamos */
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.1) !important; 
  
  /* 2. Aplicamos el gradiente de volumen (Gris Acero a Negro Profundo) */
  background: linear-gradient(180deg, #666666 0%, #222222 50%, #000000 100%);
  
  /* 3. Recorte para que el gradiente solo afecte al texto */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  /* 4. Tipografía y Estética */
  font: 700 4em/1 "Oswald", sans-serif;
  text-transform: uppercase; /* La mayúscula refuerza la elegancia */
  letter-spacing: 6px;       /* Espaciado amplio para un look premium */
  padding: 0.25em 0;
  display: block;
  margin: 0 auto;
  
  /* 5. Eliminamos animaciones y filtros innecesarios */
  -webkit-animation: none !important;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

  /* Clip Background Image */

  background-image: url("multimedia/animated2.png");
  background-repeat: repeat-y;
  -webkit-background-clip: text;
  background-clip: text;

  /* Animate Background Image */

  -webkit-text-fill-color: transparent;
  -webkit-animation: aitf 150s linear infinite;

  /* Activate hardware acceleration for smoother animations */

  -webkit-transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
}

/* Animate Background Image */

@-webkit-keyframes aitf {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

#cabecera {
  padding-top: 50px;
  padding-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

#cabecera.smaller {
  padding: 10px;
  left: 100px;
  font-size: 40%;
  box-shadow: none;
  position: fixed;
}
#cabecera.smaller h2 {
  border-right: 4px double;
  border-left: 4px double;
  border-top: 0;
  border-bottom: 0;
}
.tl.smaller {
  padding-top: 100px;
}

@media (max-width: 1200px) {
  #cabecera.smaller {
    font-size: 30%;
  }
}

/*minimizar texto p con pantalla inferior a 600px*/
@media screen and (max-width: 600px) {
  p {
    font-size: 20px;
  }
}

/* estilos de cabeceras*/
h3 {
  font-family: "Neuton";
  text-align: center;
  letter-spacing: 0.5em;
}

/* P texto CV-de la cancha a la programación*/

#cv {
  top: 80px;
  font-family: "Megrim", cursive;
  text-align: center;
  padding-left: 50px;
  z-index: 10;
  position: relative;
  padding-bottom: 120px;
}

h4 {
  font-family:
    "Neuton",
    Extra-light 200;
  color: white;
  color: whitesmoke;
  text-align: center;
  padding-top: 5px;
}

h5 {
  font-family:
    "Neuton",
    Extra-light 200;
  padding-left: 20px;
  color: white;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: none;
  z-index: 1;
}

*,
*:after,
*:before {
  box-sizing: inherit;
}

* {
  margin: 0;
  padding: 0;
  border: 0 none;
  position: relative;
}
:root {
  --sinSerif:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
    "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  /* hexagon */
  --gap: 2vmin;
  --radio: calc(100vmin / 3);
  --width: calc(var(--radio) * 0.866);
  --height: var(--radio);
  /* colors*/
  --negroO: #1d1f20;
  --negroM: #292f33;
  --negroC: #444448;
  --gris: #999;
  --blancoS: #e1e8ed;
}

html {
  box-sizing: border-box;
  font-family: var(--sinSerif);
  font-size: 1rem;
  color: var(--gris);
}

/* Creando el grid del panel*/
section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  /*grid-gap: 1.3vmin;*/
  max-width: 90vmin;
  /*padding-left: 2vmin;*/
  margin: 0.5rem auto;
  /*padding-top: 110px;*/
  text-align: center;
}

article {
  /* Sustituimos el color sólido por un gradiente */
  background: linear-gradient(145deg, #3a3a3a, #222222);

  width: var(--width);
  height: var(--height);
  overflow: hidden;
  transition: all 0.5s ease; /* Transición más fluida */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);

  /* El drop-shadow en blanco puede verse algo "sucio" en diseños elegantes, 
     mejor un brillo sutil o una sombra oscura profunda */
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));

  display: flex; /* Para centrar el contenido mejor */
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #e0e0e0; /* Texto en un gris muy claro, no blanco puro */
}

/* Efecto Interaction para aumentar la sofisticación */
article:hover {
  transform: translateY(-5px); /* Pequeño salto hacia arriba */
  background: linear-gradient(
    145deg,
    #444444,
    #2a2a2a
  ); /* Se aclara sutilmente */
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

/* Creando los paneles de abeja */

article:nth-of-type(1) {
  grid-column: 2 / span 2;
  grid-row: 1;
}

article:nth-of-type(2) {
  grid-column: 4 / span 2;
  grid-row: 1;
}

article:nth-of-type(3) {
  grid-column: 1 / span 2;
  grid-row: 2;
}

article:nth-of-type(4) {
  grid-column: 3 / span 2;
  grid-row: 2;
}

article:nth-of-type(5) {
  grid-column: 5 / span 2;
  grid-row: 2;
}

article:nth-of-type(6) {
  grid-column: 2 / span 2;
  grid-row: 3;
}

article:nth-of-type(7) {
  grid-column: 4 / span 2;
  grid-row: 3;
}

/* Ajustando el vertical*/
article:nth-of-type(-n + 2) {
  margin-bottom: calc(var(--height) * -0.2);
}

article:nth-of-type(n + 6):nth-of-type(-n + 7) {
  margin-top: calc(var(--height) * -0.2);
}

figure {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  height: 100%;
  font-size: calc(1rem + 1vmin);
  line-height: 1.2;
  transition: 0.75s 0.05s;
  hyphens: auto;
  text-align: center;
}

.article img,
.article [class*="svg-icon"] {
  background: #fff;
  min-width: var(--radio);
  min-height: var(--radio);
  max-width: var(--width);
  max-height: var(--height);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: 50% 0%;
  transition: 1s;
  clip-path: url(#hexagono);
  clip-path: inherit;
  z-index: 10;
  background-color: #050505;
}

article:hover img,
article:hover [class*="svg-icon"] {
  transform: translate(-50%, -50%) rotateY(0.25turn);
}

figure p {
  font-size: 70%;
  line-height: 1.2;
  font-weight: 100;
  width: 100%;
}

a {
  display: block;
  color: var(--gris);
  text-decoration: none;
  font-size: 1.1em;
}

a:hover {
  color: var(--blancoS);
}

svg {
  clip-rule: evenodd;
  fill-rule: evenodd;

  image-rendering: optimizequality;
  shape-rendering: geometricprecision;
  text-rendering: geometricprecision;
}

footer {
  /*position: absolute;
		bottom: 0;
		width: 100%;
		padding-left: 0px;
		padding-right: 0px;
		color: black;
		vertical-align:middle;*/
  padding-bottom: 16px;
}
/*Botón con link para visualizar e imprimir CV. */

@media only screen and (max-width: 768px) {
  /* For mobile phones: */
  section.tl {
    display: block;
    border-spacing: 100px;
    align-self: center;
    max-width: 96vmin;
    padding-top: 0;
  }
  .article {
    width: 70vmin;
    height: 75vmin;
    margin: 0 auto;
  }

  article:nth-of-type(n + 6):nth-of-type(-n + 7),
  article:nth-of-type(-n + 2) {
    margin: 0 auto;
  }

  .article img {
    max-width: 80vmin !important;
    max-height: 100vmin;
  }
}

/*Carrousel empresas*/
.empresas {
  margin-top: 20%;
  margin-bottom: 50px !important;
  text-align: center;
  overflow: hidden;
  width: 100%;
}

.slider {
  display: flex;
  overflow: hidden;
}

.logo {
  width: 100px;
  margin: 0 20px;
  text-align: center;
  opacity: 0;
  animation: logoAnimation 15s linear infinite;
}

.logo img {
  max-width: 100%;
}

@keyframes logoAnimation {
  0%,
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
  10%,
  90% {
    transform: translateX(0);
    opacity: 1;
  }
}

/*Modal proyectos*/

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 95vw; /* Ancho del 90% del viewport width */
  height: 95vh; /* Altura del 90% del viewport height */
  max-width: 60%; /* Máximo ancho */
  max-height: 100%; /* Máxima altura */
  overflow: hidden; /* Para evitar el desbordamiento */
  background-color: #3498db; /* Color de fondo inicial */
  z-index: 1000; /* Un valor alto para asegurar que esté por encima de otros elementos */
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-content {
  width: 100%;
  height: 100%;
  overflow: auto; /* Añadir barra de desplazamiento si es necesario */
  text-align: left;
  padding: 20px;
}

.close {
  color: darkorange;
  position: absolute;
  bottom: 10px; /* Ajuste para colocar en la parte inferior */
  left: 48%; /* Centrar horizontalmente */
  font-size: 100px;
  cursor: pointer;
}

/* Ajuste para una animación más pronunciada */
.modal:hover {
  transform: translate(-50%, -50%) scale(1.1);
}
#hexagonalModal,
#hexagonalModal2,
#hexagonalModal3,
#hexagonalModal4,
#hexagonalModal5,
#hexagonalModal6 {
  background: rgba(15, 5, 5, 0.4);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(7.3px);
  -webkit-backdrop-filter: blur(7.3px);
}
#modal-content-div {
  margin-top: 10%;
}
#modal-content-div h6 {
  font-size: 35px;

  color: white;
  text-align: center;
}

/* Estilo para los logotipos */
.logo-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
}

.logo {
  max-width: 100px; /* Ajusta el tamaño según sea necesario */
  margin: 10px; /* Ajusta el margen según sea necesario */
}

/* MODAL */

#modal-content-div {
  margin-top: 0;
  position: absolute;
  top: 10%;
  left: 0;
  right: 0;
  bottom: 20%;
  display: grid;
  grid-template-rows: 12.5% 87.5%;
  overflow: hidden;
}

#modal-content-div > .modal-inner {
  padding: 16px;
  overflow: auto;
}

.swiper-slide {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.swiper-slide-list ul,
.swiper-slide-list ul li {
  font-size: 20px;
}

.swiper-slide-project {
  display: relative;
  max-width: 100%;
  max-height: 100%;
}

.swiper-slide-project img {
  max-width: 100%;
  object-fit: cover;
}

.swiper-slide-project-details {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.79);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.swiper-slide-project-details ul {
  list-style: none;
}

.swiper-slide-project-tech {
  width: 100%;
  display: flex;
  justify-content: center;
}

.swiper-slide-project-tech ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.swiper-slide-project-tech ul li {
  min-width: 60px;
  font-size: 14px;
  border-radius: 100px;
  padding: 4px 8px;
  background-color: black;
  font-weight: 700;
  color: white;
}

@media only screen and (max-width: 768px) {
  .modal {
    max-width: 95%;
  }
}
