/* ==========================================================================
   ESTILOS GLOBALES - LIMAR ALIMENTOS
   ========================================================================== */

:root {
    /* Paleta de colores basada en el logo */
    --morado-principal: #702082; /* El morado del logo */
    --morado-claro: #f3e5f5;
    --blanco: #ffffff;
    --texto-oscuro: #333333;
    --texto-gris: #666666;
    --fuente-principal: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente-principal);
    line-height: 1.6;
    color: var(--texto-oscuro);
    background-color: #fcfcfc;
}

/* ==========================================================================
   ENCABEZADO (HEADER)
   ========================================================================== */

header {
    background-color: var(--blanco);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo img {
    height: 60px; /* Ajuste para el logo cuadrado/rectangular */
    border-radius: 5px;
}

/* Selector para la clase con espacio en el HTML "nombre empresa" */
.nombre.empresa {
    color: var(--morado-principal);
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--texto-oscuro);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--morado-principal);
}

/* ==========================================================================
   CONTENIDO GENERAL Y SECCIONES
   ========================================================================== */

.content {
    padding: 4rem 10%;
    max-width: 1200px;
    margin: 0 auto;
}

.title {
    color: var(--morado-principal);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}
.parrafo-inicio {
    font-size: 1.1rem;
    color: var(--texto-gris);
    margin-bottom: 2rem;
    text-align: justify;
}

/* ==========================================================================
   TARJETAS DE SERVICIOS (CARDS)
   ========================================================================== */

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--blanco);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--morado-principal);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    color: var(--morado-principal);
    margin-bottom: 1rem;
}

/* ==========================================================================
   SECCIÓN CLIENTES
   ========================================================================== */

.content-clientes {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 2rem;
    flex-wrap: wrap;
    background-color: var(--morado-claro);
}

.content-clientes img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15%;
    border: 5px solid var(--blanco);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.content-clientes img:hover{
    cursor: pointer;
    transform: scale(1.1);
}

/* ==========================================================================
   TESTIMONIOS
   ========================================================================== */

.section_container {
    padding: 4rem 5%;
    background-color: #fff;
}

.header-coments h1 {
    text-align: center;
    color: var(--morado-principal);
    margin-bottom: 3rem;
}

.cuadro-testimonios {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.card-testimonios {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    width: 350px;
    text-align: center;
    position: relative;
}

.card-testimonios i {
    font-size: 2rem;
    color: var(--morado-principal);
    opacity: 0.3;
}

.card-testimonios img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 15px 0;
}

.card-testimonios .nombre {
    font-weight: bold;
    color: var(--morado-principal);
}

/* Estilo para el llamado a la acción del INVIMA */
.footer-testimonials {
    text-align: center;
    background: var(--morado-principal);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-testimonials h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-testimonials a {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: white;
    color: var(--morado-principal);
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition:  0.3s;
}

.footer-testimonials a:hover {
    background-color: var(--morado-claro);
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================================== */

.footer {
    background-color: #222;
    color: white;
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--morado-principal);
    padding-left: 10px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--morado-principal);
}

.social-link {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-link a {
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
}

.social-link a:hover {
    background: var(--morado-principal);
}

.autor {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #888;
}
/* este es el formulario*/
.modal-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px); /* Efecto de desenfoque moderno */
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--morado-principal);
}

@keyframes fadeIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
/* ==========================================================================
   RESPONSIVE - ADAPTACIÓN A MÓVILES
   ========================================================================== */

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-row {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links h4 {
        border-left: none;
        border-bottom: 2px solid var(--morado-principal);
        display: inline-block;
        padding-bottom: 5px;
    }

    .social-link {
        justify-content: center;
    }
}
/*MEDIA QUERY PARA DIS (Hasta 768px)
   ========================================================================== */

@media (max-width: 768px) {
    
    /* 1. Header: Apilamos el logo y el menú */
    header {
        flex-direction: column;
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    nav {
        flex-wrap: wrap; /* Si hay muchos links, saltan de línea */
        justify-content: center;
        gap: 15px;
    }

    .logo {
        flex-direction: column;
        text-align: center;
    }

    /* 2. Títulos: Bajamos un poco el tamaño para que no se corten */
    .title {
        font-size: 1.8rem;
        text-align: center;
        display: block;
    }

    .title::after {
        margin: 10px auto 0; /* Centramos la rayita decorativa */
    }

    .parrafo-inicio {
        text-align: left; /* En móvil es más fácil de leer alineado a la izquierda */
        font-size: 1rem;
    }

    /* 3. Cards de Servicios: Una debajo de otra */
    .card-container {
        grid-template-columns: 1fr; /* Forzamos una sola columna */
        padding: 1rem 5%;
    }

    .card img {
        height: 180px; /* Un poco más bajas para ahorrar espacio vertical */
    }

    /* 4. Sección Clientes: Ajustamos los círculos */
    .content-clientes {
        gap: 15px;
    }

    .content-clientes img {
        width: 140px; /* Círculos más pequeños en móvil */
        height: 140px;
    }

    /* 5. Testimonios: De horizontal a vertical */
    .cuadro-testimonios {
        flex-direction: column;
        align-items: center;
    }

    .card-testimonios {
        width: 100%; /* Que ocupen todo el ancho disponible */
        max-width: none;
    }

    .footer-testimonials {
        padding: 2rem 1.5rem;
    }

    .footer-testimonials h4 {
        font-size: 1.4rem;
    }

    /* 6. Footer: Columnas centradas */
    .footer-row {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-links h4 {
        border-left: none;
        border-bottom: 2px solid var(--morado-principal);
        display: inline-block;
        padding-bottom: 5px;
        margin-bottom: 1rem;
    }

    .social-link {
        justify-content: center;
    }
}

/* ==========================================================================
   AJUSTE EXTRA PARA PANTALLAS MUY PEQUEÑAS (Hasta 480px)
   ========================================================================== */

@media (max-width: 480px) {
    .nombre.empresa {
        font-size: 1.2rem;
    }

    .btn-enviar, .footer-testimonials a {
        width: 100%; /* Botones de ancho completo para fácil clic con el pulgar */
    }
}