*   {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }

body{
    font-family: montserrat;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    background-color: #ededed;
    background: linear-gradient(to bottom, #7ad3ea, #0a57d4 );
    width: 100vw;
}

div, body, header, nav, ul, footer {
    box-sizing: border-box;
}

.main-wrapper,header, footer{
    width: 100%;
}
h1, h2, h3, h4 {
    text-wrap: balance;
    margin:0;
}
p{
    text-wrap: pretty;
}
/*Header */

.header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    flex-wrap: wrap;
    position: sticky;
    height: 150px;
    z-index: 1000;
    width: 100vw;
    background: linear-gradient(45deg, rgb(3, 3, 65) 20%, #48e 70%);
    top: 0;
    object-fit: cover;
}
.main-wrapper{
    max-width: 1024px;
    margin: auto;
    display: flex;
    flex-grow: 1;
}
.navegador-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100vw;
    flex-wrap: wrap;
    margin-top: 80px;
    
}
.logo{
    height:50px;
    width: 160px;
    margin-top: -60px;
    margin-bottom: 30px;
    margin-left: 50px;
}

.main-navbar {
    display: flex;
    align-items: center;
    width: 100%;
    top: 0;
    left: 0;
}

    .menu-toggle {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.main-navbar ul {
    display: flex;
    padding: 0;
    gap:8px;
    list-style: none;
    margin:0;
}

.main-navbar li {
    list-style: none;
    margin: 4px;
    align-items: center;
    top: 50%;
    transform: translateY(-90%);
    font-size: 15px;
}

.main-navbar a {
    color: #fff;
    display: inline-block;
    padding: 6px 9px;
}

nav a {
    text-decoration: none;
}
a:hover {
    opacity: 0.7;
}
.btn-contacto {
    background-color: rgb(89, 5, 80);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    justify-content: flex-end;
    margin-right: 80px;
    align-items: center;
    position: relative;
    list-style: none;
    gap: 25px;
    margin: 0;
}
.nav-link {
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    transition: 0.3s;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-link.active {
    background-color: #0a57d4; /* Ejemplo: morado */
    border-radius: 5px;
    color: #fff;
}
/*Sección portafolio de productos */
.portafolio{
    box-sizing: border-box;
    background-color: #ededed;
    text-align: center;
    color: blue;
    align-items: center;
    position: relative;
    width: 100vw;
    min-height:250px;
    max-height:450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border:none;
}

.portafolio_content{
    width: 100%;
    text-align: center;
    color: #1b1a1a;
    align-items: center;
    max-height: 450px;
    min-height: 250px;
}
.portafolio_content img{
    width: 100%;
    max-height: 450px;
    min-height: 250px;
}
/* contenedor del banner: ocupa todo el ancho */
.banner {
    position: relative;
    width: 100vw;
    height: 500px;   
    min-height: 250px;
    margin: none;
    overflow: hidden;   
}
.banner-texto {
    position: absolute;
    display: block;
    top: 50%;                   /* Centra verticalmente */
    left: 50%;                  /* Centra horizontalmente */
    transform: translate(-50%, -50%);
    color: white;
    width: 100%;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 2;
}
.banner-texto h1{
    font-size: 100px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.8);
    opacity: 0.3;
}
.overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 60, 160, 0.4); /* azul con transparencia */
    z-index: 2;
    }
/* Contenedor de las imágenes: se ponen en fila */
.slides {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 60%;
    flex-direction: row;
    transition: transform 0.6s ease-in-out;
}

/* Imágenes del banner */
.slides img {
    width: 100%;
    height: 500px;
    min-height: 250px;
    object-fit: cover;
    flex: 0 0 100%;  
}


/* Flechas */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.4);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.arrow:hover {
    background-color: rgba(0,0,0,0.7);
}

/* Flecha izquierda y derecha */
.arrow.left { left: 20px; }
.arrow.right { right: 20px; }


/* Sección productos */
.cards-section {
    background: linear-gradient(to bottom, #61b3e6, #0056e0);
    padding: 60px 0 60px;
    display: flex;
    justify-content: center;
    width: 100vw;
    height: auto;
    min-height: 100vh;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 45px;
    width: 100%;
    max-width: 1300px;
}

.card {
    background-color: #111;
    color: white;
    text-align: center;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
}

.card img {
    width: 100%;
    height: 120px;
    margin-bottom: 15px;
    object-fit: contain;
    border-radius: 5px;
    object-position: center;
    filter: grayscale(100%); 
}

.card:hover img{
    filter: grayscale(0%); 
}

.card h3 {
    color: #61b3e6;
    font-weight: bold;
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 20px;
    line-height: 1.4;
}

.card button {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.card button:hover {
    background: rgb(89, 5, 80);
    border-color: rgb(89, 5, 80);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Responsivo */
@media (max-width: 1024px) {
    .cards-container {
    grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-container {
    grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cards-container {
    grid-template-columns: 1fr;
    }
}
.contenedor-contacto {  
        padding-top: 25px;
        display: flex; /* Habilita Flexbox */
        justify-content: center; /* Centra horizontalmente */
        align-items: center; /* Centra verticalmente */
        width: 100vw; /* O el alto que necesites */
        min-height: 100px;
        background: radial-gradient(circle, #19021e, rgb(48, 3, 50));
        flex-wrap: wrap;
        
}

.contacto-item {
    display: flex ; /* Para alinear el icono con el texto */
    align-items: center; /* Centra el icono y el texto verticalmente */
    margin: 0px 120px 15px; /* Espacio entre los elementos */
    color: white;
    justify-content: center; /* Centra horizontalmente */
    font-size: 14.5px;
    flex: 1;
    text-align: center; 
    }

.contacto-item i { /* Espacio entre el icono y el texto */
    padding: 0;
    margin-right: 10px;
    font-size: 18px;
}
.contacto-item a{
    text-decoration: none;
    color: white;
}
footer{
    padding: 40px;
    text-align: center;
    background-color: rgb(3, 3, 65);
    color: #fffd;
    font-size: 12px;  
    margin-top: auto;  
    width: 100vw;
}

/* si quieres que en pantallas pequeñas la altura sea menor */
@media (max-width:768px){
    .banner-scroll img{ height:300px; }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navbar {
        position: absolute;
        top: 100%;
        z-index: 999;
        width: 100%;
        align-items: end;
        justify-content: end;
    }

    .main-navbar ul {
    display: none;               /* oculto por defecto */
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 12px;
    }

    .main-navbar.active ul {
    display: flex;  
    background-color: rgb(3, 3, 50);
    padding-top: 50px;
    padding-bottom: 0px;
    width: 150px; 
    border-radius: 15px;  
    box-shadow:  2px 2px 5px red, 4px 4px 10px blue;
    }

    .main-navbar a {
    color: white;
    padding: 10px 16px;
    width: 100%;
    text-align: center;
    }

    .btn-contacto {
    margin: 0;
    width: calc(100% - 40px);
    max-width: 420px;
    }
}