/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ocultar el carril de la barra de desplazamiento */
::-webkit-scrollbar {
  width: 0; 
  background: #333; 
}

/* Personaliza el deslizador (thumb) */
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px; 
}

/* Opcional: Personaliza el comportamiento cuando el usuario interactúa */
::-webkit-scrollbar-thumb:hover {
  background: #666;
}


/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    line-height: 2;
    color: #333;
    margin: 0;
    padding: 0;
	background: url('/assets/images/ReglaGyG.svg') top right repeat-y;
	background-size: 50px auto;
	background-color: #F7F7F7;
	height: 100%;
	overflow-x: hidden;
	
}

h1 {
    font-size: 3rem;
	line-height: 1.2;
    color: #333333;
    margin-bottom: 1rem;
	margin-top: 2rem;
}

h2 {
    font-size: 2rem;
	line-height: 1.2;
    color: #333333;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.7rem;
	line-height: 1.2;
    color: #333333;
    margin-bottom: 1rem;
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #333333;
	font-size: 1rem;
	margin: 0;
	padding: 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	height: auto;
	transition: height 0.3s ease;
	
}

nav ul {
	list-style: none;
	display: none; 
	flex-direction: column; 
	margin: 0;
	padding: 0 50px 0 0;
	background: #333333;
	position: absolute; 
	top: 50px; 
	right: 1rem; 
	width: auto; 
	border-radius: 0 0 10px 10px; 
	text-align: center;
	text-transform: uppercase;
	transform: translateX(70px);
}

nav details[open] ul {
	display: flex; /* Cambia a flex para mostrarlo verticalmente */
	margin: 0;
}

nav ul li {
	padding: 0.5rem 1rem;
	margin: 0;
}

nav ul li a {
	color: #CCC;
	text-decoration: none;
	transition: color 0.3s ease;
}

nav ul li a:hover {
	color: #FC0;
	text-decoration: none;
}

nav details {
	height: 50px;
}

/* Estilo para eliminar el triángulo del details */
nav details > summary {
	display: flex;
	align-items: center;
	cursor: pointer;
	list-style: none;
}

nav details > summary::-webkit-details-marker {
	display: none;
}

#NotFoundGyG {
	width: 50%;
	max-width: 600px;
	margin: 0 auto;
}

.menu-logo {
	width: auto;
	height: 50px;
	margin: 0 10px 0 10px;
	transform: translate(20px);
}

.menu-boton {
	width: auto;
	height: 50px;
	margin: 0 10px 0 10px;
}

.menu-boton line {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center; 
}

/* Estado abierto: líneas transformadas en X */
details[open] .menu-boton line:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

details[open] .menu-boton line:nth-child(2) {
  opacity: 0; /* Ocultar la línea del medio */
}

details[open] .menu-boton line:nth-child(3) {
  transform: rotate(-45deg) translate(10px, -10px);
}


#punteroGyG {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
}


header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100vh - 50px);
    background: 
        url('/assets/images/EscuadraGyG.svg') top left no-repeat,
        url('/assets/images/BackgroundGyG_anima.svg') center no-repeat,
        linear-gradient(-30deg, rgba(255, 204, 0, 0) 70%, rgba(255, 204, 0, 1) 70%);
    background-size: 40% auto, cover, cover;
    padding: 0;
}

.logo-container, .eslogan-container {
    display: flex;
    align-items: flex-start; /* Cambiará según el media query */
    width: 100%;
    text-align: center;
}

.logo-container {
    flex: 1;
	margin-top: 2rem;
	justify-content: center;
}

.eslogan-container {
    flex: 1;
    flex-direction: column;
    justify-content: flex-end; /* Cambiará según el media query */
    width: 100%;
	max-width: 600px;
    margin: 0 auto ;
}

.logo, .logoB {
    width: 200px;
    height: auto;
}

header p {
    font-size: 1rem;
	margin: 0 auto 2rem auto;
}

/* Estilos para pantallas horizontales */
@media (min-aspect-ratio: 3/2) {
   header {
        flex-direction: column;
        justify-content: flex-start;
	    background: 
        url('/assets/images/EscuadraGyG.svg') top left no-repeat,
        url('/assets/images/BackgroundGyG_anima.svg') calc(20vw) calc(50% - 50px) no-repeat,
        linear-gradient(-30deg, rgba(255, 204, 0, 0) 70%, rgba(255, 204, 0, 1) 70%);
        background-size: 30% auto, cover, cover;
    }  

    .logo-container, .eslogan-container {
        width: 60%;
        text-align: center;
        padding: 1rem;
    }
	
	.logo-container {
        align-items: flex-end; /* Para el eslogan */
    }
	
	.eslogan-container {
		justify-content: flex-start;
        align-items: center; /* Para el eslogan */
		max-width: none;
		margin: 0 auto 0 0;
    }

    .logo {
        align-self: flex-end;
    }
	
	header h2 {
	font-size: 2.5rem;
    max-width: 500px;
	margin: 0 auto;	
	
}
}


header h1 {
	font-size: 2.5rem;
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0; /* Oculta el texto del h1 */
}

/* Main content */
main {

	margin: 0;
	min-height: 100%; /* Ocupa al menos toda la altura */
    display: flex;
    flex-direction: column;
    
    
}

section {
	padding: 2rem 1rem;
	width: 100%;
	margin: 0;
/*	border-bottom: 1px solid #666666;  */
}

.textbox {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto 2rem auto;
	text-align: center;
}

.textoGeneral {
	width: 80%;
	max-width: 800px;
	margin: 0 auto 2rem auto;
}

.textoGeneral p {
	margin-bottom: 1em;
}

section p {
	margin: 0 4rem 1rem 4rem;
}

ul {
    list-style-type: disc;
    margin-left: 1.5rem;
	margin-bottom: 1rem;
    padding-left: 0.5rem;
}

#work ul {
    list-style-type: none;
    margin-left: 1.5rem;
	margin-bottom: 1rem;
    padding-left: 0.5rem;
}

#about, #support, #clients, #contact  {
	text-align: center;
}

#introduction  {
	color:#CCCCCC;
	background: #333333;
	text-align: center;
}

#introduction h2 {
	color:#FFFFFF;
}

/* Fondos de muestra dinámicos */
#GyG-samples {
  position: relative;
  width: 100%; /* Ocupa todo el ancho */
  height: calc(100vw * 0.75); /* Calcula la altura en función del ancho */
  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease-in-out;
 /* display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;  */
}

/* Portafolios en red */

#services h2 {
	    display: none;
}

/* Contenedor principal */
.portfolio-grid {
  display: grid;
  gap: 20px; /* Espaciado entre las imágenes */
  width: 100%; /* Ocupa todo el ancho de la pantalla */
  padding: 0;
  margin: 50px 0 50px 0;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas por defecto */
  grid-auto-rows: 1fr; /* Todas las filas tienen la misma altura */
}

/* Estilo para cada elemento de la retícula */
.portfolio-item {
  position: relative; /* Habilita posicionamiento relativo para los elementos hijos */
  height: 0;
  padding-top: 75%; /* Mantiene la proporción 4:3 */
  overflow: hidden; /* Asegura que nada sobresalga del contenedor */
  border-radius: 10px;
  border: 1px solid #CCC;
}

/* Imagen de fondo */
.portfolio-item .image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* Texto sobre la imagen en forma de cápsula */
.portfolio-item .caption {
  position: absolute;
  bottom: 10px; 
  right: 0; 
  background: rgba(0, 0, 0, 0.7); 
  color: #fff; 
  padding: 4px 25px ; 
  font-size: 0.9rem;
  border-radius: 10px 0 0 10px; 
  display: inline-block; 
  white-space: nowrap; 
}

#portfolios, #testimonials {
	background: linear-gradient(-30deg, rgba(247, 247, 247, 0) 40%, rgba(247, 247, 247, 0.75) 70%) no-repeat,
	url("/assets/images/PatternGyG.svg") repeat;
	background-repeat: no-repeat, repeat;
	background-attachment: scroll, fixed;
	background-size: auto, 50%;	
}

#services {
	text-align: center;
	}

#contact  {
		background:
		url('/assets/images/Angulo30.svg') bottom right no-repeat,	
		linear-gradient(150deg, rgba(255, 204, 0, 0) 75%, rgba(255, 204, 0, 1) 75%);
		background-size: 50vw, auto;
	}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



/* Estilos Json */

  #EnlaceGyGinfographics {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    height: auto;
    max-height: 600px;
    margin: auto;
	border-radius: 15px;
  }

.ExtraBonus {
	text-align: center;
	}

  .Flexo {
            background-image: url('/assets/images/Flexo-GyG-reflejo.svg');
            background-size: cover;
            background-position: center;
            width: 100%;
            aspect-ratio: 920 / 1200; /* Maintains the aspect ratio */
            display: flex;
            flex-direction: column;
        }

        .Flexo > div:first-child {
            flex: 0 0 60%; /* Occupies 60% of the height */
        }

        .Flexo > div:last-child {
            flex: 0 0 40%; /* Occupies 40% of the height */
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .Flexo h2 {
            margin: 0 1ch;
			line-height: 1.2;
			font-size: calc(2rem + 4vw);
            text-align: center;
			position: relative;
            top: -1em;
        }

@media (max-width: 600px) {
 .Flexo h2 {
                top: -0.5em; /* Reduces the upward movement for smaller screens */
            }
        }

/* Mi foto e imágenes */
.sample {
	max-width: 600px;
	width: 80%;
}

.heroGyG {
	width: 100%;
}

.Reducir {
	display: flex;
	max-width: 300px;
	align-self: center;
	align-items: center; /* Centra verticalmente */
	justify-content: center; /* Centra horizontalmente (opcional) */
	margin: 0 auto;
}

/* Doble columna */

.doubleColumn {
  display: flex;
  justify-content: space-between; /* Espacio uniforme entre las columnas */
  flex-wrap: wrap; /* Permite que los elementos se acomoden en filas si no hay espacio */
/*  gap: 20px;  Espaciado entre las columnas (opcional) */
  align-items: flex-start;	
}

.ContenedorDeFoto {
  flex: 1 1 40%; /* La imagen ocupará el 40% del ancho del contenedor */
  text-align: center; /* Centra la imagen dentro de su contenedor (opcional) */	
}

.MiFoto {
	width: 100%;
	height: auto;
	border-radius: 15px;
	filter: grayscale(100%);
}

.doubleColumn > div:nth-child(1) {
  flex: 1 1 60%; /* El texto ocupará el 60% del ancho del contenedor */
}

/* Doble columna destacada */

.destaca {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: #FFF;
  border-left: 1px solid #666;
}

.destaca p {
  flex: 1 1 50%;
  text-align: left;
  max-width: 380px;
  margin: 10px;
  padding: 10px;	
}

.destaca img {
  flex: 1 1 50%;
  text-align: center;
  width: 100%;	
  max-width: 380px;
}

@media (max-width: 768px) { /* Ajusta según el tamaño que consideres "pantalla pequeña" */
	section p {
		margin: 0 0 1rem 0;
	}
	.menu-logo, .menu-boton {  
    	height: 40px;  
	}

    .logo {
        width: 150px;
    }
	.logo-container {
		flex: 2;
	}
	.eslogan-container {
		justify-content: space-around;
		max-width: 450px;
	}
	.logoB {
    	width: 150px; 
	}	
    .portfolio-grid {
    	grid-template-columns: 1fr;
    }
	.destaca {
    	justify-content: center;
    }
	.destaca p, .destaca img {
    	flex: 1 1 100%; 
		margin: 10px;
  }
	#NotFoundGyG {
		width: 70%;
}
}


/* Reseñas */


.testimonials {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsivo */
  gap: 20px;
}

/* Reset general para details */
details {
  all: unset;
}

summary {
  cursor: pointer;
  margin-bottom: 10px;
  outline: none; /* Elimina el borde al hacer clic */
}

#work summary {
  cursor: pointer;
  margin-bottom: 0;
  outline: none; /* Elimina el borde al hacer clic */
}

#work ul, #work ol {
  padding-left: 0; /* Elimina el espacio a la izquierda del contenedor de la lista */
  margin-left: 0; /* Elimina el margen izquierdo del contenedor de la lista */
}

#work li {
  padding-left: 0; /* Elimina el espacio adicional dentro de cada elemento */
  margin-left: 0; /* Elimina cualquier margen adicional dentro de cada elemento */
}

/* Estilos específicos para la sección de Testimonios */
#testimonials details {
  padding: 10px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
}

#testimonials details[open] {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Destaca la ventana abierta */
}

#testimonials details p, #work details p {
  margin: 0;
  font-size: 0.9em;
  color: #999;
}




/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    background: #333;
    color: #666666;
    font-size: 0.9rem;
	margin: auto 0 0 0;
}

footer a {
	color: #CCC;
	text-decoration: none;
	transition: color 0.3s ease;
}

footer a:hover {
	color: #FC0;
	text-decoration: none;
}

a {
    color: #333333;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

section#shadow-host-companion {
    display: none !important; /* Oculta el elemento problemático */
}

footer .logo-container {
	width: 100%;
}

/* Responsive */
@media (max-width: 850px) {
	.textbox, .textoGeneral {
	max-width: 650px;
	}
    header h1 {
        font-size: 2rem;
    }
    h2, header h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.5rem;
    }	
}
@media (max-width: 650px) {
	.textbox, .textoGeneral {
	max-width: 550px;
	}
	header {	
	background: 
		url('/assets/images/EscuadraGyG.svg') top left no-repeat,
		url('/assets/images/BackgroundGyG_anima.svg') center calc(50% - 25px) no-repeat,
		linear-gradient(-30deg, rgba(255, 204, 0, 0) 75%, rgba(255, 204, 0, 1) 75%);
	background-size: 50% auto, cover, cover; /* Ajusta la imagen para cubrir todo el fondo */
    color: #333333;
	padding: 0;	
	height: 80vh ;
	}
	body {
    line-height: 1.5;
	background: url('/assets/images/ReglaGyG.svg') top right repeat-y;
	background-size: 25px auto;
	background-color: #F7F7F7;	
}
}

/* Clientes */

.Caja {
	list-style: none;
	height: 100%;
	width: 100%;
	text-align: center;
}

.ListaClientes {
	list-style: none;
    padding: 0px;
    margin: 100px 0;   
    display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 3em;
}

.ListaClientes li {
	display: flex;
	align-items: center; /* Centra verticalmente */
	justify-content: center; /* Centra horizontalmente (opcional) */
	text-align: center;
}

.LogosClientes {
	width: 100%;
	max-width: 200px; /* Para LogosClientesH */
	max-height: 70px; /* Para LogosClientesC */
	opacity: 0.7; /* Aplica opacidad del 70% por defecto */
	transform: scale(0.9); /* Reduce el tamaño ligeramente */
	transition: opacity 0.3s ease, transform 0.3s ease; /* Transición suave para ambos efectos */
}

.LogosClientes:hover {
	opacity: 1; /* Opacidad al 100% cuando el cursor pasa sobre el elemento */
	transform: scale(1); /* Escala al 100% de su tamaño original */
}

/* Redes y enlaces */

.RedesS{
	display: flex;
	max-width: 350px;
	width: 50%;
	justify-content: space-between;
	height: 50px;
	align-items: center;
	margin: 3em auto 1em auto;
}

.BotonRS{
	width: 50px;
	height: 50px;
	background-repeat: no-repeat;
    transition: 0.3s ease;
}
.BotonRS:hover{
	transform: scale(1.25);
}

@media only screen and (max-width: 767px){
	#portfolios, #testimonials {
		background-size: auto, 100%;	
	}
	#contact {
		background:
		url('/assets/images/Angulo30.svg') bottom right no-repeat,	
		linear-gradient(150deg, rgba(255, 204, 0, 0) 80%, rgba(255, 204, 0, 1) 80%);
		background-size: 65vw, auto;
	}
	.sample {
		width: 100%;
	}
	footer {
    	font-size: 0.8rem;
	}
	.ListaClientes {
		grid-template-columns: repeat(2, 1fr);
		margin: 50px 0;
	}
	.RedesS{
  		width: 60%;
		margin: 2em auto 1em auto;
	}
	.BotonRS{
		width: 40px;
		height: 40px;
	}
}

.Dribbble{
	background-image: url("/assets/images/Botones/Redes_I.svg");
  	background-repeat: no-repeat;
	transition: 0.3s ease;
}

.Instagram{
	background-image: url("/assets/images/Botones/Redes_II.svg");
 	background-repeat: no-repeat;
	transition: 0.3s ease;
}

.Behance{
	background-image: url("/assets/images/Botones/Redes_III.svg");
	background-repeat: no-repeat;
	transition: 0.3s ease;
}

.Linkedin{
	background-image: url("/assets/images/Botones/Redes_IV.svg");
	background-repeat: no-repeat;
	transition: 0.3s ease;
}

.Threads{
	background-image: url("/assets/images/Botones/Redes_VI.svg");
	background-repeat: no-repeat;
	transition: 0.3s ease;
}

.MailGyG{
	background-image: url("/assets/images/Botones/Redes_VII.svg");
	background-repeat: no-repeat;
	transition: 0.3s ease;
}

.Threads:hover, .Linkedin:hover, .Behance:hover, .Instagram:hover, .Dribbble:hover, .MailGyG:hover{
	transform: scale(1.25);	
}