/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Encabezado */
header {
    background: linear-gradient(90deg, #002f6c, #00509d);
    color: white;
    width: 100%;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    position: relative;
}

header .logo img {
    width: auto;
    height: 100px;
}

/* Menú de navegación */
nav {
    flex-grow: 1;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Estilos generales del botón del menú */
.menu-toggle {
    display: none; /* Ocultar por defecto en escritorio */
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1000;
}

/* Estilos específicos para móviles */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block; /* Mostrar solo en pantallas pequeñas */
    }

    nav ul {
        display: none; /* Ocultar menú por defecto en móviles */
        flex-direction: column;
        background: #002f6c;
        position: absolute;
        width: 100%;
        top: 60px;
        left: 0;
        text-align: center;
        padding: 10px 0;
        z-index: 999;
    }

    nav ul.show {
        display: flex; /* Mostrar menú cuando se active */
    }
}

/* Asegurar que el main ocupe al menos toda la pantalla */
main {
    min-height: calc(100vh - 120px); /* 100% de la altura de la ventana menos el header y footer */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Hero Section */
.hero {
    background: url('assets/hero.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 100px 20px;
    width: 100%;
}

.hero h1 {
    font-size: 36px;
    font-weight: bold;
}

.hero p {
    font-size: 18px;
}

/* Secciones */
section {
    background: white;
    padding: 40px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 80%;
}

/* Footer */
footer {
    background: #002f6c;
    color: white;
    text-align: center;
    padding: 20px;
    width: 100%;
}

/* Estilos para la sección "Sobre OPI" */
.about-section {
    background: white;
    padding: 50px;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    max-width: 900px;
}

/* Título principal */
.about-section h1 {
    font-size: 36px;
    font-weight: bold;
    color: #002f6c;
    margin-bottom: 20px;
    text-align: center;
}

/* Subtítulos */
.about-section h2 {
    font-size: 28px;
    font-weight: bold;
    color: #00509d;
    margin-top: 25px;
}

/* Párrafos */
.about-section p {
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

/* Lista de valores */
.about-section ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.about-section ul li {
    background: #f4f4f4;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-left: 5px solid #ff6600;
    font-size: 18px;
    color: #333;
}

/* Estilos para la sección de servicios */
.services-section {
    background: white;
    padding: 50px;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 900px;
}

/* Título principal */
.services-section h1 {
    font-size: 36px;
    font-weight: bold;
    color: #002f6c;
    margin-bottom: 30px;
}

/* Cada servicio */
.service {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service img {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.service h2 {
    font-size: 28px;
    color: #00509d;
    margin-bottom: 10px;
}

.service p {
    font-size: 18px;
    color: #444;
    line-height: 1.6;
}

/* Estilos para la sección de sostenibilidad */
.sustainability-section {
    background: white;
    padding: 50px;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 900px;
}

/* Título principal */
.sustainability-section h1 {
    font-size: 36px;
    font-weight: bold;
    color: #002f6c;
    margin-bottom: 30px;
}

/* Cada iniciativa */
.sustainability {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.sustainability img {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.sustainability h2 {
    font-size: 28px;
    color: #00509d;
    margin-bottom: 10px;
}

.sustainability p {
    font-size: 18px;
    color: #444;
    line-height: 1.6;
}

/* Sección de contacto */
.contact-section {
    background: white;
    padding: 50px;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
}

/* Información de contacto */
.contact-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.contact-info h2 {
    font-size: 24px;
    color: #00509d;
    margin-bottom: 10px;
}

.contact-info p {
    font-size: 18px;
    margin: 5px 0;
}

.contact-info a {
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Formulario */
.contact-section form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-section label {
    font-size: 18px;
    font-weight: bold;
    color: #444;
    margin-top: 10px;
    text-align: left;
    width: 100%;
}

.contact-section input,
.contact-section textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.contact-section textarea {
    height: 120px;
    resize: none;
}

/* Botón de envío */
.contact-section button {
    background: #ff6600;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.contact-section button:hover {
    background: #cc5500;
}
