:root {
  --azul: #0d47a1;
  --azul-claro: #1976d2;
  --amarillo: #ffc107;
  --fondo: #f4f6fb;
  --texto: #1a1a1a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Topbar */
.topbar {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texto); }
.brand img { width: 34px; height: 34px; }
.brand span { font-size: 1.25rem; font-weight: 500; }
.brand b { color: var(--azul); }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--texto); font-weight: 500; }
.nav a:hover { color: var(--azul); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0d47a1, #1976d2);
  color: #fff;
  padding: 70px 0;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 2.6rem; line-height: 1.15; margin-bottom: 16px; }
.hero p { font-size: 1.15rem; margin-bottom: 24px; opacity: .95; }
.hero-img img { width: 100%; border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--amarillo);
  color: #0d47a1;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 30px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }

/* Sections */
.section { padding: 64px 0; }
.section-title { font-size: 2rem; margin-bottom: 32px; color: var(--azul); text-align: center; }
.dark { background: #0d47a1; }
.dark .section-title { color: #fff; }
.dark .card { background: rgba(255,255,255,.1); color: #fff; border: none; }
.dark .card p { color: rgba(255,255,255,.85); }

/* About */
.about { padding: 64px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-img { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-img img { width: 100%; border-radius: 14px; object-fit: cover; height: 260px; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.about-info { color: #fff; text-align: left; }
.about-info .section-title { text-align: left; }
.about-info p { color: rgba(255,255,255,.9); margin-bottom: 18px; }
.values { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.values li { background: rgba(255,255,255,.1); padding: 12px 16px; border-radius: 10px; color: rgba(255,255,255,.92); }
.values strong { color: var(--amarillo); }

/* Stats */
.stats { background: var(--amarillo); padding: 40px 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-size: 2.2rem; color: #0d47a1; }
.stat span { font-size: 1rem; color: #6b5700; font-weight: 600; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure { margin: 0; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.gallery img { width: 100%; height: 220px; object-fit: cover; display: block; }
.gallery figcaption { padding: 12px 16px; font-weight: 600; color: var(--texto); text-align: center; }

/* contact title */
.contact-title { font-size: 1.4rem; color: var(--azul); margin-bottom: 16px; }

/* Cards */
.grid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff;
  border-radius: 14px;
  padding: 26px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.card-icon { width: 44px; height: 44px; margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--gris, #5a5a5a); }

.card.team img { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
.card.team { text-align: left; }
.card.team h3 { margin-bottom: 6px; }

/* Logos */
.logos { background: #fff; }
.logo-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 40px; }
.lbl {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gris, #5a5a5a);
  opacity: .75;
  letter-spacing: .5px;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info p { margin-bottom: 12px; font-size: 1.05rem; }
.contact-info a { color: var(--azul); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }
.socials { display: flex; gap: 14px; margin-top: 20px; }
.socials a { background: #fff; width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.socials svg { width: 22px; height: 22px; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input,
.contact-form textarea {
  padding: 13px 15px;
  border: 1.5px solid #dfe3eb;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--azul); }

/* Footer */
.footer { background: #0b3a80; color: rgba(255,255,255,.85); padding: 22px 0; text-align: center; font-size: .95rem; }

/* Responsive */
@media (max-width: 900px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .about-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .about-img { margin-top: 8px; }
}
@media (max-width: 700px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav { gap: 12px; font-size: .9rem; }
  .gallery { grid-template-columns: 1fr; }
}