/* =========================================
   1. Reset, Variables y Animación
   ========================================= */
:root {
  --primary-color: #0056b3;
  --text-color: #333333;
  --bg-color: #f0f2f5; 
  --card-bg: #ffffff;
  --shadow-md: 0 12px 40px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  display: flex; align-items: center; justify-content: center;
  background-color: var(--bg-color);
}

@keyframes fadeInContainer {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   2. Contenedor (Más compacto)
   ========================================= */
#container {
  width: 95%;
  max-width: 750px; /* Reducido de 900px para que todo sea más pequeño */
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: fadeInContainer 0.8s ease-out;
}

/* =========================================
   3. Cabecera (Ajustada al nuevo tamaño)
   ========================================= */
#header {
  background: linear-gradient(135deg, #004b87 0%, #0073e6 100%);
  height: 120px; /* Un poco menos alto para mantener la proporción */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
}

#logo-text {
  font-size: clamp(24px, 5vw, 32px); /* Un pelín más pequeño */
  color: #FFFFFF;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  text-shadow: 2px 3px 6px rgba(0,0,0,0.3);
}

/* =========================================
   4. Grid 3x3 (Botones más pequeños)
   ========================================= */
#site-content {
  padding: 25px 30px; /* Reducido el padding interno */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 15px; /* Espacio entre botones más pequeño */
  margin-bottom: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px; /* Botones menos "gordos" */
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.25s ease;
  min-height: 110px; /* Reducido de 140px */
}

.service-card img {
  width: 32px; /* Iconos más pequeños */
  height: 32px;
  margin-bottom: 8px;
}

.service-card span {
  font-weight: 700;
  font-size: 12px; /* Texto un punto más pequeño */
  line-height: 1.2;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 6px 15px rgba(0,0,0,0.06);
  color: var(--primary-color);
}

/* =========================================
   5. Pie de Página
   ========================================= */
.divider { border: 0; height: 1px; background: #eee; margin: 10px 0 15px 0; }

.footer-banner { text-align: center; padding-bottom: 15px; }

.text-1 {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
}

.text-1 strong { font-weight: 700; color: #777; }

.banner-img {
  width: 240px; /* Logo de abajo también un poco más pequeño */
  opacity: 0.85;
}

/* =========================================
   6. Modo Móvil
   ========================================= */
@media (max-width: 600px) {
  body { display: block; overflow: auto; }
  #container { border-radius: 0; width: 100%; }
  #header { height: 100px; }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px;
  }
}
