html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 150px;
    overflow-x: hidden;
}

.divisor{
    width: 95%;
    height: 0;
    border: 0.001em solid rgba(0, 0, 0, 0.3);
    margin: 1em auto 1em auto;
}

.header {
    background-color: #f9f9f9;
    color: #000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contacto-top {
    position: fixed;
    z-index: 1000;
    background-color: white; 
    transition: top 0.3s; 
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    background-color: #F5F5F5;
    box-shadow: 0 2px 5px #ccc;
    width: 100%;
}

.container-h {
    position: fixed;
    margin-top: 5vh;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: white; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.cotizacion{
    grid-column: 2/6;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1rem;
    align-items: center;
    justify-content: center;
}

.cotizacion div:nth-child(1){
    grid-column: 1;
}
.cotizacion div:nth-child(1) p{
    font-size: 0.8em;
}

.cotizacion div:nth-child(2){
    grid-column: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cotizacion div:nth-child(2) a{
    font-size: 0.8em;
    text-decoration: none;
    color: #000;
    transition: font-size 0.3s ease;
}


.cotizacion div:nth-child(2) a:hover{
    font-size: 1em;
    color: #F88311;
}

.contacto-links {
    grid-column: 10;
    display: flex;
    justify-content: right;
    padding: 0.3em 20% 0.3em 0;
    gap: 0.7rem;
    margin: 0 auto;
}
    
.contacto-links a {
    text-decoration: none;
}

.contacto-links img {
    width: 1.5em;
    height: auto;
    transition: transform 0.3s ease;
}

.contacto-links a:hover img {
    transform: scale(1.2);
}

.contacto-top img{
    width: 1.5em;
}


.header-top {
    padding: 1.5vh 0 1vh;
}

.header-title{
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 0;
    margin: 0;
    align-items: center;
    text-align: center;
}

.logo {
    grid-column: 1/3;
    width: 24vh;
    height: auto;
    margin: 0 auto;
}

.header-title h1 {
    font-family: 'Arial', sans-serif;
    font-weight: bolder;
    grid-column: 3/7;
    font-size: 3em;
    margin: 0;
}

.header nav {
    background-color: #1A3668;
}

.nav-list {
    list-style: none;
    margin: 0;
    display: flex;
    justify-content: space-around;
    padding: 0;
    position: relative;
    width: 100%;
}

.nav-list li {
    margin: 0 1rem;
    position: relative;
}

.nav-list a {
    color: #fff;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-list a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #F88311;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

.nav-list a:hover::before {
    visibility: visible;
    transform: scaleX(1);
}

.nav-list a:hover {
    color: #F88311;
}

.nav-list .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e9e9e9;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    min-width: 200px;
    text-align: center;
    padding: 0;
    box-sizing: border-box;
}

.nav-list .dropdown li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list .dropdown a {
    padding: 1rem;
    color: #1A3668;
    display: block;
    text-align: left;
}

.nav-list li:hover .dropdown {
    display: block;
}

main {
    padding: 2rem 0;
}

section {
    margin-bottom: 2rem;
}

section h2 {
    margin-bottom: 1rem;
}

section p {
    line-height: 1.6;
    color: #333;
}

.container{
    margin: 15vh 0;
}

.carrusel {
    position: relative;
    width: 80%; /* Cambiar ancho del carrusel */
    height: 65vh; /* Cambiar alto del carrusel */
    margin: 0 auto;
    overflow: hidden;
    max-width: 100%;
    display: flex;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.4);
    box-shadow: 1px 2px 0px 2px rgba(0,0,0, 0.1);
}

.carrusel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    transform: translateX(0);
    width: 100%;
}

.carrusel-item {
    min-width: 100%;
    display: flex;
    align-items: center;
    transition: opacity 1s ease-in-out;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%; /* Ajustar el alto de los elementos del carrusel */
}

.carrusel-item.active {
    opacity: 1;
    position: relative;
}

.carrusel-item img {
    width: 70%; /* Ajustar el ancho de las imágenes del carrusel */
    height: 100%; /* Ajustar el alto de las imágenes del carrusel */
    object-fit: cover;
}

.carrusel-content h2{
    font-size: 2.5em;
    
    padding: 10px;
}
.carrusel-text {
    bottom: 10%;
    left: 20%;
    color: #000;
    text-align: justify;
    padding: 10px;
    font-size: 1.3rem;
    font-family: 'Arial', sans-serif;
    line-height: 1.5;
    /* max-width: 80%; */
    transition: all 0.3s ease;
}



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carrusel-indicators {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.carrusel-indicators .indicator {
    width: 1rem;
    height: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carrusel-indicators .indicator.active {
    background-color: rgb(139, 201, 255);
}


.div-nos-one{
    height: auto;
    background-color: #f5f5f5;
    text-align: justify;
    padding: 1vh 1.3vh 0.6vh 1.3vh;
    margin: 3vh 2vh 3vh;
    border-radius: 1%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}
.titles {
    grid-column: 2/8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3vh;
}

.centered {
    font-size: 3vh;
    width: 100%;
    text-align: center;
    margin-top: -2em;
    margin-bottom: 2em;
}

.background {
    background-image: url('./images/ejemplo.png');
    background-size: cover;
    background-attachment: fixed;
    height: 100vh; /* La altura de la ventana */
    grid-column: 1/6;
    color: #1d1d1d;
    text-align: center;
}

.container-nos{
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-gap: 1vh;
    grid-auto-rows: minmax(100px, auto);
}

.div-nos-one {
    grid-column: 2/8;
    grid-row: 2;
    display: flex;
    align-items: center; /* Para alinear verticalmente */
    justify-content: space-between; /* Para dejar espacio entre el texto y la imagen */
    gap: 20px; /* Espacio entre el texto y la imagen */
}

.div-nos-one {
    flex: 1; /* Para hacer que el texto ocupe más espacio que la imagen */
}
.div-nos-one {
    font-size: 1.3em;
}

.div-nos-one img {
    grid-column: 2/4;
    width: 50%;
    border-radius: 0.7%;
}

.content {
    position: relative;
    background: rgba(0, 0, 0, 0.5); /* Fondo semi-transparente */
    padding: 20px;
    border-radius: 10px;
    margin: 20px;
}

.main-content {
    height: 200vh; /* Simulación de más contenido para permitir el scroll */
}

#linea{
    width: 100%;
    height: auto;
    margin:  0 auto;
    padding: 5em 0;
}


.service-t {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.4vh;
}

.container_ser {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 2em 3em;
}

.service {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    flex: 1 1 30%;
    max-width: 30%;
}

.service-text {
    text-align: center;
    padding: 1rem 0;
}

/* .service-left .service-text {
    order: 1;
    padding-right: 1rem;
}

.service-left .service-icon {
    order: 2;
}

.service-right .service-text {
    order: 2;
    padding-left: 1rem;
}

.service-right .service-icon {
    order: 1;
} */

.service-text h2{
    font-size: 1.7rem;
    color: #333;
}

.service-text p{
    font-size: 1.2rem;
    color: #666;
}

.service-icon {
    width: 25vh;
    height: 25vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hexagon-b, .hexagon-o {
    position: relative;
    width: 10.5em;
    height: 6em;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
    -6px 0 9px rgba(26, 54, 104, 0.5),
    6px 0 9px rgba(26, 54, 104, 0.12);
}

.hexagon-b {
    background: #333;
}

.hexagon-o {
    background: #333;
}

.hexagon-b .side, .hexagon-o .side {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: inherit;
    box-shadow:
    -6px 0 9px rgba(26, 54, 104, 0.5),
    6px 0 9px rgba(70, 70, 70, 0.12);
}

.hexagon-b .side:nth-child(1), .hexagon-o .side:nth-child(1) {
    transform: rotate(60deg);
}

.hexagon-b .side:nth-child(2), .hexagon-o .side:nth-child(2) {
    transform: rotate(-60deg);
}

.hexagon-b, .hexagon-b .side:nth-child(1), .hexagon-b .side:nth-child(2) {
    border: 3px solid #1A3668;
}

.hexagon-o, .hexagon-o .side:nth-child(1), .hexagon-o .side:nth-child(2) {
    border: 3px solid #F88311;
}


.hexagon-b:before, .hexagon-o::before {
    box-sizing: border-box;
    padding-top: 1.2em;
    text-align: center;
    content: '';
    color: #ccc;
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: 3;
}

.hexagon-b::after, .hexagon-o::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: 2;
    transform: rotate(60deg);
}

.inner-hex {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 130%;
    position: absolute;
    z-index: 4;
}

.service-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.service-text {
    flex: 1;
    padding-right: 1rem;
    animation: fadeIn 1s ease-in-out;
}

.more-info {
    width: 100%;
    height: 100%;
    padding: 2em 0;
}

.info-t {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.4vh;
    margin-bottom: 1em;
}

.info-container {
    width: 60%;
    margin: 0 auto;
    padding: 1.4em;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
}

#marcas, #calidad {
    width: 100%;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    display: grid;
    overflow: hidden;
}

#marcas {
    background-image: url('./images/marcas.png');
}

#calidad {
    background-image: url('./images/calidad.png');
}

.marcas-container, .calidad-container {
    background-color: rgba(245, 245, 245, 0.9);
    margin: 1.5em;
    padding: 1em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.marcas-t, .taller-t, .calidad-t {
    margin-bottom: 0.5em;
}

.marcas-t h2, .taller-t h2, .calidad-t h2 {
    font-size: 24px;
}

.text-m div, .text-t div, .text-c div {
    margin-top: 10px;
    text-align: justify;
    padding: 0.5em 1em;
    transition: transform 0.3s ease, color 0.3s ease;
}

.text-m div a{
    text-decoration: none;
    color: black;
}

.text-m, .text-t, .text-c {
    width: 100%;
    font-size: 1em;
}

/* Animación de hover */
.marcas-container:hover, .taller-container:hover, .calidad-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.text-m a:hover {
    transform: scale(1.05);
    color: #1A3668; /* Cambia el color aquí si deseas un efecto diferente */
}

.text-m div:hover, .text-t div:hover, .text-c div:hover {
    transform: scale(1.05);
    color: #F88311; /* Cambia el color aquí si deseas un efecto diferente */
}

#servicios{
    width: 100%;
    margin: 0 auto;
}

.process-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.process-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 auto;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    
    padding: 3em 0;
}

.process-left,
.process-right {
    flex: 1;
    margin: 20px 40px 20px;
    background-color: #fffbe6;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    padding: 0 1vh;
}

.process-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 300px;
    position: relative;
}

.hex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 300px;
    position: relative;
}

.hex {
    position: absolute;
    width: 15vh;
    height: 13vh;
    /* clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); */
    background-image: url('./images/hex.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease; 
}

.hex-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
}

.hex img {
    max-width: 100%;
    max-height: 100%;
}

.hex h3 {
    color: #fff;
    font-size: 1em;
    text-align: center;
}

.hex-central {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hex:nth-child(1) { top: 0%; left: 50%; transform: translate(-50%, -35%);}
.hex:nth-child(2) { top: 27%; left: 0; transform: translate(-25%, -50%); }
.hex:nth-child(3) { top: 27%; left: 100%; transform: translate(-75%, -50%); }
.hex:nth-child(5) { top: 72%; left: 0; transform: translate(-25%, -50%); }
.hex:nth-child(6) { top: 72%; left: 100%; transform: translate(-75%, -50%); }
.hex:nth-child(7) { top: 75%; left: 50%; transform: translate(-50%, 0); }

.process-left h2,
.process-right h2 {
    margin-bottom: 20px;
}

.process-right ul {
    list-style: none;
}

.process-right li {
    margin-bottom: 10px;
    padding-left: 1.2em;
    text-indent: -1.2em;
}

.process-right li:before {
    content: "•";
    color: #f88311;
    display: inline-block;
    width: 1em;
}


.space {
    background-color: #F88311;
    height: 1em;

}

.footer {
    background-color: #313131;
    color: white;
    padding: 2rem 0;
    text-align: left;
}

.container-f {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    margin: 1rem;
    min-width: 250px;
}

.footer-section h2 {
    margin-bottom: 15px;
    color: #f8f8f8;
}

.footer-section p, .footer-section a {
    color: #bbb;
    line-height: 1.6;
}

.footer-section a {
    text-decoration: none;
    color: #bbb;
}

.footer-section a:hover {
    color: #F88311;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
}

.social-links img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-links a:hover img {
    transform: scale(1.2);
}

.ubi-frame iframe {
    width: 100%;
    height: 250px;
    border: none;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background: #222;
    color: #bbb;
}

.footer-bottom p {
    margin: 0;
}


#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Fondo blanco semi-transparente */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #3498db;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* Section styling */
.text-section {
    width: 100%;
    margin: 0 auto;
    padding: 1em 0;
    margin-bottom: -5em;
  }
  
  .text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 1s ease, opacity 1s ease;
  }
  
  .text-container.left {
    flex-direction: reverse; /* Invertir la dirección de los elementos para que imagen quede a la izquierda */
    transform: translateX(100%); /* Animación desde la izquierda */
  }
  
  .text-container.appear {
    opacity: 1;
    transform: translateX(0); /* Volver a su posición original */
  }
  
  /* Text content */
  .text-wrapper {
    background: linear-gradient( #333 60%, #1A3668);
    color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 50%;
    text-align: left;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
  }
  
  .text-wrapper h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #ffffff;
  }

  .text-wrapper p {
    font-size: 16px;
    color: #ccc;
  }
  
  /* Icon content */
  .icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 20px;
  }
  
  /* Estilo del hexágono */
  .hex-wrapper {
    position: relative;
    width: 15vh;
    height: 13vh;
    background-image: url('./images/hex.png'); /* Hexágono de fondo */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transition: transform 0.3s ease;
  }
  
  .hex-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
  }
  
  .hex-wrapper img {
    max-width: 100%;
    max-height: 100%;
  }
  
  /* Media Queries for Responsive Design */
  @media screen and (max-width: 900px) {
    .text-container {
      flex-direction: column;
      text-align: center;
    }
  
    .text-wrapper {
      max-width: 100%;
    }
  
    .icon-wrapper {
      margin: 20px 0;
    }

  .container_ser {
        flex-direction: column;
        align-items: center;
    }

    .service {
        max-width: 100%;
    }

    .info-container {
        grid-template-columns: 1fr;
    }
  }
  @media (max-width: 768px) {
    .info-container {
        grid-template-columns: 1fr;
    }
}