@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&family=Open+Sans:wght@400;600&display=swap');

/* Variables y paleta de colores (tema claro) */
:root {
  --poex-blue: #0B3C5D;
  --poex-light: #36A2EF;
  --bg: #ffffff;
  --bg-alt: #F8FAFC;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #0b1b2b;
  --muted: #475569;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
}

/* Reset básico */
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--poex-blue); text-decoration: none; }
a:hover { opacity: .9; }

/* Contenedor y secciones */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 38px;
  margin-bottom: 12px;
  text-align: center;
}
.section p.lead {
  text-align: center;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 40px;
}

/* Header fijo con transición */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: background .3s, box-shadow .3s;
}
.header.scrolled {
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
  border-bottom: 1px solid var(--border);
}
.header .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Montserrat";
  font-weight: 700;
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav a {
  padding: 8px 12px;
  border-radius: 8px;
}
.nav a:hover { background: #eef2f7; }
.cta-btn {
  background: var(--poex-light);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
}

/* Grillas y tarjetas */
.grid {
  display: grid;
  gap: 28px;
  justify-content: center;
}
.grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid.cols-4 { grid-template-columns: 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  min-height: 280px;
}
.card .icon {
  width: 60px;
  height: 60px;
  background: #e6f6ff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  margin: 0 0 8px;
}
.card p {
  flex: 1;
  color: var(--muted);
  margin: 0;
}

/* Contacto */
#contacto .grid {
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  #contacto .grid { grid-template-columns: 1fr; }
}
#contacto .info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
#contacto form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
#contacto form input,
#contacto form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
#contacto form button {
  align-self: flex-start;
  background: var(--poex-light);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  margin-top: 12px;
  cursor: pointer;
}

/* Footer */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 50px 0 20px;
  color: var(--muted);
}
.footer .grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.footer h4 {
  font-family: "Montserrat", sans-serif;
  margin-bottom: 8px;
}
.footer p, .footer li {
  color: var(--muted);
  margin: 4px 0;
}
.footer li { list-style: none; }
.footer small {
  display: block;
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
body {
  margin-top: 80px; /* la altura promedio del header */
}

