﻿@charset "utf-8";
/* CSS Document */

/* Paleta de colores más profesional y moderna */
:root {
  --color-principal: #1f3a8a; /* Azul oscuro para encabezados y botones */
  --color-secundario: #8db3ff; /* Azul más claro para acentos */
  --color-fondo: #f4f6f9; /* Fondo muy claro y suave */
  --color-texto-oscuro: #334155; /* Gris oscuro para el cuerpo del texto */
  --color-texto-claro: #94a3b8; /* Gris más claro para subtítulos y texto secundario */
}

/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--color-fondo);
  color: var(--color-texto-oscuro);
  line-height: 1.7;
}

/* Contenedores */
.contenedor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Estilos de HEADER */
header {
    background: #1e3a8a;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header .contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

#logo img {
    height: 100px;
}

/* Estilos de NAVEGACIÓN */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: #8db3ff;
    transition: width 0.3s ease;
    position: absolute;
    bottom: -5px;
    left: 0;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Estilo para el botón de navegación activo */
a.activo {
    color: #8db3ff;
}

a.activo::after {
    width: 100%;
    background: #8db3ff;
}

/* Estilos de SECCIONES */
section {
    padding-top: 150px;
    padding-bottom: 60px;
}

/* Tarjeta base para secciones */
.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Estilo para la sección de Misión y Visión */
#grupo1 .subcontenedor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
}

#grupo1 .titular {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-principal);
    margin-bottom: 15px;
    text-align: center;
}

.textos {
    font-size: 1.1rem;
    color: var(--color-texto-oscuro);
    text-align: justify;
}

/* Botón de WhatsApp flotante */
.whatsapp-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 40px;
    height: 40px;
}

/* Menú hamburguesa (oculto en escritorio) */
#menu-bar {
    display: none;
}

.icon-menu {
    display: none;
    cursor: pointer;
    font-size: 2.5rem;
    color: #fff;
}

@media (max-width: 768px) {
    .icon-menu {
        display: block;
    }

    nav {
        position: absolute;
        top: 120px;
        left: 0;
        width: 100%;
        background: #1e3a8a;
        transform: translateY(-200%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
    }

    #menu-bar:checked ~ nav {
        transform: translateY(0);
    }
    
    #grupo1 .subcontenedor {
        grid-template-columns: 1fr;
    }

    section {
        padding-top: 100px;
    }
}

/* Estilos del Footer */
footer {
    background-color: #1e3a8a; /* Color de fondo del pie de página */
    color: #ffffff; /* Color del texto del pie de página */
    padding: 20px 0;
    text-align: center; /* Esta línea centra el texto */
    font-size: 0.9rem;
}

footer a {
    color: #8db3ff; /* Color del enlace en el pie de página */
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}