:root {
  --max-width: 1200px;
  --content-padding: 0;
  --primary-color: #000000;
  --secondary-color: #6c757d;
  --background-light: #f8f9fa;
}


#container {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 8%;
}

.bg-white-light {
  background-color: #FFFFFF;
}

/* ============ NOTARIA SECTION ============ */
.notaria-section {
  padding: 0;
  background: white;
  width: 100%;
}

.notaria-section .section-container {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.notaria-section .section-layout {
  display: flex;
  flex-direction: row;
  min-height: auto;
  height: 710px;
  align-items: stretch;
  gap: 0;
}

.notaria-section .text-content {
  flex: 1;
  max-width: 50%;
  display: flex;
  align-items: center;
  height: auto;
  padding: 0px 0px 0px 150px;
  background: white;
  margin-bottom: 100px;
}

.notaria-section .image-content {
  flex: 1;
  max-width: 50%;
  height: auto;
  background-size: cover;
  /* background-position: center; */
  background-repeat: no-repeat;
}

/* ============ NOTARIO SECTION ============ */
.notario-section {
  padding: 0;
  background: white;
  width: 100%;
}

.notario-section .section-container {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.notario-section .section-layout {
  display: flex;
  flex-direction: row;
  min-height: 80vh;
  align-items: stretch;
  gap: 0;
}

.notario-section .image-content {
  flex: 1;
  max-width: 50%;
  height: 80vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.notario-section .text-content {
  flex: 1;
  max-width: 50%;
  display: flex;
  align-items: center;
  padding: 80px 80px 80px 60px;
  background: white;
}

/* ============ TEXT GROUPS ============ */
.text-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* ============ TYPOGRAPHY ============ */
.title-large {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.2;
  color: var(--primary-color);
  /*  margin: 100px 0 50px 0;
    ; */
}

.subtitle {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 0;
}

.body-text {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--primary-color);
  text-align: justify;
  margin: 0;
  max-width: 90%;
}

/* ============ IMAGE LABEL ============ */
.image-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
}

/* ============ MISSION & VISION SECTION ============ */
.bg-light {
  background-color: var(--background-light) !important;
  padding: 80px 0;
}

#container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.card {
  border: none;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-body {
  padding: 3rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 2.25rem !important;
}

.card-text {
  color: var(--primary-color) !important;
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
  flex: 1;
}

.text-valores {}

/* ============ CORPORATE VALUES SECTION ============ */
#container-fluid {
  padding: 80px 0;
}

.icon-circle {
  width: 80px;
  height: 80px;
  /*   border-radius: 50%;
    background: white; */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */
}

.icon-circle img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-hover .card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card-hover .card-text {
  font-size: 0.875rem;
}

/* ============ SERVICES SECTION ============ */
.main-services {
  padding: 80px 0;
  background: #F5F5F5;
  padding: 4% 8%;
}

.main-services #container {
  /*  max-width: var(--max-width); */
  margin: 0 auto;
  padding: 0 40px;
}

.services-content {
  display: flex;
  flex-direction: row;
  gap: 60px;
}

.sidebar {
  background: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  flex: 0 0 350px;
}

.menu-section {
  margin-bottom: 15px;
}

.menu-title {
  font-size: 1rem;
  font-weight: 500;
  color: #0A1B39;
  padding: 15px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.menu-title:hover {
  background: white;
  color: var(--primary-color);
  transform: translateX(5px);
}

.menu-title.active {
  background: #9918151f;
  color: #991815;
  font-weight: 600;
}

.content-area {
  flex: 1;
  background: #f8f8f8;
  padding: 40px;
  border-radius: 12px;
  box-shadow: none;
}

.service-details h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.service-details h5 {
  color: #991815;
}

.service-details a {
  color: #000000;
  text-decoration: none;
  font-weight: 200;
}

.service-details a:hover {
  color: #991815;
  text-decoration: underline;
  font-weight: 100;
}

.service-details p {
  font-size: 1rem;
  color: var(--secondary-color);
  line-height: 1.6;
  text-align: left;
  margin-bottom: 30px;
}

.service-details img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 1199px) {
  .title-large {
    font-size: 2.625rem;
  }

  .notaria-section .text-content,
  .notario-section .text-content {
    padding: 60px 40px;
  }

  #container {
    padding: 0 8%;
  }
}

@media (max-width: 991px) {

  .notaria-section .section-layout,
  .notario-section .section-layout {
    flex-direction: column;
    min-height: auto;
  }

  .notaria-section .text-content,
  .notaria-section .image-content,
  .notario-section .text-content,
  .notario-section .image-content {
    max-width: 100%;
    flex: none;
  }

  .notaria-section .image-content,
  .notario-section .image-content {
    height: 400px;
    order: -1;
  }

  .notario-section .section-layout {
    flex-direction: column-reverse;
  }

  .notario-section .image-content {
    order: 1;
  }

  .title-large {
    font-size: 2.25rem;
    text-align: center;
  }

  .services-content {
    flex-direction: column;
    gap: 30px;
  }

  .sidebar {
    flex: none;
    width: 100%;
    max-height: inherit;
    right: 10%;
  }
}

@media (max-width: 767px) {

  .notaria-section .text-content,
  .notario-section .text-content {
    padding: 40px 20px;
  }

  .title-large {
    font-size: 1.75rem;
  }

  .subtitle {
    font-size: 1.25rem;
    text-align: center;
  }

  .body-text {
    font-size: 0.875rem;
    text-align: justify;
    margin-left: 6%;
  }

  .card-body {
    padding: 2rem;
  }

  .card-title {
    font-size: 1.5rem;
  }

  #container {
    padding: 0 20px;
  }

  .content-area {
    padding: 20px;
    position: relative;
    right: 10%;
  }

  .service-details {
    width: 267px;
  }

  .sidebar {
    padding: 20px;
  }

  .notaria-section .image-content,
  .notario-section .image-content {
    height: 300px;
  }
}

@media (max-width: 575px) {
  .title-large {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 1.125rem;
  }

  .menu-title {
    padding: 12px 15px;
    font-size: 0.875rem;
  }

  .card-body {
    padding: 1.5rem;
  }

  .card-title {
    font-size: 1.25rem;
  }

  .card-text{
    font-size: 0.875rem;
  }
}