@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

/* ==========================================
   RESET Y VARIABLES DE ESTILO (AF&ASE)
   ========================================== */
:root {
  --primary: #0f4c81;        /* Azul institucional */
  --primary-dark: #0a3357;   /* Azul oscuro */
  --primary-light: #eef5fc;  /* Azul muy claro para fondos de acento */
  --accent: #25d366;         /* Verde WhatsApp / Acción */
  --accent-hover: #1ebc57;
  --bg-light: #f8fafc;       /* Gris claro de fondo moderno */
  --text-color: #1e293b;     /* Texto principal (Slate 800) */
  --text-muted: #64748b;    /* Texto secundario (Slate 500) */
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -5px rgba(15, 76, 129, 0.12);
  --radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-color);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================
   HEADER Y NAVEGACIÓN
   ========================================== */
.main-header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

/* --- LOGO Y MARCA (ALINEADO HORIZONTALMENTE) --- */
.logo a {
  display: flex;
  flex-direction: row; /* Fuerza alineación horizontal (Imagen a la izq, texto a la der) */
  align-items: center;  /* Centrado vertical entre la imagen y el texto */
  gap: 12px;           /* Distancia entre la imagen y el bloque de texto */
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.12));
  transition: transform 0.2s ease;
}

.logo a:hover .logo-img {
  transform: scale(1.04);
}

.logo-text {
  display: flex;
  flex-direction: column; /* Título AF&ASE arriba y subtítulo abajo */
  justify-content: center;
}

.logo-text h2 {
  color: var(--primary);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.5px;
}

.logo-text span {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-top: 3px;
}

/* --- MENÚ DE NAVEGACIÓN --- */
.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 6px;                  /* Espacio más ajustado entre botones */
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.82rem;         /* Texto más pequeño (antes 0.95rem) */
  padding: 5px 10px;          /* Menos relleno interno */
  border: 1px solid var(--primary); /* Borde de 1px (más fino y elegante) */
  border-radius: var(--radius);
  background-color: transparent;
  white-space: nowrap;       /* Evita que "Quiénes Somos" se divida en 2 líneas */
  transition: var(--transition);
}

/* Desactivar subrayado anterior */
.nav-menu a::after {
  display: none;
}

/* --- ESTADOS HOVER Y ACTIVO --- */
.nav-menu a:hover,
.nav-menu a.active {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 5px;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.50), rgba(10, 51, 87, 0.50)),
              url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
  color: var(--white);
  padding: 110px 0 120px;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 780px;
  margin: 0 auto 35px;
  opacity: 0.92;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* ==========================================
   ESTRUCTURA Y GRILLAS
   ========================================== */
.grid {
  display: grid;
  gap: 30px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.section-title {
  text-align: center;
  margin: 70px 0 40px;
}

.section-title h2 {
  color: var(--primary);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================
   FOOTER INSTITUCIONAL
   ========================================== */
.main-footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding-top: 60px;
}

.footer-col h3 {
  margin-bottom: 22px;
  font-size: 1.2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 10px;
  font-weight: 700;
  color: var(--white);
}

.footer-col p {
  opacity: 0.85;
  font-size: 0.95rem;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.contact-list strong {
  color: #93c5fd;
}

.footer-bottom {
  background-color: #06192b;
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
  font-size: 0.85rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}