:root {
    --button-color: #D64357;
    --button-color-hover: #ea1000;
    --blue-color: #6398c0;
    --grey-navbar-color: #232323;
}


body {
    line-height: 1.5;
    padding: 0;
    margin: 0;
    font-family: montserrat;
    background-color: #F5F5F5;
}

.navbar {
    display: flex;
    justify-content: space-between;
    padding: 12px 40px;
    background-color: var(--grey-navbar-color);
    flex-wrap: wrap;
    align-items: center;
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo .logo-img {
    width: 200px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    color: black;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    font-weight: bold;
}

.nav-links li a:hover {
    border-radius: 5px;
    cursor: pointer;
}

.nav-links li .dropdown-button {
    color: var(--blue-color);
}

nav ul li .home-logo {
    padding: 0px;
    margin: 0;
    display: block;
    width: fit-content;
    height: fit-content;
    display: flex;
    align-items: center;
}


nav ul {
    list-style: none;
}


.contact-buttons {
    display: flex;
    gap: 40px;
}

.contact-buttons li .whatsapp-button {
    background-color: var(--blue-color);
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 12px;
}

.contact-buttons li .call-button, .contact-buttons li .email-button {
    font-weight: bold;
    color: var(--blue-color);
    text-decoration: none;
}
.contact-buttons li .email-button{
    font-weight: normal;
    font-size: 18px;
}


.fa {
    margin-right: 6px;
}



.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--grey-navbar-color);
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1000;
    width: max-content;
    max-width: 300px;
}

.submenu li a {
    padding: 10px;
    color: white;
    font-weight: normal;
    font-size: 14px;
}

.submenu li a:hover {
    cursor: pointer;
    border-radius: 0px;
    background: rgb(226, 226, 226);
    background-color: rgb(59, 59, 59);
}

.dropdown:hover .submenu {
    max-height: fit-content;
}

.hero {
  height: 420px;
  width: 100%;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



.categorias,
.trayectoria,
.ambiental,
.contacto-form {
    padding: 40px 20px;
}

.categorias h1 {
    text-align: center;
    width: fit-content;
    margin: auto;
    font-size: 32px;
    color: var(--grey-navbar-color);

}

h1,
h2 {
    font-family: "Roboto", sans-serif;
}


.grid-cards {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    gap: 80px;
    margin: auto;
    justify-content: center;
    margin-top: 20px;

    border-top: 1px solid var(--grey-navbar-color);
    padding-top: 40px;
}



.card {
    max-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.card-content {
    flex-grow: 1;
}

.card h3 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 12px;
}


.btn {
    display: inline-block;
    padding: 8px 12px;
    background: var(--button-color);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    margin-top: 10px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

.btn:hover,
button:hover {
    background: var(--button-color-hover);
    transition: all 0.3s ease;
}


.trayectoria {
    background-color: rgb(233, 233, 233);
}

.section-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.section-container img {
    width: 100%;
    max-width: 480px;
    height: 300px;
    object-fit: cover;

    border-radius: 6px;

}

.section-container .section-information {
    width: 100%;
    max-width: 700px;
    padding: 20px;
    box-sizing: border-box;
}

.calidad .section-container {
    margin-top: 40px;
    padding-top: 40px;
}

.calidad .section-container img {
    height: 350px;
}



.contacto {
    max-width: 1200px;
    margin: auto;
    box-shadow: 0px 0px 6px 3px rgba(100, 100, 100, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.form-map {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background-color: white;
}

.form-map .form-contacto,
.form-map .mapa {
    flex: 1 1 300px;
}

.form-map .mapa {
    display: flex;
    justify-content: center;
}

.form-map .mapa iframe {
    width: 100%;
    max-width: 600px; 
    height: 100%;      
    min-height: 350px;  
    border: 0;
}


.form-map form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: auto;
    gap: 12px;
}

.form-map form h2 {
    width: 100%;
    padding: 0;
    margin-top: 20;
}

.form-map .form-contacto {
    width: 100%;
    max-width: 600px;
    padding: 12px;
    padding-right: 34px;
}

.form-map form .name {
    width: 48%;
}


input,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    resize: none;
    box-sizing: border-box;
    font-size: 16px;
}

.form-map form textarea {
    height: 180px;
}

.form-map form button {
    padding: 10px 15px;
    background: var(--button-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-family: "Roboto";
    font-size: 14px;
    font-weight: bold;
}

.form-map form button:hover {
    background-color: var(--button-color-hover);
}

footer {
    background: rgb(233, 233, 233);
    color: black;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

footer ul {
    list-style: none;
    flex-wrap: wrap;
    display: flex;
    gap: 30px;
}

footer .logo-footer {
    display: flex;
    align-items: center;
}

footer .logo-footer img {
    height: 40px;
}

footer ul li a {
    color: var(--blue-color);
    text-decoration: none;
}


.categoria-page h2 {

    text-align: center;
}


.card-info p{
    text-align: left;
}

.categoria-page .grid-cards {
    gap: 40px;
    max-width: 1200px;
}

.categoria-page .grid-cards .prod-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 0px 12px 5px rgba(100, 100, 100, 0.1);
    box-sizing: border-box;
    max-width: 350px;
    min-width: 320px;
    background-color: white;
}

.categoria-page .grid-cards .prod-card img {
    border-bottom: 1px solid grey;
    height: 250px;
    width: 320px;
    object-fit: cover;
}

.categoria-page .grid-cards .prod-card h3 {
    border: none;
}

.categoria-page .grid-cards .prod-card .card-info {
    padding: 0 20px;
    box-sizing: border-box;
}

.categoria-page .grid-cards .prod-card .buttons {
    display: flex;
    justify-content: space-around;
    padding-bottom: 20px;
}

.categoria-page .grid-cards .prod-card .btn.-info {
    background-color: #6D7679;
    width: 30%;
}

.categoria-page .grid-cards .prod-card .btn.-consulta {
    background-color: #F4AA48;
    width: 30%;
}

.producto-page {
    /* background-color: red; */
    background-color: white;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 0px 12px 5px rgba(100, 100, 100, 0.1);
}

.producto-page .prod-img {
    width: 560px;
    /* background-color: blue; */
    display: flex;
    align-items: center;
    justify-content: center;

}

.producto-page .prod-img .prod-imagen {
    border-right: 1px solid var(--grey-navbar-color);
    display: block;
    width: 100%;
    height: 560px;
    object-fit: contain;


}

.producto-page .prod-info-container {
    max-width: 560px;
    /* background-color: green; */
    padding: 20px;
    box-sizing: border-box;
}
.producto-page .prod-info-container .prod-info .btn{
    /* background-color: rgb(154, 213, 154); */
    box-sizing: border-box;
    width: 100%;
}

.prod-notes {
    font-style: italic;
    margin: 0 0 16px;
}

.prod-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    display: block;
    max-height: 400px;
    overflow: hidden;
    overflow-y: scroll;
}

.prod-table th,
.prod-table td {
    border: 2px solid #fff;
    text-align: left;
    width: 120px;
    height: 20px;
    font-size: 14px;
    text-align: center;
}

.prod-table .desc-table {
    width: 300px;
}

.prod-table .desc-item {
    text-align: left;
}

.prod-table td {
    background-color: #E9E9E9;
}

.prod-table th {
    background-color: #C4C4C4;
    font-weight: bold;
}

nav.mobile {
    display: none;
}

.categoria-page .cat-desc{
    padding: 10px 20px;
max-width: 1000px;
margin: auto;
}


.modal {
  display: none; /* oculto por defecto */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5); /* fondo oscuro */
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  max-width: 400px;
  text-align: center;
  position: relative;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
}

.show{
    display: flex;
}


@media (max-width: 768px) {

    .nav-links.burger-menu{
        display: flex;
        flex-direction: row;
        width: 100%;
        /* background-color: green; */
    }
    .whatsapp-button{
        background-color: var(--blue-color);
        border-radius: 6px;
        padding: 0 10px;
    }
    
    .whatsapp-button i.fa-whatsapp{
        color: white;
        padding: 0px;
        margin: 0px;
    }
    .dropdown{
        /* background-color: red; */
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: left;
;
    }

    .dropdown .fa-bars{
        padding: 0;
        margin: 0;
        color: white;
    }

    .dropdown .dropdown-button{
        background-color: var(--blue-color);
        color: white;
        border-radius: 6px;
    }

    .navbar .logo {
        display: flex;
        align-items: center;
        background-color: pink;
    }

    .navbar .logo .logo-img {
        width: 160px;
         background-color: pink;
    }

    nav.desktop {
        display: none;
    }

    nav.mobile {
        display: block;
        padding: 10px 30px;
        display: flex;
        flex-direction: row;
    }

    .related-list {
        gap: 10px;
    }

    .related-item {
        width: 45%;
    }

    .producto-page .prod-img .prod-imagen {
        border: none;
        background-color: red;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}


@media(max-width:600px) {
    .form-map form {
        padding: 10px;
        box-sizing: border-box;
        min-width: 400px;
        max-width: 440px;
        margin: 0;
    }
    .form-map .mapa{
        width: 100%;
        justify-content: center;
        display: flex;
    }
    .form-map .mapa iframe {
        height: 350px;
    }

    .form-map form input {
        min-width: 90%;
        max-width: 90%;
    }

    .form-map form textarea {
        width: 90%;
    }

    .form-map form button {
        width: 90%;
    }

    .navbar {
        flex-direction: column;
    }

    .nav-links {
        flex-direction: column;
    }

    .form-map {
        flex-direction: column;
    }

    .form-map .form-contacto p {
        /* background-color: red; */
        padding-right: 10px;
        box-sizing: border-box;
    }

}

@media(max-width:400px) {

    *{
        font-size: 14px;
    }
    h2{
        font-size: 16px;
    }
    main section p{
        font-size: 12px;
    }
    main .categorias h1{
        font-size: 18px;
    }
    a.btn{
        font-size: 10px;
    }
    .hero{
        max-height: 200px;
    }
    .form-map form {
        padding: 10px;
        box-sizing: border-box;
        min-width: 260px;
        max-width: 320px;
        margin: 0;
    }
    .form-map .mapa iframe {
        height: 300px;
    }
}