* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
:root {
    --primary-color: #1a237e;
    --secondary-color: #f08800;
    --light-gray: #f5f5f5;
}

body {
    font-family: Arial, sans-serif;
    /* background-color: #e44d26; */
    line-height: 1.6;
    overflow-x: hidden; /* Oculta el desbordamiento horizontal */
}

.header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.logo {
    font-size: 5ch;
    font-weight: bold;
    color: #ffd000;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #42e14a;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: -15%;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.4s;
}

@media screen and (max-width: 768px) {
    .logo {
        font-size: 4.1ch;
    }
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #333;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        padding: 20px 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 8px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/*Carrusel Automático de Imágenes Corregido*/
section {
    margin-bottom: 50px;
}

#productos h2 {
    font-size: 3.5ch;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Estilos para el carrusel de imágenes */
.image-carousel {
    margin-bottom: 30px;
}

.image-carousel  img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 0px;
    margin: 0 auto;
}

.cont-1 {
    /* background-color: #4299e1; */
    /* font-weight: 1500; */
    width: 850px;
    height: 50px;
    transform: translate(100px, -480px);
    text-shadow: 4px 4px 4px #333;
    text-transform: uppercase;
    color: yellow;
    font-size: 7ch;
}
.cont-2 {
    width: 1200px;
    height: 50px;
    transform: translate(300px, -600px);
    text-shadow: 4px 4px 4px #333;
    text-transform: uppercase;
    text-align: center;
    color: yellow;
    font-size: 7ch;
    
}
.cont-3 { /*texto de las imagen 3*/
    width: 900px;
    height: 50px;
    transform: translate(900px, -550px);
    text-shadow: 4px 4px 4px #333;
    text-transform: uppercase;
    text-align: end;
    color: yellow;
    font-size: 7ch;
}
/* Estilos para el carrusel de productos */
.product-carousel .product { /*hay dos cajas*/
    padding: 18px;
    text-align: center;
    margin: 2px 2px 2px;
    
    /* border: 1px solid #333; */
}
.product-carousel {
    width: 72.5%;
    margin: 0 auto;
}
.product{
    /* box-shadow: 2px 2px 2px rgba(0,0,0,0.1); */
    border-radius: 10%;
    padding-left: 20px; /* Relleno en el lado izquierdo */
    padding-right: 20px; /* Relleno en el lado derecho */
    transition: 0.4s;
}
.product:hover {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2), 1px 6px 11px rgba(108, 68, 228, 0.19);
    /* box-shadow: 1px 4px 18px rgba(0, 0, 0, 0.1); */
    /* border: 1px solid #000000; */
}
.product img {
    width: 55%;
    height: 55%;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto;
    margin-bottom: 25px;
    pointer-events: none;
    background-color: #4299e1;
}

.product h3 {
    color: var(--primary-color);
    font-size: 2.3ch;
    margin: 10px 0;
    
}

.product .price {
    color: #e44d26;
    font-weight: bold;
    font-size: 16px;
}

.product .description {
    /* background-color: #4299e1; */
    color: #666;
    margin: 20px 0;
    height: 100px;
    overflow: hidden;
}

.product .button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.product .button:hover {
    background-color: #45a049;
}

/* Personalización de las flechas del carrusel */
.slick-prev, .slick-next {
    z-index: 1;
    
}

.slick-prev:before {
    position: absolute;
    left: -54px;
    /* background-color: #4299e1; */
    
}

.slick-next:before {
    position: absolute;
    right:-54px;
    /* background-color: #00f80c; */
    /* box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); */
}

.slick-prev:before, .slick-next:before {
    /* color: #00f80c; */
    width: auto;
    height: 20px;
    border-radius: 44%;
    padding: 20px;
    background-color: rgb(158, 157, 157);
    background-image: url('tu-imagen.jpg');
    background-position: 0 0; /* Posición inicial */
    /* background-size: cover; */
    background-attachment: fixed; /* Fija el fondo */
    border: 0.5px solid #272738;
    
    /* background-color: #4299e1; */
}




@media (max-width: 768px) {
    .image-carousel .slick-slide img {
        height: 300px;
    }

    .product-carousel {
        width: 100%;
        margin: 0 auto;
    }

    .product img {
        height: 198px;
    }
    .product:hover {
        box-shadow: none;
    }
    .cont-1 {
        /* background-color: #4299e1; */
        width: 70%;
        height: 10px;
        transform: translate(20px, -240px);
        font-size: 2.5ch;
    }
    .cont-2 {
        /* background-color: #4299e1; */
        width: 90%;
        height: 10px;
        transform: translate(20px, -300px);
        font-size: 2.5ch;
    }
    .cont-3 {
        width: 80%;
        height: 10px;
        transform: translate(63px, -240px);
        font-size: 2.5ch;
    }
}

/*servicios de la pagina*/
.services {
    background-color: var(--light-gray);
    padding: 2rem 1rem;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.services h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 3.5ch;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.service-card:hover {
    background: blanchedalmond;
}

.ubicamap {
    position: relative;
    width: 100%;
    padding-bottom: 0; /* Relación de aspecto 16:9 (ajústala según tus necesidades) */
    height: 650px;
    overflow: hidden;
    margin-bottom: -15px;
    margin-top: -50px;
    
}

.ubicamap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
}
@media (max-width: 768px) {
    .ubicamap {
        height: 450px;
    }
}

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3.2rem 0rem;
    margin-top: 1rem;
}

.footer-content {
    max-width: 100%;
    text-align: center;
    margin-left: 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
}

.footer-content-tex {
    width: 300px;
    text-align: start;
    margin-top: -30px;
    /* background-color: #4299e1; */
    
}
.footer-content-tex p a {
    font-size: 1.7ch;
    color: #ffffff;
    text-decoration: none;
    

}
.footer-content-tex p a:hover {
    color: #ffee00;
}

.copy-go {
    background-color: #3d3d3d;
    color: white;
    text-align: center;
    margin: 0 auto;
    padding: 10px 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
}

@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
    footer-content {
        min-width: 250px;
        
        
    }
    
    .ubicar {
        min-width: 250px;
    }
}