* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
}

body {
  margin: 0;
  background: #f2f4f7;
  overflow-x: hidden; /* 🔑 evita scroll lateral */
}

/* ==============================
   FUENTE BBH BARTLE
   ============================== */
@font-face {
  font-family: 'BBH Bartle';
  src: url('fonts/BBHBartle-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'BBH Bartle';
  src: url('fonts/BBHBartle-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/* HEADER */
.top {
  background: #0a2a66;
  padding: 15px 30px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  flex-wrap: wrap; /* 🔑 permite que baje en móvil */
}


/* BRAND */
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand img {
  height: 55px;
}

.brand h1 {
  margin: 0;
  font-family: 'BBH Bartle', Arial, sans-serif;
  font-size: 36px;
  font-weight: bold;
  letter-spacing: 2px;
  color: white;
}

/* CONTACTO HEADER */
.header-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.header-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  flex-wrap: wrap; /* 🔑 evita que empuje la pantalla */
  text-align: center;
}
.header-contact .contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  max-width: 100%;
  word-break: break-word; /* 🔑 correo no rompe el layout */
}


/* CONTACTO SECCIÓN */
.contacto {
  background: white;
  padding: 40px;
  text-align: center;
}

.contacto .contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.contacto .contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0a2a66;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

/* Iconos PNG */
.contact-item .icon {
  width: 22px;
  height: 22px;
}

/* Separador vertical */
.separator {
  font-weight: bold;
  color: rgba(255,255,255,0.7);
}

.contacto .separator {
  color: #0a2a66;
}

/* HERO */
.hero img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #e9edf2;
}

/* MENU */
.menu {
  background: #084298;
  text-align: center;
  padding: 18px 0;
}

.menu a {
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  margin: 0 10px;
  padding: 0 8px;
}

.menu-sep {
  color: white;
  font-weight: bold;
  margin: 0 5px;
}

/* PRODUCTOS */
.productos {
  padding: 50px 20px;
}

.productos h2,
.contacto h2,
.blog h2 {
  text-align: center;
  font-family: 'BBH Bartle', Arial, sans-serif;
  font-size: 32px;
  font-weight: bold;
  color: #0a2a66;
  margin-bottom: 30px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: auto;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f4f6f8;
  border-radius: 8px;
}

.card h3 {
  color: #0a2a66;
  font-size: 20px;
  font-weight: bold;
}

.btn {
  display: inline-block;
  background: #0a58ca;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

/* BLOG */
.blog {
  padding: 40px;
}

.blog-box {
  background: white;
  padding: 30px;
  max-width: 900px;
  margin: auto;
  border-radius: 10px;
}

/* FOOTER */
footer {
  background: #0a2a66;
  color: white;
  text-align: center;
  padding: 15px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  .header-container {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .brand {
    justify-content: center;
    text-align: center;
  }

  .header-contact,
  .contacto .contact-row {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .separator {
    display: none;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu a {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
/* BLOG */
/* BLOG */
.blog-section {
  padding: 70px 20px;
  background: #eef3ff;
}

.blog-title {
  text-align: center;
  font-size: 34px;
  margin-bottom: 40px;
  color: #0a2e6d;
}

.blog-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.blog-card {
  background: #0a2e6d;
  color: #fff;
  padding: 40px;
  border-radius: 18px;
}

.blog-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.blog-content {
  font-size: 16px;
  line-height: 1.7;
}

.blog-content p {
  margin-bottom: 14px;
}

.blog-btn-wrap {
  text-align: center;
  margin-top: 25px;
}

.blog-btn {
  display: inline-block;
  background: #fff;
  color: #0a2e6d;
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
}
.blog-content {
  font-size: 16px;
  line-height: 1.7;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

