body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  color: #1c1c1c;
  box-sizing: border-box;
}

/* Header */
.header-top {
  background: #005c96;
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 5px 0;
}

.nav-container {
    width: 1280px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: #fff;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: #005c96;
  font-weight: 600;
}

.btn-primary {
  background: #005c96;
  color: #fff;
  padding: 8px 18px;
  border-radius: 4px;
  text-decoration: none;
}

img.logo {
    width: 190px;
}

/* Banner */
.banner {
  width: 1280px;
    margin: auto;
    position: relative;
}
.banner img {
  width: 100%;
  display: block;
}
.banner-text {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 350px;
}

.banner-mobile{
  display: none;
}

.btn-secondary {
  display: inline-block;
  margin-top: 10px;
  background: #fff;
  color: #005c96;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
}

/* Seguros */
.seguros {
  text-align: center;
  padding: 50px 0;
}
.seguros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 20px;
}
.seguros-grid div {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}
.seguros-grid img {
  width: 100%;
  display: block;
}
.seguros-grid span {
  position: absolute;
  bottom: 10px;
  left: 15px;
  color: #fff;
  font-weight: 700;
}

/* Blog */
.blog {
  background: #f7f7f7;
  padding: 50px 0;
  text-align: center;
}
.blog-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.blog-grid img {
  width: 100%;
  border-radius: 6px;
  transition: transform 0.3s;
}
.blog-grid img:hover {
  transform: scale(1.05);
}

/* --- Bloque SSN (versión ajustada) --- */
.ssn-info {
  background: #f6f6f6;
  border-top: 4px solid #e6eef6; /* línea fina arriba */
  padding: 22px 0 32px;
  color: #4b4b4b;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 15px;
}

.ssn-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Top row: texto centrado (izq) y logo a la derecha */
.ssn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: nowrap;
}

.ssn-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  color: #555;
  font-size: 14px;
}

.ssn-top-left .sep {
  color: #cfcfcf;
  margin: 0 6px;
  font-weight: 600;
}

.ssn-top-left a {
  color: #0a7fc0;
  text-decoration: none;
  font-weight: 600;
}

.ssn-top-right img {
  height: 38px;
  display: block;
}

/* Contenido principal: texto centrado + columna de staff a la izquierda */
.ssn-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

/* texto principal: ocupa más ancho y está centrado */
.ssn-text {
  flex: 0 1 68%;
  text-align: left;
  color: #555;
  line-height: 1.9;
  font-size: 15px;
}

/* Para que visualmente el texto quede centrado en la página */
.ssn-text p {
  margin: 0 0 18px 0;
}

/* Columna de staff, alineada a la izquierda (como en la captura) */
.ssn-staff {
  flex: 0 0 28%;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}

/* Resaltar títulos dentro del staff */
.ssn-staff strong {
  display: block;
  margin-bottom: 6px;
  color: #222;
}

/* Links dentro del bloque */
.ssn-text a,
.ssn-staff a {
  color: #0a7fc0;
  text-decoration: none;
}

.ssn-text a:hover,
.ssn-staff a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .ssn-wrap { padding: 0 18px; }
  .ssn-top { flex-wrap: wrap; gap: 10px; }
  .ssn-top-right img { height: 34px; }

  .ssn-content { flex-direction: column; gap: 18px; }
  .ssn-text { flex: 1 1 100%; text-align: left; }
  .ssn-staff { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .ssn-info { padding: 16px 0 20px; font-size: 14px; }
  .ssn-top-left { font-size: 13px; }
  .ssn-top-right img { height: 30px; }
  .ssn-staff { font-size: 13px; }
}

/* Footer */
.footer {
  background: #005c96;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.portales a {
    color: #000;
    font-weight: 600;
}

a.altaP {
    margin-left: 30px;
}


@media only screen and (max-width: 600px) {
    .nav-container {
        width: 100%;
        padding: 15px 10px;
        box-sizing: border-box;
    }

img.logo {
    width: 110px;
}

.banner {
    width: 100%;
    margin: auto;
    position: relative;
}

.banner-mobile {
    display: block;
    height: 300px;
    padding: 0px;
}

.banner-desktop{
  display: none;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 0%;
    max-width: 250px;

}


.portales p {
    display: flex;
    flex-direction: column;
}

a.altaP {
    margin-left: 0px;
    margin-top: 10px;
}
}