@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

:root {

    /*Colors*/
    --dark-blue: #004979;
    --blue: #005D99;
    --dark-cyan: #1976A4;
    --cyan: #238DC5;
    --yellow: #FBBE00;
    --pure-white: #FFFFFF;
    --white: #FEFEFE;
    --black: #1E1E1E;

    /*Weights*/
    --ligth: 200;
    --regular: 400;
    --bold: 700;
    --black: 900;
}

* {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: "Jost", sans-serif;
}

*, img {
  -webkit-user-drag: none; /* Chrome, Safari, Opera */
  -moz-user-drag: none;    /* Firefox */
  -ms-user-drag: none;     /* IE/Edge */       /* estándar */
  user-select: none;       /* evitar selección de texto */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.line {
    border-bottom: 3px solid #004979;
    width: 75px;
    margin-bottom: 1.5rem;
    border-radius: 10px;
}

.header {
    min-height: 100vh;
    width: 100vw;
    background-image: url("/IPAGB/assets/images/fondo_salar.jpeg");
    background-position: center;
    background-size: cover;
    position: relative;
}

.union {
    background-image: url("/IPAGB/assets/images/union/union_1.png");
    background-size: fill;
    background-repeat: no-repeat;
    height: 30px;
}

.union_down {
    background-image: url("/IPAGB/assets/images/union/union_2.png");
    background-size: fill;
    background-repeat: no-repeat;
    height: 30px;
}

/* Estilo del contenedor del nav */
nav {
    display: flex;
    padding: 1% 6%;
    /* Ajusta el padding para reducir el espacio superior */
    justify-content: space-between;
    width: 100%;
    height: 150px;
    top: 0;
    /* Asegúrate de que se mantenga en la parte superior */
    z-index: 1000;
    overflow: hidden;
}

/* Logo del nav */
nav img {
    width: 120px;
    margin-top: 15px;
}

/* Contenedor de enlaces del menú */
.nav-links {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    height: 150px;
}

/* Estilo de los elementos del menú */
.nav-links ul {
    list-style: none;
    display: flex;
    align-self: start;
    margin-top: 35px;
}

.nav-links ul li {
    display: inline-block;
    overflow: hidden;
}

.nav-links ul li a {
    color: var(--pure-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: var(--regular);
}

.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: var(--pure-white);
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 80%;
}

/* Menú hamburguesa */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 30px;
    height: 25px;
}

.hamburger-menu div {
    width: 30px;
    height: 5px;
    background-color: var(--pure-white);
    margin: 4px 0;
}

/* Menú deslizable desde la derecha en móviles */
input[type="checkbox"] {
    display: none;
}

/* Estilo para el contenedor del menú en móviles */
.nav-links {
    position: fixed;
    top: 0;
    right: -250px;
    /* Inicialmente el menú está oculto a la derecha */
    width: 250px;
    /* El menú no ocupará toda la pantalla */
    height: 100vh;
    background-color: var(--dark-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    /* Transición suave para el deslizamiento */
    z-index: 1000;
    /* Para asegurarnos de que el menú esté por encima de otros elementos */
}

/* Menú en pantallas grandes */
@media screen and (min-width: 769px) {

    /* Menú horizontal en pantallas grandes */
    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        justify-content: flex-end;
        gap: 20px;
        background-color: transparent;
        /* Sin fondo en pantallas grandes */
        width: auto;
        /* Ajusta el ancho del menú */
    }

    .hamburger-menu {
        display: none;
        /* Eliminar el menú hamburguesa en pantallas grandes */
    }

    /* Ajustar los elementos dentro de .nav-links */
    .nav-links ul {
        display: flex;
        align-items: center;
        /* Asegura que los enlaces estén centrados verticalmente */
    }

    .nav-links ul li a {
        font-size: 16px;
        /* Asegúrate de que el texto no se corte */
        padding: 10px 15px;
    }
}

/* Menú hamburguesa en pantallas pequeñas (celulares) */
@media screen and (max-width: 768px) {
    /* Mostrar el menú hamburguesa en pantallas móviles */

    .header {
        background-image: url("/IPAGB/assets/images/fondo_salar_mobile.jpeg");
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        width: 100%;
    }

    .nav-links ul li {
        display: block;
        padding: 15px 0;
        text-align: center;
    }

    /* Mostrar el menú deslizable cuando se marca el checkbox */
    input[type="checkbox"]:checked~.nav-links {
        transform: translateX(-250px);
        /* El menú aparece desde la derecha */
    }
}

.production-gifts {
    width: 60%;
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.circle-gifts {
    width: 120px;
    background-color: transparent;
}

.main-title {
    margin-top: 2rem;
    text-align: center;
}

.main-description {
    margin-top: 1.5rem;
    text-align: center;
}

.main-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main-column h1 {
    font-size: 46px;
    font-weight: 600;
    font-style: italic;
    color: var(--pure-white);
    overflow: hidden;
}

.main-column h3 {
    font-size: 24px;
    font-weight: var(--ligth);
    color: var(--pure-white);
    overflow: hidden;
}

.main-column h2 {
    font-size: 24px;
    font-weight: var(--regular);
    color: var(--pure-white);
    overflow: hidden;
    font-style: italic;
}

.main-column h2 span {
    font-size: 24px;
    font-weight: var(--bold);
    color: var(--yellow);
    overflow: hidden;
    font-style: italic;
}

.action-button {
    font-size: 18px;
    text-decoration: none;
    background-color: var(--yellow);
    color: var(--dark-blue);
    border-radius: 50px;
    padding: 5px 50px;
    margin-top: 3rem;
    margin-bottom: 5rem;
    overflow: visible;
    box-shadow: 3.75px 5px 17px rgba(0, 48, 110, 0.3);
}

.action-button:hover {
    transform: scale(1.05);
    transition: 0.5s;
}

.initial {
    width: 100%;
}

.initial .row {
    display: flex;
    flex-wrap: wrap;
    /* Para que en móviles se apile */
    margin: 0;
}

/* Columna izquierda: texto */
.initial .text {
    margin-left: 10rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding-top: 5rem;
}

.initial .text h1 {
    color: var(--dark-blue);
    font-size: 28px;
    font-weight: var(--bold);
    overflow: hidden;
}

.initial .text p {
    margin-top: 3rem;
    color: var(--black);
    font-size: 16px;
    font-weight: var(--regular);
}

.initial .text p span {
    color: var(--dark-blue);
    font-weight: var(--bold);
    font-style: italic;
}

.initial .text .years {
    width: 100px;
    margin-top: 2rem;
    align-self: flex-end;
}

/* Carrusel */
.carimg {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 2rem;
    min-height: 400px;
    /* Asegura espacio para el carrusel */
}

.carrusel {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .polaroid {
    position: absolute;
    width: 85%;
    height: 95%;
    padding: 20px;
    background-color: white;
    box-shadow: 7px 7px 15px #cacaca, -7px -7px 15px #f6f6f6;
    opacity: 0;
    animation: fadeCarousel 15s infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }

/* Imagen dentro del polaroid */
.polaroid img {
    max-width: 100%;
    max-height: 70%;
}

/* Caja de texto con logo */
.polaroid .caption {
    height: 20%;
    text-align: center;
}

/* Logo dentro de la caja */
.caption img {
    max-height: 50px;
}

/* Retrasos de animación para cada imagen */
.polaroid:nth-child(1) { animation-delay: 0s; }
.polaroid:nth-child(2) { animation-delay: 3s; }
.polaroid:nth-child(3) { animation-delay: 6s; }
.polaroid:nth-child(4) { animation-delay: 9s; }
.polaroid:nth-child(5) { animation-delay: 12s; }

/* Animación del carrusel */
@keyframes fadeCarousel {
    0%   { opacity: 0; }
    8%   { opacity: 1; }
    25%  { opacity: 1; }
    33%  { opacity: 0; }
    100% { opacity: 0; }
  }

@media screen and (max-width: 768px) {
    .carimg {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
    }
  
    .carrusel {
      width: 70%;
      position: relative;
      height: auto;
      min-height: 400px; /* Asegura espacio para la imagen visible */
    }
  
    .polaroid {
      position: absolute; /* <- Mantiene efecto carrusel */
      width: 100%;
      height: 100%;
      padding: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      opacity: 0;
      animation: fadeCarousel 15s infinite;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      box-sizing: border-box;
    }
  
    .polaroid img {
      width: 100%;
      max-height: 70%;
      object-fit: cover;
    }
  
    .caption img{
      margin-top: 10px;
      width: 100px;
    }
  }

.services {
    height: auto;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 10rem;
}

.services .circle-lines:hover {
    filter: drop-shadow(0 0 3px var(--dark-blue));
    transform: scale(0.95);
    transition: 0.5s;
}

.services .circle-lines {
    width: 80%;
}

.services h1 {
    color: var(--dark-blue);
    font-size: 28px;
    font-weight: var(--bold);
    overflow: hidden;
}

.services p {
    margin-top: 1.5rem;
    color: var(--black);
    font-size: 16px;
    font-weight: var(--regular);
    overflow: hidden;
}

.services p span {
    color: var(--dark-blue);
    font-weight: var(--bold);
    font-style: italic;
}

.services a {
    width: 14%;
    margin: 0; /* Elimina márgenes por defecto */
    padding: 0px; /* Espaciado interno si lo necesitas */
    box-sizing: border-box;
    display: block;
    text-align: center;
}

/* Contenedor .row */
.services .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .services a {
        width: calc(35% - 10px); /* Dos columnas con espacio entre ellas */
        padding: 10px 0; /* Espaciado solo vertical */
    }
}

.main-clients {
    height: 70vh;
    width: 100vw;
    padding-left: 10rem;
    padding-top: 1rem;
    padding-right: 10rem;
}

.clients h1 {
    color: var(--dark-blue);
    font-size: 28px;
    font-weight: var(--bold);
    overflow: hidden;
}

.main-clients .client-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    margin-top: 3.5rem;
}

.main-clients .logo:hover {
    transform: scale(1.1);
    transition: 0.5s;
}

.main-clients .logo .large {
    width: 280px;
}

.main-clients .logo .medium {
    width: 170px;
}

.main-clients .logo .small {
    width: 125px;
}

.main-clients .logo .x_small {
    width: 100px;
}

.main-clients .logo .toyota_small {
    width: 100px;
}

.main-clients .logo .xx_small {
    width: 65px;
}

.main-clients .logo img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    transition: 0.5s;
}

.main-clients .logo img:hover {
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .main-clients {
      padding-left: 1rem;
      padding-right: 1rem;
    }
  
    .main-clients .client-logos {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;
      justify-items: center;
    }
  
    .main-clients .logo {
      width: 100%;
      display: flex;
      justify-content: center;
    }
  
    .main-clients .logo img {
      max-width: 80%; /* se adapta mejor al contenedor */
      height: auto;
    }
  }

.featured {
    height: 95vh;
    padding: 0 10rem;
}

.featured h1 {
    color: var(--dark-blue);
    font-size: 28px;
    font-weight: var(--bold);
    margin-bottom: 2rem;
    overflow: hidden;
}

.featured .pictures {
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 3.75px 5px 17px rgba(0, 48, 110, 0.3);
}

.featured .grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 2fr 1fr 1fr;
    gap: 5px;
    width: 100%;
    height: 80vh;
}

.featured .item {
    overflow: hidden;
}

.featured .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured .large {
    grid-row: span 3;
    grid-column: 1;
}

.featured .top-right {
    grid-column: 2 / span 2;
    grid-row: 1;
}

.featured .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 2;
    grid-row: 2;

}

.featured .logo img {
    width: 85%;
}

.featured .middle-bottom {
    grid-column: 2;
    grid-row: 3;
}

.featured .right-vertical {
    grid-column: 3;
    grid-row: 2 / span 2;
}

.footer {
    padding-left: 10rem;
    padding-right: 10rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    width: 100vw;
}

.footer .menu-links{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.footer .logo-footer {
    width: 130px;
    margin-bottom: 20px;
}

.footer .footer-info {
    display: flex;
    margin-top: 1rem;
    margin-left: 2rem;
}

.footer .footer-info .info-utils{
    display: flex;
    align-items: center;
    width: 100%;
}

.footer .footer-info p {
    color: var(--dark-blue);
    font-size: 16px;
    margin-left: 30px;
    margin-top: 2px;
    overflow: hidden;
}

.footer .footer-info p a {
    color: var(--dark-blue);
    font-size: 16px;
    text-decoration: none;
}

.footer .footer-info p a:hover {
    text-decoration-line: underline;
    text-decoration-color: var(--dark-blue);
    text-decoration-thickness: 1.5px;
}

.footer .tool-tip-footer {
    width: 35px;
    height: 35px;
}

.footer .footer-links {
    display: flex;
    flex-direction: column;
}

.footer .footer-links h1 {
    color: var(--dark-blue);
    font-weight: var(--bold);
    font-size: 18px;
    margin-top: 1rem;
    overflow: hidden;
}

.footer .footer-links a {
    margin-left: 2rem;
    color: var(--dark-blue);
    font-weight: 300;
    font-size: 18px;
    text-decoration-line: none;
}

.footer .footer-links a:hover {
    text-decoration-line: underline;
    text-decoration-color: var(--dark-blue);
    text-decoration-thickness: 1.5px;
}

.footer .network {
    display: flex;
    flex-direction: column;
}

.footer .network h1 {
    color: var(--dark-blue);
    font-weight: var(--bold);
    font-size: 18px;
    margin-top: 1rem;
    overflow: hidden;
}

.footer .social-networks {
    display: flex;
    justify-content: space-between;
}

.footer .social-networks img {
    height: 50px;
    width: 50px;
}

.copy {
    height: 35px;
    background: linear-gradient(0deg, rgba(0, 73, 121, 1) 0%, rgba(35, 141, 197, 1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    overflow: hidden;
}

.copy p {
    color: var(--pure-white);
    font-size: 16px;
}

/* Media Queries para Responsividad */

/* Estilos generales para pantallas grandes */
@media (max-width: 1200px) {
    .services {
        padding: 3rem;
    }

    .main-clients {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .featured {
        padding: 0 5rem;
    }

    .footer {
        padding-left: 5rem;
        padding-right: 5rem;
    }
}

/* Estilos para pantallas medianas (tablets) */
@media (max-width: 768px) {

    /* Ajustes en el encabezado */
    nav {
        flex-direction: column;
        padding: 5%;
    }

    nav img {
        width: 100px;
        margin-bottom: 1rem;
    }

    .nav-links {
        text-align: center;
    }

    .nav-links ul li {
        display: block;
        margin-bottom: 1rem;
    }

    .main-title {
        font-size: 30px;
    }

    .main-column h1 {
        font-size: 36px;
    }

    .main-column h3 {
        font-size: 18px;
    }

    .action-button {
        font-size: 16px;
        padding: 10px 30px;
        margin-top: 5vw;
    }

    .production-gifts {
        width: 80%;
        margin-top: 3vh;
        margin-bottom: 4vh;
    }

    .initial {
        height: auto;
        display: flex;
        flex-wrap: wrap;
    }

    .initial .union {
        width: 100vw;
    }

    .initial .text {
        margin-left: 5rem;
    }

    .initial .text h1 {
        margin-top: 3rem;
    }
    
    .carrusel {
        width: 80%;
        height: auto;
        box-shadow: 7px 7px 15px #cacaca, -7px -7px 15px #f6f6f6;
    }

    .services .row {
        align-items: center;
        margin-top: 0px;
    }

    .main-clients{
        height: auto;
        overflow: hidden;
    }

    .main-clients h1{
        margin-bottom: 2rem;
    }

    .featured {
        padding: 0 3rem;
        margin-top: 2rem;
        height: auto;
    }

    .featured .grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr;
    }

    .footer {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .footer .menu-links{
        flex-direction: row;
        justify-content: space-between;
    }

    .footer .footer-info {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 1rem;
        margin-left: 0px;
    }

    .footer .footer-info .info-utils{
        justify-content: flex-start;
    }

    .footer .footer-info p{
        font-size: 14px;
        margin-left: 15px;
        margin-top: 1rem;
    }

    .footer .footer-info p a {
        font-size: 14px;
    }

    .footer .footer-links {
        align-items: flex-start;
    }

    .footer .social-networks {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .copy p {
        font-size: 14px;
    }
}

/* Estilos para pantallas pequeñas (móviles) */
@media (max-width: 480px) {
    .header {
        background-size: cover;
        height: 60vh;
    }

    .nav-links ul li {
        font-size: 14px;
    }

    .main-column h1 {
        font-size: 30px;
    }

    .main-column h3 {
        font-size: 16px;
    }

    .action-button {
        font-size: 14px;
        padding: 8px 25px;
    }

    .initial .text {
        margin-left: 0;
        padding: 0px 30px;
    }

    .initial .text .years {
        margin-left: 0;
        align-self: center;
    }
    
    .featured .grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr;
    }

    .footer .footer-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer .social-networks {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        justify-content: space-around;
    }

    .footer .footer-links {
        text-align: center;
    }
}