body {
 font-family: lexend;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #333;
}

.blog-header {
 background-color: #0d2c4e;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  border-bottom: 4px solid #128c7e;
}

.blog-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.subtitulo {
  font-size: 1.1rem;
  font-weight: 300;
}

.blog-contenido {
  padding: 2rem 1rem;
  max-width: 800px;
  margin: auto;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.lista-check li {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  list-style: none;
  position: relative;
  padding-left: 1.5rem;
}

.lista-check li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #128c7e;
  font-weight: bold;
}

.video-container {
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cta-button-verde-whatsapp {
  display: inline-block;
  background-color: #25d366;
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
}

.blog-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #666;
}

footer {
  background-color: #004080;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}


.boton-footer{
  background-color: #28D146;
  color: white;
  padding: 10px;
  border-radius: 20px;
  text-decoration: none;
}

@media (max-width:768px){
  .boton-footer{
    margin-top: 40px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    padding: 10px;
    animation: ease 2s;
  }
  .boton-footer:hover{
    transform: scale(1.1);
  }
}

#pestana-blog {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background-color: #0d2c4e;
  color: white;
  padding: 1rem 0.5rem;
  border-radius: 12px 0 0 12px;
  cursor: pointer;
  font-weight: bold;
  z-index: 1000;
  writing-mode: vertical-rl;
  text-align: center;
  box-shadow: -2px 2px 8px rgba(0,0,0,0.2);
}

#panel-blog {
  position: fixed;
  top: 0;
  right: -110%;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background-color: #ffffff;
  box-shadow: -4px 0 12px rgba(0,0,0,0.2);
  padding: 1rem;
  transition: right 0.4s ease;
  z-index: 999;
  overflow-y: auto;
  border-radius: 12px 0 0 12px;
}

#panel-blog.abierto {
  right: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.logo-volver {
  width: 40px;
  cursor: pointer;
}

.perfil-abogado h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #0d2c4e;
}

.perfil-abogado p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
  color: #555;
}

.panel-articulos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.articulo-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  background-color: #f9f9f9;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.articulo-card h4 {
  margin: 0 0 0.5rem;
  color: #0d2c4e;
}

.articulo-card a {
  color: #128c7e;
  text-decoration: none;
  font-weight: bold;
}

.cerrar-panel {
  margin-top: 2rem;
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
}


/* Estilo base escritorio */
.tabla-legal {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
}
.tabla-legal th, .tabla-legal td {
  border: 1px solid #e5e7eb; /* líneas visibles */
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.tabla-legal thead {
  background: #f8fafc;
}
.tabla-legal tbody tr:nth-child(even) {
  background: #fbfdff;
}

/* Móvil: tarjetas apiladas */
@media (max-width: 640px) {
  .tabla-responsive thead {
    display: none; /* ocultamos encabezados */
  }
  .tabla-responsive, 
  .tabla-responsive tbody, 
  .tabla-responsive tr, 
  .tabla-responsive td {
    display: block;
    width: 100%;
  }
  .tabla-responsive tr {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    background: #fff;
  }
  .tabla-responsive td {
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 14px;
    position: relative;
  }
  .tabla-responsive td:last-child {
    border-bottom: 0;
  }
  .tabla-responsive td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #334155;
    display: block;
    margin-bottom: 6px;
  }
}

/*estimado de lectura*/
.meta-articulo { display: flex; gap: 12px; align-items: center; color: #475569; font-size: 0.95rem; margin-bottom: 1rem; }
.tiempo-lectura::before { content: "⏱ "; }

/*recursos oficales*/
.recursos-oficiales {
  background: #f8fafc; /* gris muy claro */
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin: 2rem 0;
  font-family: system-ui, sans-serif;
}

.recursos-oficiales h2 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #1e293b;
}

.recursos-oficiales p {
  color: #475569;
  margin-bottom: 1rem;
}

.recursos-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.recurso-card {
  flex: 1 1 220px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  text-decoration: none;
  color: #2563eb;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.recurso-card:hover {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
