/* Variables de Color basadas en el logo MAPRISI */
:root {
    --primary-color: #38A169; /* Verde Esmeralda (Principal de marca) */
    --secondary-color: #2D8A55; /* Verde Oscuro (Para contraste/botones) */
    --background-grey: #DEDEDE; /* Gris Claro (Similar al fondo del logo) */
    --text-color: #333;
    --bg-dark: #222; /* Para Header/Footer */
}

/* Base y Tipografía */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: white;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* 🧱 Estilos del Encabezado y Logo */
header {
    background: white; /* Header blanco para destacar el logo */
    border-bottom: 3px solid var(--primary-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

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

.logo-img {
    height: 90px; /* Tamaño fijo para el logo */
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0 15px;
    font-weight: 700;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* 🌟 Estilos de la Sección Héroe (Principal) */
.hero {
    /* Fondo con una imagen de tu planta o chatarra si es posible */
    background: url('MAPRISI.jpg') no-repeat center center/cover; 
    color: white;
    min-height: 50vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Capa oscura para contraste */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); 
    z-index: 1;
}

.hero .container {
    z-index: 2;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.btn-cta {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    border: 2px solid var(--primary-color);
    transition: all 0.3s;
}

.btn-cta:hover {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* 💼 Estilos de Secciones Generales */
section {
    padding: 80px 0;
    text-align: center;
}

section h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.mision-vision {
    background-color: white; /* Fondo blanco para contraste */
    padding: 60px 0;
    text-align: left; /* Alineamos el texto a la izquierda para mejor lectura */
}

.mv-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
}

.mv-item {
    flex-basis: 45%; /* Cada columna ocupa casi la mitad del espacio */
    padding: 30px;
    border-left: 5px solid var(--primary-color); /* Detalle de color en el borde */
    background: #fcfcfc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.mv-item h2 {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--background-grey);
    padding-bottom: 10px;
}

.mv-item p {
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--text-color);
}

/* Sección de Servicios sobre fondo gris */
.servicios {
    background: var(--background-grey);
}

.servicio-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.servicio-item {
    flex-basis: 30%; 
    padding: 30px 20px;
    background: white;
    border-top: 5px solid var(--primary-color); /* Detalle de color */
    border-radius: 8px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.servicio-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

/* 📜 Estilos de Certificaciones */
.certificaciones {
    background: white;
}

.certificaciones h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 30px;
}

/* Estilo para los nombres de las certificaciones/membresías */
.logos-grid span {
    padding: 12px 25px;
    border: 2px solid var(--background-grey);
    border-radius: 5px;
    font-weight: 700;
    color: var(--text-color);
    background: #fcfcfc;
}

/* 📞 Estilos de Contacto */
.contacto {
    background: var(--primary-color);
    color: white;
    padding: 50px 0;
}

.contacto h2 {
    color: white;
    margin-bottom: 15px;
}

.contacto p {
    font-size: 1.2em;
}

.contacto a {
    color: white;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px dotted white;
}

/* 🦶 Estilos del Pie de Página */
footer {
    background: var(--bg-dark);
    color: var(--background-grey);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

.map-link {
    margin-top: 10px;
    font-size: 1em;
}