:root {
    --primary-color: #099839; 
    --secondary-color: #F9b510; 
    --text-color: #000000;
    --light-bg: #f4f4f9;
    --dark-bg: #ca123a;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #444;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.encabezado-principal {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(255, 2, 2, 0.2);
}
.logo{
    display: flex;
}

.logo h1 {
    font-size: 1.8em;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    color: #000000;
}
.logo img{
    height: 80px;
    display: flex;
    margin: 5px;
    border-radius: 50%;
    align-items: center;
}
/* Menú de Navegación */
.navegacion-principal {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-list a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 10px 0;
    transition: color var(--transition-speed), border-bottom var(--transition-speed);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
}

#menu-de-Inicio,
.menu-icon {
    display: none;
}

.main-content {
    padding: 20px 5%;
    min-height: 70vh; 
}

/* Títulos de Página */
.page-title {
    text-align: center;
    margin-bottom: 30px;
}

.page-title h2 {
    font-size: 2.2em;
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    padding: 8px !important;
}

.page-title p {
    color: #ffffff;
    font-style: italic;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    width: fit-content;
    padding: 3px 8px;
    text-align: center;
    margin: auto;
}


.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    color: white;
    padding: 80px 40px;
    text-align: center;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.hero-main {
    background-image: linear-gradient(#444a, transparent, #444a), url(fondo.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}


.cta-button {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border: none; 
    border-radius: 50px;
    transition: var(--transition-speed);
}

.cta-button:hover {
    background-color: #ffda6a;
    transform: scale(1.05);
}


.cta-button.small-button {
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 4px;
}


.key-info h3,
.project-section h3 {
    text-align: center;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 1.8em;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
}


.info-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.info-grid article {
    width: 80%;
}

.info-grid-noticias article img {
    width: 100%;
}

.info-grid article img {
    width: 70%;
    margin: auto;
    margin-bottom: 8px;
}

.info-grid article h4 {
    text-align: center;
}
.info-card {
   background-color: var(--light-bg);
    gap: 15px;
    padding: 20px;
    border-left: 5px solid var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.info-card:hover {
    box-shadow: 0 6px 15px rgba(255, 0, 0, 0.15);
}

.info-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.mapa {
    display: flex;
    height: 200px;
    width: 95%;
    border-radius: 15px;
    overflow: hidden;
    justify-content: center;
    margin-left: 30px;
    margin-bottom: 20px;
}


.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    background-color: var(--light-bg);
    margin-bottom: 15px;
    padding: 20px;
    border-left: 5px solid var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Noticias */
.news-list {
    max-width: 900px;
    margin: 0 auto 40px;
}

.news-article {
    text-align: left;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.news-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.news-date {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

/* Proyectos */
.project-card.completed {
    border: 1px solid #4CAF50; /* Verde */
    background-color: #e8f5e9; 
}
.project-card p strong {
    color: var(--primary-color);
}


/* Formulario de Contacto */
.contact-form-section {
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .cta-button {
    width: 100%;
    cursor: pointer;
    margin-top: 10px;
}

.location-details {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    border: 1px dashed #ccc;
    border-radius: var(--border-radius);
}

/* PIE DE PÁGINA Y CONTACTO (FOOTER) */

.main-footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 30px 5%;
    text-align: center;
}

.contact-section {
    padding-bottom: 20px;
    border-bottom: 1px solid #444;
    margin-bottom: 15px;
}

.contact-section h4 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.contact-details {
    margin-bottom: 20px;
}

.contact-details p {
    margin: 5px 0;
    font-size: 0.95em;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; 
}

.social-icon {
    color: white;
    text-decoration: none;
    font-size: 1em;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color var(--transition-speed), transform 0.2s;
    font-weight: bold;
}

.social-icon.instagram { background-color: #E4405F; }
.social-icon.arroba { background-color: #000000; }
.social-icon.facebook { background-color: #4267B2; }
.social-icon.x { background-color: #000000; }

.social-icon:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.copyright {
    font-size: 0.8em;
    opacity: 0.7;
}
.imagen {
    display: flex;
    justify-content: center;
    align-items: center;
}
.historia-mision{
    background-color: #3333;
    box-shadow: #000000;
    border-radius: 25px;
    text-align: center;
    padding: 25px;
}
.logos-de-arriba{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: white;
}


@media (max-width: 768px) {
    
    .encabezado-principal {
        padding: 15px 4%;
        display: flex;
        align-items: flex-start;
    }
    
    .logo {
        flex-grow: 1;
    }

    .navegacion-principal {
        width: 100%;
        margin-top: 15px;
        display: flex;
        justify-content: flex-end;
        margin-right: 40px;
    }

    .mapa{
        display: flex;
        height: 200px;
        width: 89%;
        border-radius: 15px;
        overflow: hidden;
        justify-content: center;
        margin-left: 33px;
        margin-bottom: 20px;
    }

 
    .menu-icon {
        display: block;
        font-size: 2em;
        cursor: pointer;
        order: 2; 
    }

    .nav-list {
        display: none;
        flex-direction: column; 
        width: 100%;
        background-color: #003666; 
        border-radius: var(--border-radius);
    }

    .nav-list li {
        text-align: center;
        width: 100%;
    }

    .nav-list a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-list a:hover,
    .nav-list a.active {
        background-color: var(--secondary-color);
        color: var(--primary-color);
        border-bottom: none;
    }
    
    
    #menu-de-Inicio:checked ~ .nav-list {
        display: flex;
    }


    .main-content {
        padding: 20px 4%;
    }
    
    .hero {
        padding: 40px 15px;
    }

    .hero h2 {
        font-size: 1.8em;
    }
    
    .hero p {
        font-size: 1em;
    }

    .page-title h2 {
        font-size: 1.8em;
    }
    .h2-reseña {
        padding: 20px;    
    }

    .info-card {
        flex: 1 1 100%;
    }

    .contact-details {
        margin-bottom: 15px;
    }
    
    .social-icon {
        font-size: 0.9em;
        padding: 6px 10px;
    }
}

@media screen and (min-width: 540px) {
    
    .info-grid {
        flex-direction: row;
    }

    .info-grid article {
        width: 30%;
    }
}

.info-grid-servicios {
    align-items: start;
}

:root {
            /* Colores corporativos INVILARA */
            --color-principal: #099839; /* Verde */
            --color-secundario: #F9b510; /* Amarillo/Dorado */
            --color-accent: #ca123a; /* Rojo oscuro */
            --color-fondo: #f4f4f9;
            --color-texto: #333;
            --color-borde: #ccc; /* Gris claro para líneas de separación */
        }

        body {
            font-family: 'Arial', sans-serif;
            line-height: 1.6;
            margin: 0;
            padding: 0;
            background-color: #fff;
            color: var(--color-texto);
            font-size: 11pt; /* Tamaño de fuente típico de documento */
        }

        .manual-header {
            /* Fondo oscuro similar al PDF */
            background-color: #333; 
            color: white;
            padding: 60px 5%;
            text-align: center;
        }

        .manual-header h1 {
            font-size: 2.5em;
            margin: 0 0 10px 0;
            font-weight: bold;
        }

        .manual-header h2 {
            font-size: 1.5em;
            font-weight: normal;
        }

        .manual-content {
            padding: 20px 8%; /* Margen lateral más ancho para simular documento */
            max-width: 900px;
            margin: 0 auto;
        }

        /* Estilo para los títulos de sección (similar a "Usabilidad" o "Objetivos") */
        .seccion-titulo {
            font-size: 1.8em;
            color: #333;
            border-bottom: 2px solid var(--color-borde);
            padding-bottom: 5px;
            margin-top: 40px;
            margin-bottom: 15px;
            font-weight: normal; /* Normalizado para un look más sobrio */
        }

        .sub-titulo {
            font-size: 1.3em;
            color: var(--color-principal);
            margin-top: 25px;
            margin-bottom: 10px;
            font-weight: bold;
        }

        .sub-titulo.archivo {
            background-color: var(--color-fondo);
            padding: 5px 10px;
            border-left: 5px solid var(--color-accent);
            font-size: 1.4em;
        }

        /* Estilo para el índice de contenido (más limpio) */
        .seccion-indice table {
            border: none;
            box-shadow: none;
            margin-bottom: 30px;
        }
        .seccion-indice th, .seccion-indice td {
            border: none;
            padding: 5px 0;
        }
        .seccion-indice td:last-child {
            text-align: right; /* Simula la paginación del índice */
            width: 50px;
            color: var(--color-principal);
            font-weight: bold;
        }
        .seccion-indice td:first-child {
            text-align: left;
            padding-left: 20px;
            width: 150px; /* Ancho ajustado para la columna de sección */
        }


        /* Estilos de Listas y Tablas */
        ul {
            list-style: disc inside;
            padding-left: 20px;
            margin-bottom: 20px;
        }
        li strong {
            color: var(--color-accent);
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 25px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
            font-size: 0.95em;
        }
        th, td {
            padding: 10px;
            text-align: left;
            border: 1px solid #eee;
        }
        th {
            background-color: var(--color-fondo);
            color: var(--color-texto);
            font-weight: bold;
        }

        .manual-footer {
            text-align: center;
            padding: 15px 5%;
            background-color: #333;
            color: #fff;
            font-size: 0.8em;
            margin-top: 40px;
        }

        .flotante {
            position: fixed;
            bottom: 3vh;
            right: 2vw;
            background: url(libro-abierto.png) no-repeat center / cover;
        }

        .icon-flotante {
            opacity: 0;
        }