/* ESTILOS PARA EL BLOG DE CONAVRE */

/* Sección principal del Blog */
.blog-section {
  padding: 60px 20px;
  background-color: var(--gris-fondo);
  min-height: 100vh;
}

.blog-section h1 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--negro-texto);
}

/* Grid de artículos */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Tarjeta de cada artículo */
.blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card h2 {
  font-size: 1.5em;
  margin: 20px 20px 10px 20px;
  color: var(--negro-texto);
}

.blog-card p {
  flex-grow: 1;
  margin: 0 20px 20px 20px;
  color: var(--gris-texto);
  font-size: 1em;
}

.blog-card .btn {
  margin: 0 20px 20px 20px;
  align-self: flex-start;
  background-color: var(--azul-marca);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}

.blog-card .btn:hover {
  background-color: var(--azul-oscuro);
}

/* Ajustes para el contenido de los artículos individuales */
.blog-post img {
  width: 100%;
  max-width: 800px;
  height: auto;
  max-height: 450px; 
  object-fit: scale-down; /* ajusta para mostrar toda la imagen */
  margin: 20px auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}



/* Estilos para artículos individuales del Blog */
.blog-post {
  max-width: 750px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 1em;
  line-height: 1.8;
  color: var(--gris-texto);
}

.blog-post h1 {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: var(--negro-texto);
  text-align: center;
}

.blog-post h2 {
  font-size: 1.6em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--negro-texto);
}

.blog-post p {
  margin-bottom: 20px;
  font-size: 1.05em;
}

.blog-post ul {
  padding-left: 20px;
  margin-bottom: 30px;
}

.blog-post ul li {
  margin-bottom: 12px;
  list-style: disc;
}

/* Ajustes Responsive */
@media (max-width: 768px) {
  .blog-post {
    padding: 0 15px;
  }

  .blog-post h1 {
    font-size: 1.8em;
  }

  .blog-post h2 {
    font-size: 1.4em;
  }
}

/* Ajuste del breadcrumb dentro de artículos del blog */
.blog-post .breadcrumb {
  margin-bottom: 20px;
  font-size: 0.9em;
  text-align: left;
}

/* Botón de Volver al Blog */
.btn-volver {
  display: inline-block;
  margin-top: 40px;
  padding: 12px 24px;
  background-color: var(--azul-marca);
  color: white;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn-volver:hover {
  background-color: var(--azul-oscuro);
}

/* Ajustes responsivos */
@media (max-width: 768px) {
  .blog-section {
    padding: 40px 15px;
  }

  .blog-grid {
    gap: 20px;
  }

  .blog-card img {
    height: 180px;
  }

  .blog-card h2 {
    font-size: 1.3em;
  }

  .blog-card p {
    font-size: 0.95em;
  }

  .blog-post img {
    max-height: 250px; /* Más baja en móviles */
  }
}
/*  Estilos adicionales para tabla comparativa */
  .comparativa {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
  }
  .comparativa th,
  .comparativa td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
  }
  .comparativa th {
    background-color: var(--azul-marca);
    color: white;
  }

/* Artículos Relacionados */
.related-posts {
  margin: 60px 0;
}
.related-posts h2 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 30px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.related-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center; /* Centrar contenido dentro de la tarjeta */
}
.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.related-card img {
  width: 100%;
  height: 320px; /* ajustado */
  object-fit: cover;
}
.related-card h3 {
  font-size: 1.1em;
  margin: 12px;
  color: var(--negro-texto);
}
.related-card p {
  margin: 0 12px 16px;
  color: var(--gris-texto);
}
.related-card a {
  display: inline-block;
  margin-bottom: 12px;
  text-decoration: none;
}
.related-card a:hover h3 {
  color: var(--azul-marca);
}

.articulos-relacionados .blog-card h3 {
  text-align: center;
  margin: 20px auto 10px auto;
}


/* CTA Cotización */
.cta-cotiza {
  background-color: var(--azul-marca);
  color: white;
  padding: 40px 20px;
  text-align: center;
  border-radius: 8px;
  margin: 40px 0;
}
.cta-cotiza h2 {
  font-size: 2em;
  margin-bottom: 20px;
}
.cta-cotiza p {
  color: white;
}
.cta-cotiza .btn {
  background-color: white;
  color: var(--azul-marca);
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}
.cta-cotiza .btn:hover {
  background-color: var(--azul-oscuro);
  color: white;
}
/* Centrar CTA en SEO Refuerzo */
.seo-refuerzo .container {
  text-align: center;
}

.seo-refuerzo .container .btn {
  display: inline-block;
  margin-top: 20px;
}

/* Botón genérico para enlazar a Servicios Navales */
.btn-servicios {
  display: inline-block;
  background-color: var(--azul-marca);
  color: #fff;
  padding: 10px 22px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-top: 12px;
}

.btn-servicios:hover {
  background-color: var(--azul-oscuro);
}

/* ==============================
   Casos de éxito: tarjetas lado a lado
   ============================== */
   .casos-exito-cards .cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px; /* separa del contenido que sigue */
  }
  
  .casos-exito-cards .card {
    flex: 1 1 calc(50% - 20px);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
  }
  
  /* Imagen en la tarjeta */
  .casos-exito-cards .card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
  }
  
  /* Cuerpo de la tarjeta */
  .casos-exito-cards .card-body {
    padding: 16px;
    flex-grow: 1;
  }
  
  .casos-exito-cards .card-body h3 {
    margin: 0 0 8px;
    font-size: 1.2em;
  }
  
  .casos-exito-cards .card-body p {
    color: var(--gris-texto);
    margin-bottom: 1em;
  }
  
  /* Botón de la tarjeta */
  .casos-exito-cards .card-body .btn {
    margin-top: auto;
  }
  
  /* Responsive: una tarjeta en móviles */
  @media (max-width: 600px) {
    .casos-exito-cards .card {
      flex: 1 1 100%;
    }
  }
/* ==============================
   Button Group
   ============================== */
   .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2em 0;
  }
  
  /* En móviles, apilar botones */
  @media (max-width: 600px) {
    .btn-group {
      flex-direction: column;
      align-items: stretch;
    }
  }
  
  /* ==============================
     Botón Primario
     ============================== */
  .btn-primary {
    background-color: var(--azul-marca);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
  }
  
  .btn-primary:hover {
    background-color: var(--azul-oscuro);
  }
  
  /* ==============================
     Botón Secundario
     ============================== */
  .btn-secondary {
    background-color: white;
    color: var(--azul-marca);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    border: 2px solid var(--azul-marca);
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .btn-secondary:hover {
    background-color: var(--azul-marca);
    color: white;
  }
  
  /* FAQ */
.faq {
  padding: 60px 20px;
  background-color: var(--gris-fondo);
}
.faq .container {
  max-width: 800px;
  margin: 0 auto;
}
.faq h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: var(--negro-texto);
  text-align: center;
}
.faq-item {
  margin-bottom: 25px;
}
.faq-item h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--azul-marca);
}
.faq-item p {
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--gris-texto);
}
