* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
    
}

/* Preloader - pantalla completa */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.hamburger {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
}



.logo {
    width: 100px;
    margin-bottom: 20px;
}

.spinner {
    border: 6px solid #ccc;
    border-top: 6px solid #1c9b5b;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


header {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: 80px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;

}

.logo {
    width: 300px;
    height: auto;
    margin-top: 50px;
}

/* Nav principal */
nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    position: relative;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 10px;
    display: block;
    
}

nav ul li a:hover {
    color: #2caf7d;
}

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    color: #000000;
    padding: 10px 15px;
    display: block;
}

.dropdown-menu li a:hover {
    background-color: #ffffff;
}


li.dropdown:hover .dropdown-menu {
    display: block;
}

#whatsapp-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: grab;
  z-index: 10000;
  user-select: none;
}

#whatsapp-bubble img {
  width: 30px;
  height: 30px;
  filter: invert(1);
}
#scrollToTop {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-color: #2caf7d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: background-color 0.3s ease;
}

#scrollToTop:hover {
  background-color: #1e7c59;
}

#scrollToTop svg {
  width: 24px;
  height: 24px;
  stroke: white;
}


.ai-products {
    padding: 40px 20px;
    background-color: #f9f9f9;
    font-family: 'Arial', sans-serif;
    text-align: center;
}

.ai-products h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color:#005f63;
}

.ai-products p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #333;
}

.product-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    background-color: #e4dfdf;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 300px;
    padding: 20px;
    text-align: left;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

.card h3 {
    font-size: 1.2rem;
    margin: 15px 0 10px;
    color:#005f63;
}



.card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.card .btn {
    display: inline-block;
    background-color: #386f63;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.card .btn:hover {
    background-color: #024e3e;
}
/* Estilo del botón "Ver más" */
.btn-vermas {
    display: inline-block;
    padding: 10px 20px;
    background-color: #386f63; /* Color destacado */
    color: white;
    font-size: 1.1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-vermas:hover {
    background-color: #024e3e; 
    transform: translateY(-3px); /* Efecto de elevación */
}

.btn-vermas:active {
    transform: translateY(1px); /* Efecto al hacer clic */
}




.main-footer {
    background-color: #386f63;
    color: #fff;
    padding: 40px 20px 20px;
    font-family: sans-serif;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    gap: 60px;
}

.footer-section {
    flex: 1 1 300px;
    margin: 20px;
}

.footer-section h3 {
    color: #6dd3bd;
    margin-bottom: 2px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.social-icons a {
    display: inline-block;
    margin-right: 10px;
}

.social-icons img {
    width: 24px;
    height: 24px;
    filter: invert(1);
    transition: transform 0.2s;
}

.social-icons img:hover {
    transform: scale(1.2);
}


.footer-bottom {
    text-align: center;
    padding-top: 0px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #ccc;
}

@media (max-width: 768px) {

    .hamburger {
        display: block;
        font-size: 30px;
        background: none;
        border: none;
        color: #000;
        cursor: pointer;
        margin-left: auto;
    }


    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px 30px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu.show {
        display: flex;
    }

    /* Dropdown en móviles */
    .dropdown-menu {
        position: static;
        display: none;
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding-left: 15px;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    li.dropdown>a::after {
        content: " ▼";
        font-size: 12px;
    }



    footer {
         font-size: 0.9em;
        padding: 15px;
        gap: 10px;
       
    }
}