/* Mejoras visuales para la web AdvokatNorge */

/* Tipografía general */
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* === ANIMACIONES PARA MENÚ MÓVIL === */
.animate-fadeIn {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === BOTÓN MENÚ MÓVIL === */
#mobile-menu-btn {
  cursor: pointer !important;
  z-index: 1000 !important;
  position: relative !important;
  background: transparent !important;
  border: none !important;
  padding: 0.5rem !important;
  -webkit-tap-highlight-color: transparent;
}

#mobile-menu-btn:hover {
  background-color: rgba(30, 58, 138, 0.1) !important;
  border-radius: 0.25rem;
}

#mobile-menu {
  z-index: 999 !important;
  background: white !important;
  border-top: 1px solid #e5e7eb !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* === CARDS DE ABOGADOS === */
.card-abogado {
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px 0 rgba(30,58,138,0.08);
}

.card-abogado:hover {
  box-shadow: 0 8px 24px 0 rgba(30,58,138,0.18);
  transform: translateY(-4px) scale(1.03);
}

/* === BOTONES PRINCIPALES === */
.btn-principal {
  background: linear-gradient(90deg, #1e3a8a 0%, #60a5fa 100%);
  color: #fff;


  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.75rem 2rem;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-principal:hover {
  background: linear-gradient(90deg, #1e40af 0%, #3b82f6 100%);
  box-shadow: 0 8px 24px 0 rgba(30,64,175,0.4);
}

/* === RESET & BASE === */
input, select, textarea {
  font-family: inherit;
}

button {
  font-family: inherit;
}

/* === HERO SECTION === */
.hero-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

/* === UTILITIES === */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === ANIMACIONES ADICIONALES === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

/* === EFECTOS HOVER === */
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px 0 rgba(30,58,138,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* === GRADIENTES DE TEXTO === */
.text-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === RESPONSIVE ARTICLE CONTENT === */

.article-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow-x: hidden;
}


.article-content {
  max-width: 100%;
  overflow-x: hidden;
  line-height: 1.7;
  color: #374151;
}
/* Mejorar breadcrumbs para artículos */
.breadcrumbs {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}
.breadcrumbs a {
  color: #3b82f6;
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.article-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e5e7eb;
}
.article-category {
  display: inline-block;
  background: #3b82f6;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.article-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.article-meta {
  color: #6b7280;
  font-size: 0.9rem;
}
.article-content h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}
.article-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}
.article-content p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}
.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.article-content li {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.article-content strong {
  font-weight: 600;
  color: #1f2937;
}
.article-content a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}
.article-content a:hover {
  text-decoration: underline;
}
.back-to-blog {
  display: inline-block;
  margin-top: 2rem;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  padding: 0.8rem 1.5rem;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.back-to-blog:hover {
  background: #3b82f6;
  color: white;
}
@media (max-width: 768px) {
  .article-container {
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
  }
  .article-title {
    font-size: 1.8rem;
  }
}

/* === RESPONSIVE TABLES === */
.rating-table, .time-table, .price-table, .process-table, .inheritance-table, .case-table, table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.rating-table th, .time-table th, .price-table th, .process-table th, .inheritance-table th, .case-table th,
table th {
  background: #1e3a8a;
  color: white;
  padding: 0.75rem 0.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
}

.rating-table td, .time-table td, .price-table td, .process-table td, .inheritance-table td, .case-table td,
table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
  vertical-align: top;
}

.rating-table .score, .time-table .score, .price-table .score, .process-table .score, .inheritance-table .score, .case-table .score,
table .score {
  text-align: center;
  font-size: 1rem;
  min-width: fit-content;
  white-space: nowrap; /* Prevent star wrapping */
}

/* === MOBILE RESPONSIVE TABLES === */
@media (max-width: 768px) {
  .rating-table, .time-table, .price-table, .process-table, .inheritance-table, .case-table, table {
    font-size: 0.75rem;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    margin: 1rem -1rem; /* Extend beyond container padding */
    border-radius: 0;
  }
  
  .rating-table th, .time-table th, .price-table th, .process-table th, .inheritance-table th, .case-table th,
  table th {
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
    min-width: fit-content;
  }
  
  .rating-table td, .time-table td, .price-table td, .process-table td, .inheritance-table td, .case-table td,
  table td {
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
    min-width: fit-content;
  }
  
  .rating-table .score, .time-table .score, .price-table .score, .process-table .score, .inheritance-table .score, .case-table .score,
  table .score {
    font-size: 0.8rem;
    padding: 0.5rem 0.125rem;
    min-width: 60px;
    text-align: center;
  }
  
  /* Specific width controls for problematic columns */
  .rating-table th:nth-child(1), .rating-table td:nth-child(1) { min-width: 80px; }
  .rating-table th:nth-child(2), .rating-table td:nth-child(2) { min-width: 60px; }
  .rating-table th:nth-child(3), .rating-table td:nth-child(3) { min-width: 120px; }
  .rating-table th:nth-child(4), .rating-table td:nth-child(4) { min-width: 60px; }
}

@media (max-width: 480px) {
  .rating-table, .time-table, .price-table, .process-table, .inheritance-table, .case-table, table {
    font-size: 0.65rem;
    margin: 1rem -1.5rem; /* Even more extension on very small screens */
  }
  
  .rating-table th, .time-table th, .price-table th, .process-table th, .inheritance-table th, .case-table th,
  table th {
    padding: 0.375rem 0.125rem;
    font-size: 0.65rem;
  }
  
  .rating-table td, .time-table td, .price-table td, .process-table td, .inheritance-table td, .case-table td,
  table td {
    padding: 0.375rem 0.125rem;
    font-size: 0.65rem;
  }
  
  .rating-table .score, .time-table .score, .price-table .score, .process-table .score, .inheritance-table .score, .case-table .score,
  table .score {
    font-size: 0.7rem;
    padding: 0.375rem 0.0625rem;
    min-width: 50px;
  }
  
  /* Tighter width controls for very small screens */
  .rating-table th:nth-child(1), .rating-table td:nth-child(1) { min-width: 70px; }
  .rating-table th:nth-child(2), .rating-table td:nth-child(2) { min-width: 50px; }
  .rating-table th:nth-child(3), .rating-table td:nth-child(3) { min-width: 100px; }
  .rating-table th:nth-child(4), .rating-table td:nth-child(4) { min-width: 50px; }
}

@media (max-width: 360px) {
  /* Ultra-small screen optimization */
  .rating-table, .time-table, .price-table, .process-table, .inheritance-table, .case-table, table {
    font-size: 0.6rem;
    margin: 1rem -2rem;
  }
  
  .rating-table .score, .time-table .score, .price-table .score, .process-table .score, .inheritance-table .score, .case-table .score,
  table .score {
    font-size: 0.65rem;
    min-width: 45px;
  }
}

/* === ALTERNATIVE MOBILE TABLE LAYOUT === */
@media (max-width: 320px) {
  /* Transform tables into stacked cards for very small screens */
  .rating-table, .time-table, .price-table, .process-table, .inheritance-table, .case-table {
    display: block;
    margin: 1rem 0;
    border: none;
    box-shadow: none;
  }
  
  .rating-table thead, .time-table thead, .price-table thead, .process-table thead, .inheritance-table thead, .case-table thead {
    display: none;
  }
  
  .rating-table tr, .time-table tr, .price-table tr, .process-table tr, .inheritance-table tr, .case-table tr {
    display: block;
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
  }
  
  .rating-table td, .time-table td, .price-table td, .process-table td, .inheritance-table td, .case-table td {
    display: block;
    padding: 0.25rem 0;
    border: none;
    font-size: 0.75rem;
  }
  
  .rating-table td:before, .time-table td:before, .price-table td:before, .process-table td:before, .inheritance-table td:before, .case-table td:before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: #1e3a8a;
  }
  
  .rating-table .score, .time-table .score, .price-table .score, .process-table .score, .inheritance-table .score, .case-table .score {
    text-align: left;
    font-size: 0.9rem;
  }
}

/* === ARTICLE RESPONSIVE CONTENT === */
@media (max-width: 768px) {
  .article-content h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  
  .article-content h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  .article-content h3 {
    font-size: 1.25rem;
    line-height: 1.4;
  }
  
  .article-content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .article-content ul, 
  .article-content ol {
    padding-left: 1.25rem;
  }
  
  .article-content li {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.375rem;
  }
}

@media (max-width: 480px) {
  .article-content h1 {
    font-size: 1.5rem;
  }
  
  .article-content h2 {
    font-size: 1.25rem;
  }
  
  .article-content h3 {
    font-size: 1.125rem;
  }
  
  .article-content p {
    font-size: 0.9rem;
  }
  
  .article-content li {
    font-size: 0.9rem;
  }
}

/* === RESPONSIVE IMAGES AND MEDIA === */
.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-content iframe,
.article-content video,
.article-content embed {
  max-width: 100%;
  height: auto;
}

/* === RESPONSIVE CONTENT CONTAINERS === */
.article-content pre,
.article-content code {
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.article-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem;
  border-left: 4px solid #1e3a8a;
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
  overflow-x: auto;
}

@media (max-width: 768px) {
  .article-content blockquote {
    margin: 1rem 0;
    padding: 0.75rem;
  }
}

/* === CHECKLIST BOX RESPONSIVE === */
.checklist-box {
  background: #f8fafc;
  border-left: 4px solid #1e3a8a;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .checklist-box {
    padding: 0.75rem;
    margin: 1rem 0;
  }
  
  .checklist-box h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }
  
  .checklist-box ul {
    padding-left: 1rem;
  }
  
  .checklist-box li {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* === BREADCRUMBS RESPONSIVE === */
.breadcrumbs {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 480px) {
  .breadcrumbs {
    font-size: 0.85rem;
    padding: 0.5rem 0;
  }
}