:root {
  --primary-color: #33473c;
  --primary-color-light: #3a5548;
  --primary-color-dark: #1e2d26;
  --secondary-color: #c5b783;
  --secondary-color-light: #d6cca0;
  --secondary-color-dark: #a99b63;
  --light-color: #f5f5f5;
  --dark-color: #333;
  --gray-color: #e0e0e0;
  --text-color: #4a4a4a;
  --border-radius: 5px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --headerColor: #1a1a1a;
  --bodyTextColorWhite: #fff;
  --primary: #2d4238;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
  background-color: var(--primary-color);
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  text-align: center;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color-dark);
}

.btn-primary:hover {
  background-color: var(--secondary-color-dark);
  color: #fff;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--secondary-color);
  color: #fff;
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.section-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.section-decoration span {
  height: 1px;
  width: 50px;
  background-color: var(--secondary-color);
}

.section-decoration i {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin: 0 15px;
}

.section-description {
  max-width: 700px;
  margin: 0 auto;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.logo-preloader {
  margin-bottom: 30px;
}

.logo-preloader img {
  width: 150px;
  height: auto;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loading-bar span {
  position: absolute;
  left: -100%;
  height: 100%;
  width: 100%;
  background-color: var(--secondary-color);
  animation: loading 1.5s ease infinite;
}

@keyframes loading {
  0% {
      left: -100%;
  }
  100% {
      left: 100%;
  }
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Navigation Styles - FIXED */
@media only screen and (max-width: 63.9375rem) {
body.cs-open {
  overflow: hidden;
}
body.scroll #cs-navigation {
  width: 100%;
  max-width: 100%;
  top: 0;
}
body.scroll #cs-navigation:before {
  border-radius: 0;
}
body.scroll #cs-navigation .cs-ul-wrapper {
  top: 100%;
}
#cs-navigation {
  width: 94%;
  max-width: 80rem;
  box-sizing: border-box;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  border-radius: clamp(0.75rem, 2vw, 1.5rem);
  position: fixed;
  top: 2rem;
  left: 50%;
  z-index: 10000;
  transform: translateX(-50%);
  transition: top 0.3s, border-radius 0.3s, width 0.3s, max-width 0.3s;
}
#cs-navigation:before {
  content: "";
  width: 100%;
  height: 100%;
  background: #fff;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 24px;
  opacity: 1;
  border-radius: clamp(0.75rem, 2vw, 1.5rem);
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.2s, border-radius 0.3s ease-in-out;
}
#cs-navigation.cs-active:before {
  transform: translateX(-50%) scale(1.03);
}
#cs-navigation.cs-active .cs-toggle {
  transform: rotate(180deg);
}
#cs-navigation.cs-active .cs-ul-wrapper {
  transform: scaleY(1);
  transition-delay: 0.15s;
}
#cs-navigation.cs-active .cs-li {
  opacity: 1;
  transform: translateY(0);
}
#cs-navigation .cs-container {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}
#cs-navigation .cs-logo {
  width: auto;
  max-width: 12.5rem;
  height: 100%;
  margin: 0 auto 0 0;
  box-sizing: border-box;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 10;
}
#cs-navigation .cs-logo img {
  width: 100%;
  height: auto;
/*  max-height: 3rem;  Aumentado el tamaño del logo */
  object-fit: contain;
}
#cs-navigation .cs-toggle {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 0 0 auto;
  background-color: var(--primary-color);
  border: none;
  border-radius: 0.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  transition: transform 0.6s;
}
#cs-navigation .cs-nav {
  order: 3;
}
#cs-navigation .cs-contact-group {
  display: none;
  position: relative;
  z-index: 10;
}
#cs-navigation .cs-phone {
  font-size: 1rem;
  line-height: 1.5em;
  text-decoration: none;
  margin: 0;
  color: var(--primary-color);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s, color 0.3s;
}
#cs-navigation .cs-phone-icon {
  width: 1.5rem;
  height: auto;
  display: block;
  filter: brightness(0);
}
#cs-navigation .cs-social {
  display: none;
}
#cs-navigation .cs-active .cs-line1 {
  top: 50%;
  transform: translate(-50%, -50%) rotate(225deg);
}
#cs-navigation .cs-active .cs-line2 {
  top: 50%;
  transform: translate(-50%, -50%) translateY(0) rotate(-225deg);
  transform-origin: center;
}
#cs-navigation .cs-active .cs-line3 {
  opacity: 0;
  bottom: 100%;
}
#cs-navigation .cs-box {
  width: clamp(1.5rem, 2vw, 1.75rem);
  height: 1rem;
  position: relative;
}
#cs-navigation .cs-line {
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
#cs-navigation .cs-line1 {
  top: 0;
  transition: transform 0.5s, top 0.3s, left 0.3s;
  animation-duration: 0.7s;
  animation-timing-function: ease;
  animation-direction: normal;
  animation-fill-mode: forwards;
  transform-origin: center;
}
#cs-navigation .cs-line2 {
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  transition: top 0.3s, left 0.3s, transform 0.5s;
  animation-duration: 0.7s;
  animation-timing-function: ease;
  animation-direction: normal;
  animation-fill-mode: forwards;
}
#cs-navigation .cs-line3 {
  bottom: 0;
  transition: bottom 0.3s, opacity 0.3s;
}
#cs-navigation .cs-ul-wrapper {
  width: 100%;
  height: auto;
  padding-bottom: 2.4em;
  background-color: #fff;
  border-radius: 0 0 1.5rem 1.5rem;
  position: absolute;
  top: 85%;
  left: 0;
  z-index: -1;
  overflow: hidden;
  transform: scaleY(0);
  transition: transform 0.4s;
  transform-origin: top;
}
#cs-navigation .cs-ul {
  width: 100%;
  height: auto;
  max-height: 65vh;
  margin: 0;
  padding: 4rem 0 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1.25rem;
  overflow: auto;
}
#cs-navigation .cs-li {
  text-align: center;
  list-style: none;
  width: 100%;
  margin-right: 0;
  opacity: 0;
  transform: translateY(-4.375rem);
  transition: transform 0.6s, opacity 0.9s;
}
#cs-navigation .cs-li:nth-of-type(1) {
  transition-delay: 0.05s;
}
#cs-navigation .cs-li:nth-of-type(2) {
  transition-delay: 0.1s;
}
#cs-navigation .cs-li:nth-of-type(3) {
  transition-delay: 0.15s;
}
#cs-navigation .cs-li:nth-of-type(4) {
  transition-delay: 0.2s;
}
#cs-navigation .cs-li:nth-of-type(5) {
  transition-delay: 0.25s;
}
#cs-navigation .cs-li:nth-of-type(6) {
  transition-delay: 0.3s;
}
#cs-navigation .cs-li-link {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  line-height: 1.2em;
  text-decoration: none;
  margin: 0;
  color: var(--primary-color);
  display: inline-block;
  position: relative;
}
#cs-navigation .cs-li-link.cs-active {
  color: var(--secondary-color);
}
#cs-navigation .cs-li-link:hover {
  color: var(--secondary-color);
}
}

@media only screen and (min-width: 48rem) {
#cs-navigation .cs-contact-group {
  display: block;
}
}

@media only screen and (max-width: 63.9375rem) {
#cs-navigation .cs-li {
  text-align: center;
  width: 100%;
  display: block;
}
#cs-navigation .cs-dropdown {
  color: var(--primary-color);
  position: relative;
}
#cs-navigation .cs-dropdown.cs-active .cs-drop-ul {
  height: auto;
  margin: 0.75rem 0 0 0;
  padding: 0.75rem 0;
  opacity: 1;
  visibility: visible;
}
#cs-navigation .cs-dropdown.cs-active .cs-drop-link {
  opacity: 1;
}
#cs-navigation .cs-dropdown .cs-li-link {
  position: relative;
  transition: opacity 0.3s;
}
#cs-navigation .cs-drop-icon {
  width: 0.9375rem;
  height: auto;
  position: absolute;
  top: 50%;
  right: -1.25rem;
  transform: translateY(-50%);
}
#cs-navigation .cs-drop-ul {
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
  background-color: var(--light-color);
  opacity: 0;
  display: flex;
  visibility: hidden;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  transition: padding 0.3s, margin 0.3s, height 0.3s, opacity 0.3s, visibility 0.3s;
}
#cs-navigation .cs-drop-li {
  list-style: none;
}
#cs-navigation .cs-li-link.cs-drop-link {
  font-size: clamp(0.875rem, 2vw, 1.25rem);
  color: var(--primary-color);
}
}

@media only screen and (min-width: 64rem) {
#cs-navigation .cs-dropdown {
  position: relative;
}
#cs-navigation .cs-dropdown:hover {
  cursor: pointer;
}
#cs-navigation .cs-dropdown:hover .cs-drop-ul {
  opacity: 1;
  visibility: visible;
  transform: scaleY(1);
}
#cs-navigation .cs-dropdown:hover .cs-drop-li {
  opacity: 1;
  transform: translateY(0);
}
#cs-navigation .cs-drop-icon {
  width: 0.9375rem;
  height: auto;
  display: inline-block;
}
#cs-navigation .cs-drop-ul {
  min-width: 12.5rem;
  margin: 0;
  padding: 0;
  background-color: #fff;
  box-shadow: inset rgba(0, 0, 0, 0.1) 0px 8px 10px;
  opacity: 0;
  border-bottom: 5px solid var(--secondary-color);
  border-radius: 0 0 1.5rem 1.5rem;
  visibility: hidden;
  position: absolute;
  top: 100%;
  z-index: -100;
  overflow: hidden;
  transform: scaleY(0);
  transition: transform 0.3s, visibility 0.3s, opacity 0.3s;
  transform-origin: top;
}
#cs-navigation .cs-drop-li {
  font-size: 1rem;
  text-decoration: none;
  list-style: none;
  width: 100%;
  height: auto;
  opacity: 0;
  display: block;
  transform: translateY(-0.625rem);
  transition: opacity 0.6s, transform 0.6s;
}
#cs-navigation .cs-drop-li:nth-of-type(1) {
  transition-delay: 0.05s;
}
#cs-navigation .cs-drop-li:nth-of-type(2) {
  transition-delay: 0.1s;
}
#cs-navigation .cs-drop-li:nth-of-type(3) {
  transition-delay: 0.15s;
}
#cs-navigation .cs-drop-li:nth-of-type(4) {
  transition-delay: 0.2s;
}
#cs-navigation .cs-drop-li:nth-of-type(5) {
  transition-delay: 0.25s;
}
#cs-navigation .cs-drop-li:nth-of-type(6) {
  transition-delay: 0.3s;
}
#cs-navigation .cs-drop-li:nth-of-type(7) {
  transition-delay: 0.35s;
}
#cs-navigation .cs-drop-li:nth-of-type(8) {
  transition-delay: 0.4s;
}
#cs-navigation .cs-drop-li:nth-of-type(9) {
  transition-delay: 0.45s;
}
#cs-navigation .cs-li-link.cs-drop-link {
  font-size: 1rem;
  line-height: 1.5em;
  text-transform: capitalize;
  text-decoration: none;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem;
  color: var(--primary-color);
  display: block;
  transition: color 0.3s, background-color 0.3s;
}
#cs-navigation .cs-li-link.cs-drop-link:hover {
  color: #fff;
  background-color: var(--primary-color);
}
#cs-navigation .cs-li-link.cs-drop-link:before {
  display: none;
}
}

@media only screen and (min-width: 64rem) {
body.scroll #cs-navigation {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  top: 0;
}
#cs-navigation {
  width: 94%;
  max-width: 90rem;
  height: 6rem;
  box-sizing: border-box;
  padding: clamp(0.75rem, 2vw, 1.5rem) 0;
  background-color: #fff;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 24px;
  border-radius: clamp(0.75rem, 2vw, 1.5rem);
  display: flex;
  align-items: center;
  position: fixed;
  top: 2rem;
  left: 50%;
  z-index: 10000;
  transform: translateX(-50%);
  transition: top 0.3s, border-radius 0.3s, width 0.3s, max-width 0.3s;
}
#cs-navigation .cs-container {
  width: 100%;
  max-width: 90rem;
  margin: auto;
  box-sizing: border-box;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
#cs-navigation .cs-toggle {
  display: none;
}
#cs-navigation .cs-logo {
  width: 18.4%;
  max-width: 21.875rem;
  height: 3rem; /* Aumentado el tamaño del logo */
  margin: 0 auto 0 0;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 100;
}
#cs-navigation .cs-logo img {
 /* width: auto;
  height: 100%;*/
  object-fit: contain;
}
#cs-navigation .cs-contact-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}
#cs-navigation .cs-phone {
  font-size: 1rem;
  line-height: 1.5em;
  text-decoration: none;
  margin: 0;
  color: var(--primary-color);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s, color 0.3s;
}
#cs-navigation .cs-phone-icon {
  width: 1.5rem;
  height: auto;
  display: block;
  filter: brightness(0);
}
#cs-navigation .cs-social {
  height: 2rem;
  opacity: 1;
  display: none;
  visibility: visible;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s, visibility 0.3s, height 0.3s;
}
#cs-navigation .cs-social-link {
  text-decoration: none;
  width: 2rem;
  height: 2rem;
  background-color: var(--light-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s;
}
#cs-navigation .cs-social-link:hover {
  background-color: var(--secondary-color);
}
#cs-navigation .cs-social-link:hover .cs-social-icon {
  opacity: 1;
  filter: brightness(0);
}
#cs-navigation .cs-social-icon {
  width: 0.75rem;
  height: auto;
  opacity: 0.6;
  display: block;
  filter: brightness(0);
  transition: opacity 0.3s;
}
#cs-navigation .cs-ul-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#cs-navigation .cs-ul {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.25rem);
}
#cs-navigation .cs-li {
  list-style: none;
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  flex: none;
}
#cs-navigation .cs-li-link {
  font-size: 1rem;
  line-height: 1.5em;
  text-decoration: none;
  margin: 0;
  color: var(--primary-color);
  display: block;
  position: relative;
  transition: color 0.3s;
}
#cs-navigation .cs-li-link:hover {
  color: var(--secondary-color);
}
#cs-navigation .cs-li-link.cs-active {
  color: var(--secondary-color);
}
}

@media only screen and (min-width: 81.25rem) {
#cs-navigation .cs-social {
  display: flex;
}
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  background-color: var(--primary-color);
  overflow: hidden;
  background-image: url('assets/img/abogado-yañez.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  
  padding-top: 3rem;
  border-radius: 0 0 50px 50px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(45, 66, 56, 0.9) 0%, rgba(45, 66, 56, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 100px 0 50px;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4rem;
  margin-top: 150px;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .slogan {
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
  font-style: italic;
  color: var(--secondary-color);
  font-family: 'Playfair Display', serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.hero-buttons .btn {
  padding: 15px 35px;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-bottom {
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px 0;
  backdrop-filter: blur(5px);
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.hero-feature {
  padding: 20px;
  transition: transform 0.3s ease;
}

.hero-feature:hover {
  transform: translateY(-5px);
}

.hero-feature i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.hero-feature h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: white;
}

.hero-feature p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* About Section */
.about {
  padding: 100px 0;
  background-color: #fff;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image-main {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-image:hover .about-image-main img {
  transform: scale(1.05);
}

.about-image-decoration {
  position: absolute;
  bottom: -30px;
  right: -30px;
  z-index: 1;
}

.experience-badge {
  background-color: var(--secondary-color);
  color: var(--primary-color-dark);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: var(--box-shadow);
}

.experience-badge .number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  font-family: 'Playfair Display', serif;
}

.experience-badge .text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.about-content .highlight {
  font-size: 1.2rem;
  color: var(--primary-color-dark);
  font-weight: 500;
  border-left: 3px solid var(--secondary-color);
  padding-left: 15px;
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-feature i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

/* Services Section */
.services {
  padding: 100px 0;
  background-color: #f5f5f5; /* Cambiado a un fondo más claro */
}

.services .section-title,
.services .section-subtitle {
  color: var(--primary-color); /* Cambiado para mejor contraste */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  z-index: 1;
  border-bottom: 4px solid var(--secondary-color); /* Añadido borde inferior */
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover .service-content h3,
.service-card:hover .service-content p,
.service-card:hover .service-link {
  color: white;
}

.service-card:hover .service-icon {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.service-icon {
  background-color: var(--primary-color);
  color: white;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: var(--transition);
}

.service-content {
  padding: 30px;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  transition: var(--transition);
}

.service-content p {
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary-color);
  font-weight: 600;
  transition: var(--transition);
}

.service-link i {
  transition: transform 0.3s ease;
}

.service-link:hover i {
  transform: translateX(5px);
}

/* Why Choose Us Section */
.why-choose-us {
  padding: 100px 0;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

.why-choose-us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
  opacity: 0.05;
  z-index: 0;
}

.mvv-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.mvv-card {
  background-color: #f5f5f5; /* Cambiado a un fondo más claro */
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease;
  border-top: 5px solid var(--secondary-color); /* Añadido borde superior */
}

.mvv-card:hover {
  transform: translateY(-10px);
  background-color: var(--primary-color); /* Cambia a verde al hacer hover */
}

.mvv-card:hover h3,
.mvv-card:hover p,
.mvv-card:hover ul li {
  color: #fff;
}

.mvv-card:hover .mvv-icon {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.mvv-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2.5rem;
  transition: all 0.3s ease;
}

.mvv-card h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.mvv-card p {
  margin-bottom: 20px;
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.7;
  transition: color 0.3s ease;
}

.mvv-card ul {
  text-align: left;
  padding-left: 20px;
  list-style: disc;
}

.mvv-card ul li {
  margin-bottom: 10px;
  color: var(--text-color);
  transition: color 0.3s ease;
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background-color: var(--primary-color);
}

.testimonials .section-title,
.testimonials .section-subtitle {
  color: #fff;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-item {
  min-width: 100%;
  padding: 0 15px;
}

.testimonial-content {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  position: relative;
  margin-bottom: 30px;
}

.testimonial-content::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 30px;
  width: 30px;
  height: 30px;
  background-color: white;
  transform: rotate(45deg);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.05);
  z-index: -1;
}

.testimonial-quote {
  color: var(--secondary-color);
  font-size: 2rem;
  margin-bottom: 15px;
}

.testimonial-rating {
  margin-top: 15px;
  color: var(--secondary-color);
}

.testimonial-author {
  display: flex;
  align-items: center;
  padding-left: 30px;
}

.testimonial-author-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  border: 3px solid var(--secondary-color);
}

.testimonial-author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author-info h4 {
  margin-bottom: 5px;
  font-size: 1.2rem;
  color: #fff;
}

.testimonial-author-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.testimonial-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  border: none;
  color: var(--primary-color);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.testimonial-arrow:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color-dark);
}

.testimonial-dots {
  display: flex;
  gap: 10px;
  margin: 0 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--secondary-color);
  transform: scale(1.3);
}

/* FAQ Section */
.faq {
  padding: 100px 0;
  background-color: #fff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid var(--gray-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  background-color: var(--light-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.faq-icon {
  color: var(--secondary-color);
  transition: var(--transition);
}

.faq-item.active .faq-question {
  background-color: var(--primary-color);
}

.faq-item.active .faq-question h3 {
  color: white;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 1000px;
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: white;
}

.cta-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.cta-content {
  flex: 2;
}

.cta-content h2 {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.cta-button {
  flex: 1;
  text-align: right;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background-color: #f5f5f5; /* Cambiado a un fondo más claro */
}

.contact .section-title,
.contact .section-subtitle {
  color: var(--primary-color); /* Cambiado para mejor contraste */
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-map {
  flex: 1;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  min-height: 300px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-info {
  background-color: #fff;
  border-radius: 15px;
  padding: 40px;
  box-shadow: var(--box-shadow);
  border-left: 5px solid var(--secondary-color); /* Añadido borde izquierdo */
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: var(--primary-color);
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.contact-text p, .contact-text a {
  color: var(--text-color);
  transition: var(--transition);
}

.contact-text a:hover {
  color: var(--secondary-color);
}

.contact-social {
  margin-top: 30px;
}

.contact-social h4 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: var(--light-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color-dark);
}

.contact-form {
  background-color: #fff;
  border-radius: 15px;
  padding: 40px;
  box-shadow: var(--box-shadow);
  height: 100%;
  border-right: 5px solid var(--secondary-color); /* Añadido borde derecho */
}

.form-header {
  margin-bottom: 30px;
}

.form-header h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary-color);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(197, 183, 131, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.form-privacy input {
  margin-top: 5px;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
  margin-right: 10px;
}

.footer-about p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.footer-links h3, .footer-services h3, .footer-contact h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.footer-links ul, .footer-services ul {
  list-style: none;
}

.footer-links ul li, .footer-services ul li {
  margin-bottom: 10px;
}

.footer-links ul li a, .footer-services ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links ul li a:hover, .footer-services ul li a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-contact-icon {
  color: var(--secondary-color);
  font-size: 1.2rem;
  min-width: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--secondary-color);
}
/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-color);
  color: white;
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-tooltip {
  position: absolute;
  top: -40px;
  right: 0;
  background-color: white;
  color: var(--dark-color);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  box-shadow: var(--box-shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .hero h1 {
      font-size: 3rem;
  }
  
  .mvv-cards {
      grid-template-columns: 1fr;
      max-width: 600px;
      margin: 0 auto;
  }
}

@media (max-width: 992px) {
  .hero-content {
      padding: 80px 20px 40px;
  }
  
  .hero h1 {
      font-size: 2.5rem;
  margin-top: 100px;    }
  
  .hero-buttons {
      flex-direction: column;
      align-items: center;
      gap: 15px;
  }
  
  .hero-buttons .btn {
      width: 100%;
      max-width: 300px;
  }
  
  .about-container {
      flex-direction: column;
  }
  
  .contact-container {
      grid-template-columns: 1fr;
  }
  
  .contact-details {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-features {
      grid-template-columns: 1fr;
  }
  
  .section-title {
      font-size: 2rem;
  }
  
  .services-grid {
      grid-template-columns: 1fr;
  }
  
  .about-features {
      grid-template-columns: 1fr;
  }
  
  .form-row {
      grid-template-columns: 1fr;
  }
  
  .cta-container {
      flex-direction: column;
      text-align: center;
  }
  
  .cta-button {
      text-align: center;
  }
}

@media (max-width: 576px) {
  .hero h1 {
      font-size: 1.8rem;
  }
  
  .hero .slogan {
      font-size: 1.4rem;
  }
}


/* Estilos para el mensaje de carga */
.loading, .sent-message, .error-message {
  display: none;
  text-align: center;
  margin-top: 10px;
  font-weight: bold;
}

.d-block {
  display: block;
}

.sent-message {
  color: green;
}

.error-message {
  color: red;
}
