
:root {
 
  --primary: #6b7280;
  --primary-hover: #4b5563;
  --primary-light: #9ca3af;
  --accent: #374151;
  --accent-hover: #1f2937b0;

 
  --black: #0a0a0a;
  --dark: #111111;
  --darker: #0d0d0d;
  --charcoal: #1a1a1a;
  --graphite: #2a2a2a;
  --slate: #374151;
  --slate-light: #4b5563;
  --gray: #6b7280;
  --gray-light: #9ca3af;
  --gray-lighter: #d1d5db;
  --light: #f9fafb;
  --white: #ffffff;

 
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --divider: rgba(255, 255, 255, 0.06);

 
  --highlight: #e5e7eb;
  --muted: #6b7280;
  --subtle: #374151;

 
  --metallic-silver: #c0c0c0;
  --metallic-platinum: #e5e4e2;
  --metallic-steel: #71797e;
  --metallic-chrome: #aaa9ad;
  --metallic-titanium: #878681;
  --metallic-pewter: #96a8a1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  position: relative;
  background-color: var(--black);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}


#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0.7;
}






i.ph {
  color: var(--metallic-silver);
  filter: drop-shadow(0 0 8px rgba(192, 192, 192, 0.3));
  transition: all 0.3s ease;
}


i.ph:hover,
.hover-lift:hover i.ph,
.hover-float:hover i.ph,
.card-icon:hover,
.service-card:hover i {
  color: var(--metallic-platinum);
  filter: drop-shadow(0 0 12px rgba(229, 228, 226, 0.5)) brightness(1.2);
  transform: scale(1.05);
}


.specialization-card .card-icon,
.service-card i {
  color: var(--metallic-steel);
  filter: drop-shadow(0 0 10px rgba(113, 121, 126, 0.4));
}


.nav-link i,
.mobile-nav-link i,
.mobile-dropdown-toggle i,
.mobile-dropdown-item i {
  color: var(--metallic-chrome);
  filter: drop-shadow(0 0 6px rgba(170, 169, 173, 0.4));
}


.footer i {
  color: var(--metallic-steel);
  filter: drop-shadow(0 0 4px rgba(113, 121, 126, 0.3));
}


.primary-button i,
.secondary-button i {
  color: var(--metallic-platinum);
  filter: drop-shadow(0 0 8px rgba(229, 228, 226, 0.4));
}


.social-icon i {
  color: var(--metallic-titanium);
  filter: drop-shadow(0 0 6px rgba(135, 134, 129, 0.4));
}


.whatsapp-button i {
  color: white !important;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}





@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}


.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

.animate-fade-in {
  animation: fadeInUp 0.5s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}


.animation-delay-200 {
  animation-delay: 0.2s;
}

.animation-delay-400 {
  animation-delay: 0.4s;
}


.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hover-float {
  transition: all 0.3s ease;
}

.hover-float:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}


.primary-button {
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-weight: 500;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .primary-button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

.primary-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.primary-button:hover::before {
  left: 100%;
}

.primary-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4);
}

.secondary-button {
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-weight: 500;
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .secondary-button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

.secondary-button:hover {
  background-color: rgba(107, 114, 128, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(107, 114, 128, 0.2);
}


.hero {
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.6), rgba(26, 26, 26, 0.4));
  backdrop-filter: blur(5px);
}

.hero-text {
  animation: fadeInUp 1s ease-out;
}

.hero-image {
  animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .hero-buttons {
    justify-content: flex-start;
  }
}

.avatar {
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.avatar:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.4);
}


.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 1.875rem;
    margin-bottom: 3rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gray), var(--gray-light));
  margin: 1rem auto 0;
  border-radius: 3px;
}

@media (min-width: 640px) {
  .section-title::after {
    width: 80px;
  }
}


.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.specialization-card,
.service-card {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.95), rgba(55, 65, 81, 0.8));
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(107, 114, 128, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

@media (min-width: 640px) {
  .specialization-card,
  .service-card {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .specialization-card,
  .service-card {
    padding: 2.5rem;
  }
}

.specialization-card::before,
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gray), var(--gray-light), var(--gray-lighter));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.specialization-card:hover,
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(31, 41, 55, 1), rgba(55, 65, 81, 0.95));
}

.specialization-card:hover::before,
.service-card:hover::before {
  transform: scaleX(1);
}

.card-icon,
.service-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .card-icon,
  .service-card i {
    font-size: 2.5rem;
  }
}

.specialization-card:hover .card-icon,
.service-card:hover i {
  transform: scale(1.1) rotate(5deg);
  color: #8b5cf6;
}

.specialization-card h3,
.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

@media (min-width: 640px) {
  .specialization-card h3,
  .service-card h3 {
    font-size: 1.25rem;
  }
}

.specialization-card:hover h3,
.service-card:hover h3 {
  color: var(--primary);
}

.specialization-card p,
.service-card p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .specialization-card p,
  .service-card p {
    font-size: 1rem;
  }
}

.card-link,
.service-link {
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .card-link,
  .service-link {
    font-size: 1rem;
  }
}

.card-link:hover,
.service-link:hover {
  text-decoration: underline;
  gap: 0.5rem;
  transform: translateX(5px);
}






.service-header {
  border-bottom: 1px solid rgba(107, 114, 128, 0.2);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}


.service-content {
  line-height: 1.7;
}


.topic-section {
  margin-bottom: 1.5rem;
}

.topic-section:last-child {
  margin-bottom: 0;
}


.topic-title {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 3px solid var(--primary);
  padding-left: 0.75rem;
  background: rgba(107, 114, 128, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
}

@media (min-width: 640px) {
  .topic-title {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .topic-title {
    font-size: 1.25rem;
  }
}

.topic-title i {
  font-size: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}


.topic-text {
  color: var(--gray-light);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: justify;
  text-indent: 1.5rem;
}

@media (min-width: 640px) {
  .topic-text {
    font-size: 1rem;
  }
}

.topic-text:last-child {
  margin-bottom: 0;
}


.topic-list {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 1rem;
}

.topic-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--gray-light);
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .topic-item {
    font-size: 1rem;
  }
}

.topic-item:last-child {
  margin-bottom: 0;
}


.bullet {
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: -0.1rem;
}


.service-card:hover .topic-title {
  background: rgba(107, 114, 128, 0.15);
  border-left-color: var(--metallic-platinum);
}

.service-card:hover .topic-title i {
  color: var(--metallic-platinum);
  transform: scale(1.1);
}

.service-card:hover .bullet {
  color: var(--metallic-platinum);
  transform: scale(1.1);
}

.service-card:hover .topic-text {
  color: var(--gray);
}

.service-card:hover .topic-item {
  color: var(--gray);
}


@media (max-width: 640px) {
  .topic-title {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }
  
  .topic-text {
    font-size: 0.8rem;
    text-indent: 1rem;
  }
  
  .topic-item {
    font-size: 0.8rem;
    gap: 0.5rem;
  }
  
  .topic-list {
    padding-left: 0.5rem;
  }
}


.habeas-tabs {
  background: rgba(31, 41, 55, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(55, 65, 81, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tabs-header {
  display: flex;
  overflow-x: auto;
  background: rgba(55, 65, 81, 0.5);
  scrollbar-width: none;
}

.tabs-header::-webkit-scrollbar {
  display: none;
}

.tab-button {
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--gray);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  font-size: 0.75rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .tab-button {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
  }
}

@media (min-width: 1024px) {
  .tab-button {
    font-size: 1rem;
  }
}

.tab-button:hover {
  color: var(--primary);
  background: rgba(107, 114, 128, 0.1);
}

.tab-button.active {
  color: var(--primary);
  background: rgba(31, 41, 55, 0.8);
}

.tab-button.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.tabs-content {
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .tabs-content {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .tabs-content {
    padding: 2.5rem;
  }
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}


.mindmap-section {
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.6), rgba(26, 26, 26, 0.4));
  backdrop-filter: blur(5px);
}

.mindmap-wrapper {
  position: relative;
  touch-action: none;
  border: 2px solid rgba(107, 114, 128, 0.3);
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.8), rgba(26, 26, 26, 0.7));
  backdrop-filter: blur(20px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  min-height: 400px;
}

@media (min-width: 640px) {
  .mindmap-wrapper {
    min-height: 500px;
  }
}

@media (min-width: 1024px) {
  .mindmap-wrapper {
    min-height: 600px;
  }
}

.mindmap-container {
  width: 100%;
  height: 400px;
  overflow: hidden;
  transform-origin: center center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  position: relative;
  background: radial-gradient(circle at 20% 30%, rgba(107, 114, 128, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(156, 163, 175, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(75, 85, 99, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(55, 65, 81, 0.1) 0%, transparent 50%);
}

@media (min-width: 640px) {
  .mindmap-container {
    height: 500px;
  }
}

@media (min-width: 1024px) {
  .mindmap-container {
    height: 600px;
  }
}


.mindmap-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}


.center-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.2), rgba(75, 85, 99, 0.2));
  border: 3px solid rgba(107, 114, 128, 0.6);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
  z-index: 20;
  box-shadow: 0 15px 35px rgba(107, 114, 128, 0.3);
}

@media (min-width: 640px) {
  .center-node {
    width: 160px;
    height: 160px;
  }
}

@media (min-width: 1024px) {
  .center-node {
    width: 200px;
    height: 200px;
  }
}

.center-node:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 20px 40px rgba(107, 114, 128, 0.4);
  border-color: rgba(107, 114, 128, 0.8);
}

.center-node i {
  font-size: 2rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
  animation: pulse 2s ease-in-out infinite;
}

@media (min-width: 640px) {
  .center-node i {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .center-node i {
    font-size: 3rem;
  }
}

.center-node h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  color: var(--light);
  line-height: 1.2;
}

@media (min-width: 640px) {
  .center-node h3 {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .center-node h3 {
    font-size: 1.2rem;
  }
}


.mindmap-branch {
  position: absolute;
  z-index: 15;
  animation: float 4s ease-in-out infinite;
}

.mindmap-node {
  width: 100px;
  height: 80px;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(42, 42, 42, 0.9));
  border: 2px solid rgba(107, 114, 128, 0.4);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: move;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 0.5rem;
  user-select: none;
}

@media (min-width: 640px) {
  .mindmap-node {
    width: 140px;
    height: 100px;
    padding: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .mindmap-node {
    width: 160px;
    height: 120px;
    padding: 1rem;
  }
}

.mindmap-node:hover {
  transform: scale(1.05) translateY(-5px);
  border-color: var(--gray);
  box-shadow: 0 15px 35px rgba(107, 114, 128, 0.4);
  z-index: 25;
}

.mindmap-node i {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .mindmap-node i {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .mindmap-node i {
    font-size: 2rem;
  }
}

.mindmap-node:hover i {
  transform: scale(1.1);
  color: var(--gray-light);
}

.mindmap-node h3 {
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--light);
}

@media (min-width: 640px) {
  .mindmap-node h3 {
    font-size: 0.8rem;
  }
}

@media (min-width: 1024px) {
  .mindmap-node h3 {
    font-size: 0.9rem;
  }
}

.mindmap-node p {
  font-size: 0.6rem;
  color: var(--gray);
  line-height: 1.2;
}

@media (min-width: 640px) {
  .mindmap-node p {
    font-size: 0.7rem;
  }
}

@media (min-width: 1024px) {
  .mindmap-node p {
    font-size: 0.75rem;
  }
}


.mindmap-branch[data-node="habeas-corpus"] {
  top: 5%;
  left: 5%;
  animation-delay: 0.5s;
}

@media (min-width: 640px) {
  .mindmap-branch[data-node="habeas-corpus"] {
    top: 8%;
    left: 8%;
  }
}

@media (min-width: 1024px) {
  .mindmap-branch[data-node="habeas-corpus"] {
    top: 10%;
    left: 10%;
  }
}

.mindmap-branch[data-node="nulidades"] {
  top: 5%;
  right: 5%;
  animation-delay: 0.7s;
}

@media (min-width: 640px) {
  .mindmap-branch[data-node="nulidades"] {
    top: 8%;
    right: 8%;
  }
}

@media (min-width: 1024px) {
  .mindmap-branch[data-node="nulidades"] {
    top: 10%;
    right: 10%;
  }
}

.mindmap-branch[data-node="juri"] {
  bottom: 5%;
  left: 5%;
  animation-delay: 0.9s;
}

@media (min-width: 640px) {
  .mindmap-branch[data-node="juri"] {
    bottom: 8%;
    left: 10%;
  }
}

@media (min-width: 1024px) {
  .mindmap-branch[data-node="juri"] {
    bottom: 10%;
    left: 15%;
  }
}

.mindmap-branch[data-node="recursos"] {
  bottom: 5%;
  right: 5%;
  animation-delay: 1.1s;
}

@media (min-width: 640px) {
  .mindmap-branch[data-node="recursos"] {
    bottom: 8%;
    right: 10%;
  }
}

@media (min-width: 1024px) {
  .mindmap-branch[data-node="recursos"] {
    bottom: 10%;
    right: 15%;
  }
}


.mindmap-connections line {
  stroke: url(#connectionGradient);
  stroke-width: 2;
  stroke-dasharray: 6, 3;
  opacity: 0.8;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 5px rgba(107, 114, 128, 0.6));
}

@media (min-width: 640px) {
  .mindmap-connections line {
    stroke-width: 3;
    stroke-dasharray: 8, 4;
  }
}

.mindmap-connections line:hover {
  stroke-width: 4;
  opacity: 1;
}


.mindmap-controls {
  position: relative;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .mindmap-controls {
    gap: 1rem;
    margin-top: 2rem;
  }
}

.mindmap-controls button {
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .mindmap-controls button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}


.mindmap-content {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mindmap-content.show {
  opacity: 1;
}

.mindmap-content-inner {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(42, 42, 42, 0.9));
  backdrop-filter: blur(20px);
  border: 2px solid rgba(107, 114, 128, 0.3);
  border-radius: 15px;
  padding: 1.5rem;
  width: 100%;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

@media (min-width: 640px) {
  .mindmap-content-inner {
    padding: 2rem;
    border-radius: 20px;
    max-width: 4xl;
  }
}

.mindmap-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(107, 114, 128, 0.2);
}

@media (min-width: 640px) {
  .mindmap-content-header {
    margin-bottom: 1.5rem;
  }
}

.mindmap-content-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray);
  margin: 0;
}

@media (min-width: 640px) {
  .mindmap-content-title {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .mindmap-content-title {
    font-size: 1.75rem;
  }
}

.mindmap-content-close {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .mindmap-content-close {
    font-size: 1.5rem;
  }
}

.mindmap-content-close:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: scale(1.1);
}

.mindmap-content-body {
  color: var(--gray);
  line-height: 1.6;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .mindmap-content-body {
    font-size: 1rem;
  }
}


.form-group {
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .form-group {
    margin-bottom: 1.5rem;
  }
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--light);
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .form-group label {
    font-size: 1rem;
  }
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(55, 65, 81, 0.8);
  background: rgba(31, 41, 55, 0.8);
  color: var(--light);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 1rem;
  }
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.3);
  background: rgba(31, 41, 55, 0.9);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: rgba(107, 114, 128, 0.5);
}


.footer {
  padding: 2rem 0;
  background: linear-gradient(135deg, var(--darker), rgba(17, 24, 39, 0.95));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

@media (min-width: 640px) {
  .footer {
    padding: 3rem 0;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
  }
}

.footer-column h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

@media (min-width: 640px) {
  .footer-column h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 1024px) {
  .footer-column h3 {
    font-size: 1.25rem;
  }
}

.footer-column address p,
.footer-link {
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .footer-column address p,
  .footer-link {
    font-size: 1rem;
  }
}

.footer-column address p {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray-light);
  font-style: normal;
  transition: color 0.3s ease;
}

@media (min-width: 640px) {
  .footer-column address p {
    margin-bottom: 0.75rem;
  }
}

.footer-column address p:hover {
  color: var(--gray);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-light);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-credits {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .footer-credits {
    padding-top: 1rem;
    margin-top: 1rem;
  }
}

.footer-credits p {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--gray-light);
}

@media (min-width: 640px) {
  .footer-credits p {
    font-size: 0.875rem;
  }
}

.footer-copyright {
  text-align: center;
  color: var(--gray-light);
  font-size: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .footer-copyright {
    font-size: 0.875rem;
    padding-top: 3rem;
  }
}


.whatsapp-button {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 40;
  text-decoration: none;
}

@media (min-width: 640px) {
  .whatsapp-button {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.5rem;
  }
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}


.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(107, 114, 128, 0.1);
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .social-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.social-icon:hover {
  background: rgba(107, 114, 128, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(107, 114, 128, 0.3);
}


.specializations {
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.4), rgba(17, 17, 17, 0.3));
}

.habeas-section {
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.7), rgba(31, 41, 55, 0.5));
}


* {
  will-change: auto;
}

.animate-fade-in-up,
.animate-fade-in-left,
.animate-fade-in-right,
.animate-slide-in-left,
.animate-slide-in-right,
.animate-scale-in,
.animate-fade-in,
.animate-float {
  will-change: transform, opacity;
}

.hover-lift,
.hover-float {
  will-change: transform, box-shadow;
}


::-webkit-scrollbar {
  width: 6px;
}

@media (min-width: 640px) {
  ::-webkit-scrollbar {
    width: 8px;
  }
}

::-webkit-scrollbar-track {
  background: rgba(31, 41, 55, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(107, 114, 128, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 114, 128, 0.7);
}


::selection {
  background: rgba(107, 114, 128, 0.3);
  color: var(--light);
}

::-moz-selection {
  background: rgba(107, 114, 128, 0.3);
  color: var(--light);
}


html,
body {
  overflow-x: hidden;
}

.container {
  overflow-x: hidden;
}


.animate-card {
  animation: scaleIn 0.6s ease-out forwards;
}

.prose {
  max-width: none;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose h3 {
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.prose h4 {
  margin-bottom: 0.75rem;
  margin-top: 1rem;
}


@media (max-width: 320px) {
  .section-title {
    font-size: 1.25rem;
  }

  .card-icon {
    font-size: 1.5rem;
  }

  .specialization-card h3 {
    font-size: 1rem;
  }

  .specialization-card p {
    font-size: 0.8rem;
  }
  
  .topic-title {
    font-size: 0.85rem;
  }
  
  .topic-text {
    font-size: 0.75rem;
  }
  
  .topic-item {
    font-size: 0.75rem;
  }
}


@media (max-width: 280px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .logo {
    font-size: 0.875rem;
  }

  .logo i {
    font-size: 1.25rem;
  }
  
  .service-card {
    padding: 1rem;
  }
  
  .topic-section {
    margin-bottom: 1rem;
  }
}