hr {
  display: block;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  margin-left: 75px;
  margin-right: 75px;
  border-style: solid;
  border-width: 1px;
}

.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  padding: 3rem 5vw 2rem 5vw;
  margin-top: 0;
  gap: 2rem;
}

.hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
}

.hero-left {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-left h1 {
  font-size: 2.5rem;
  color: var(--azul-marino);
  margin-bottom: 0.2rem;
  font-weight: 800;
  padding-left: 1.5rem;
}

.hero-slogan {
  margin-top: 1.2rem;
  font-size: 1.5rem;
  color: var(--vinotinto);
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
}

.logo-large {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(26, 34, 56, 0.1);
  border: 4px solid var(--azul-marino);
}

.slider {
  width: 100%;
  max-width: 420px;
  min-height: 140px;
  position: relative;
  background: transparent;
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  display: flex;
  align-items: center;
  height: 150px;
  box-sizing: border-box;
}

.slide {
  min-width: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.slide.active {
  opacity: 1;
  position: relative;
  transform: translateX(0);
  z-index: 2;
}

.slide:not(.active) {
  transform: translateX(100%);
  z-index: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slider h2 {
  color: var(--vinotinto);
  margin: 0 0 0.7rem 0;
  font-size: 2rem;
  font-weight: 800;
}

.slider p {
  color: var(--azul-marino);
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
}

.services-section {
  background: var(--white);
  padding: 3rem 0 3rem 0;
  overflow: hidden;
}

.services-title {
  text-align: center;
  color: var(--azul-marino);
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.services-slider-container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--azul-marino);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
  transition: all 0.3s ease;
}

.slider-btn:hover {
  background-color: var(--vinotinto);
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

.services-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 20px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.services-slider::-webkit-scrollbar {
  display: none;
}

.service-card {
  flex: 0 0 300px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(26, 34, 56, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 450px;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(26, 34, 56, 0.15);
}

.service-card-img {
  height: 180px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--vinotinto);
  background-color: var(--white);
}

.service-card-content h3 {
  color: var(--azul-marino);
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.service-card-content p {
  color: var(--black);
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card-content .service-link {
  color: var(--vinotinto);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid var(--vinotinto);
  transition: color 0.2s;
  align-self: flex-start;
  margin-top: auto;
}

.service-card-content .service-link:hover {
  color: var(--azul-marino);
  border-bottom: 1px solid var(--azul-marino);
}

.testimonial-section {
  background: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-element {
  opacity: 0;
  transform: translateY(30px);
}

.animate-element.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-container {
  width: 85%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card {
  display: flex;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(18, 38, 94, 0.1);
  overflow: hidden;
  transition: all 0.5s ease;
  opacity: 1;
}

.testimonial-card img {
  width: 40%;
  height: auto;
  object-fit: cover;
  border-right: 4px solid var(--vinotinto);
  transition: transform 0.5s ease;
}

.testimonial-card:hover img {
  transform: scale(1.03);
}

.testimonial-card > div {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-card h3 {
  color: var(--azul-marino);
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  position: relative;
  padding-bottom: 0.8rem;
  font-weight: 800;
}

.testimonial-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 80px;
  background-color: var(--vinotinto);
}

.testimonial-card p {
  color: var(--black);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.testimonial-card strong {
  color: var(--azul-marino);
  font-weight: 700;
}

.testimonial-card .author {
  color: var(--vinotinto);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.cta-btn {
  display: block;
  margin: 3rem auto 0;
  background-color: var(--vinotinto);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(107, 14, 17, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-btn:hover {
  background-color: var(--azul-marino);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(18, 38, 94, 0.3);
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--white);
  margin: auto;
  padding: 0;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transform: scale(0.7);
  opacity: 0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-header {
  background: linear-gradient(135deg, var(--azul-marino), var(--vinotinto));
  color: var(--white);
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.close:hover {
  color: rgba(255, 255, 255, 0.7);
}

.modal-body {
  padding: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: var(--azul-marino);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.8rem;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--vinotinto);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(107, 14, 17, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.submit-btn {
  background: linear-gradient(135deg, var(--vinotinto), var(--azul-marino));
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 14, 17, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--vinotinto);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.clients-slider-wrapper {
  width: 96%;
  margin: 50px auto;
  overflow: hidden;
  position: relative;
  padding: 45px 30px;
  background-color: var(--gris-claro);
  border-radius: 12px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.clients-slider {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0;
}

.clients-slide {
  display: flex;
  min-width: 100%;
  animation: slideMarquee 65s linear infinite;
  align-items: center;
  justify-content: space-around;
  gap: 0;
  flex-wrap: nowrap;
}

.clients-slide-spaced {
  padding: 0 50px;
}

@keyframes slideMarquee {
  0% {
    transform: translateX(10%);
  }
  100% {
    transform: translateX(-210%);
  }
}

.client-logo {
  display: block;
  width: 130px;
  height: 90px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.5s ease;
  padding: 15px;
  margin: 0 40px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.client-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.client-testimonials {
  margin-top: 70px;
  padding: 40px 0;
}

.testimonials-title {
  color: var(--azul-marino);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-item {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
  position: relative;
  padding-top: 20px;
  margin-bottom: 20px;
}

.testimonial-quote::before {
  content: '"';
  font-size: 5rem;
  color: var(--vinotinto);
  opacity: 0.3;
  position: absolute;
  top: -40px;
  left: -10px;
  font-family: serif;
}

.testimonial-quote p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--black);
}

.testimonial-author {
  border-top: 2px solid var(--gris-claro);
  padding-top: 15px;
}

.testimonial-author p {
  font-size: 0.95rem;
  margin: 0;
}

.testimonial-author strong {
  color: var(--azul-marino);
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero-container {
    flex-direction: column-reverse;
    align-items: center;
    padding: 2rem 2vw 1rem 2vw;
    gap: 1.5rem;
  }
  .hero-right,
  .hero-left {
    width: 100%;
    align-items: center;
    text-align: center;
  }
  .hero-left {
    align-items: center;
  }
  .slider {
    margin: 0 auto;
  }

  .services-slider-container {
    padding: 0 30px;
    width: 95%;
  }
  .service-card {
    flex: 0 0 280px;
    min-height: 400px;
  }

  .testimonial-card {
    flex-direction: column;
  }

  .testimonial-card img {
    width: 100%;
    height: 250px;
    border-right: none;
    border-bottom: 4px solid var(--vinotinto);
  }

  .testimonial-card > div {
    padding: 1.5rem;
  }

  .testimonial-card h3 {
    font-size: 1.6rem;
    text-align: center;
  }

  .testimonial-card h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .hero-left {
    align-items: center;
    width: 100%;
    padding: 0 5px;
  }

  .hero-left h1 {
    text-align: center;
    padding-left: 0;
    width: 100%;
    margin-bottom: 1rem;
    font-size: 2rem;
  }

  .slider {
    padding: 0.5rem !important;
    margin: 0 auto;
    width: 95%;
    max-width: 360px;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 150px;
  }

  .slide {
    align-items: center;
    text-align: center;
    padding: 0.5rem;
  }

  .slider h2 {
    font-size: 1.7rem;
    margin: 0 0 0.5rem 0;
    text-align: center;
  }

  .slider p {
    font-size: 1.1rem;
    text-align: center;
    padding: 0 0.2rem;
  }

  .hero-slogan {
    font-size: 1.3rem;
  }

  .logo-large {
    width: 180px;
    height: 180px;
  }

  .services-slider-container {
    padding: 0 20px;
  }

  .service-card {
    flex: 0 0 240px;
    min-height: 380px;
  }

  .service-card-content h3 {
    font-size: 1.2rem;
  }

  .service-card-content p {
    font-size: 0.9rem;
  }

  .slider-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .client-logo {
    height: 60px;
    margin: 0 15px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    margin: 1rem;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-header h2 {
    font-size: 1.3rem;
  }

  .modal-body {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .slider {
    padding: 0.3rem !important;
    width: 98%;
    min-height: 140px;
  }

  .slider h2 {
    font-size: 1.5rem;
  }

  .slider p {
    font-size: 1rem;
  }
}
