/* Variables */
:root {
  --primary-color: #a3a0bf; /* Color solicitado por la contadora */
  --secondary-color: #5d5a7c;
  --dark-color: #333333;
  --light-color: #f4f4f4;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --max-width: 1200px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease-in-out;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #fff;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: var(--dark-color);
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  background-color: #fff;
}

.section-alt {
  background-color: var(--light-color);
  position: relative;
}

.section-alt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--dark-color);
  position: relative;
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-header p {
  font-size: 1.2rem;
  color: #666;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
}

.section-footer {
  text-align: center;
  margin-top: 40px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.5s;
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: #8a87a3;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: #fff;
}

.btn-secondary:hover {
  background-color: #cca300;
}

.btn-whatsapp {
  background-color: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-whatsapp:hover {
  background-color: #128c7e;
}

.btn-whatsapp i {
  font-size: 1.2rem;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Header */
/* 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;
    border-radius: 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;
    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);
  }
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-5px);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

.faq-item.active .faq-question {
  background-color: var(--primary-color);
  color: #fff;
}

.faq-question h3 {
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.faq-icon {
  transition: all 0.3s ease;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 1000px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-container {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  padding: 30px;
  position: relative;
  z-index: 1;
  border: 1px solid #e0e0e0;
}

.faq-question {
  background-color: #f5f5f5;
  border-left: 4px solid var(--primary-color);
  border-radius: 5px;
  margin-bottom: 5px;
}

.faq-item.active .faq-question {
  background-color: var(--primary-color);
  color: #fff;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}



/* Modificar la fuente y estilo de la navegación */
#cs-navigation .cs-li-link {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--dark-color);
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

#cs-navigation .cs-li-link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

#cs-navigation .cs-li-link:hover:after,
#cs-navigation .cs-li-link.cs-active:after {
  width: 100%;
}

#cs-navigation .cs-li-link:hover,
#cs-navigation .cs-li-link.cs-active {
  color: var(--primary-color);
}

@media only screen and (min-width: 81.25rem) {
  #cs-navigation .cs-social {
    display: flex;
  }
}
/* Hero Section */
.hero-section {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url("../img/hero-bg.jpg") no-repeat center
    center / cover;
  color: #fff;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 0;
  margin-top: 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease forwards;
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #ffffff;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.9s;
  opacity: 0;
}

/* Animated background */
.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(163, 160, 191, 0.1);
  transform-origin: center;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Page Banner */
.page-banner {
  height: 300px;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("../img/banner-bg.jpg") no-repeat center
    center / cover;
  color: #fff;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 120px;
}

.page-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(163, 160, 191, 0.1);
  transform-origin: center;
  animation: rotate 20s linear infinite;
}

.page-banner h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
  animation: fadeInDown 1s ease forwards;
}

.page-banner p {
  font-size: 1.2rem;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

/* Services Preview Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-top: 4px solid var(--primary-color);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  font-weight: 700;
  color: var(--dark-color);
}

.service-card p {
  color: #666;
  font-size: 1.05rem;
  line-height: 1.6;
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  transition: all 0.5s ease;
}

.service-card:hover .service-icon {
  transform: rotateY(360deg);
}

.service-card:hover h3 {
  color: var(--primary-color);
}
/* About Preview Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), transparent);
  opacity: 0.3;
  transition: all 0.5s ease;
}

.about-image:hover::before {
  opacity: 0.5;
}

.about-image img {
  transition: all 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.about-content h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.about-content p {
  margin-bottom: 20px;
  color: #666;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateX(5px);
}

.feature i {
  color: var(--primary-color);
}

/* Contact Preview Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  align-items: start;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

/* Modificar el tamaño de las tarjetas de contacto */
.contact-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 200px;
}

.contact-card p {
  color: #666;
  font-size: 0.90rem;
  word-break: break-word;
  margin-top: auto;
}

.contact-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--primary-color);
  opacity: 0.1;
  transition: all 0.5s ease;
  z-index: -1;
}

.contact-card:hover::before {
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 15px;
  font-size: 1.5rem;
  transition: all 0.5s ease;
}

.contact-card:hover .contact-icon {
  transform: rotateY(360deg);
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.contact-card:hover h3 {
  color: var(--primary-color);
}

.contact-form-container {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.contact-form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--primary-color);
}

.contact-form-container h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  display: inline-block;
}

.contact-form-container h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.contact-form .form-group {
  margin-bottom: 20px;
  position: relative;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(163, 160, 191, 0.2);
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.form-status {
  margin-top: 20px;
}

.loading,
.error-message,
.sent-message {
  display: none;
  text-align: center;
  padding: 10px;
  border-radius: 5px;
}

.loading {
  background-color: #f8f9fa;
}

.error-message {
  background-color: #f8d7da;
  color: var(--danger-color);
}

.sent-message {
  background-color: #d4edda;
  color: var(--success-color);
}

/* CTA Section */
#cta {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url("../img/cta-bg.jpg") no-repeat center center
    / cover;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(163, 160, 191, 0.1);
  transform-origin: center;
  animation: rotate 20s linear infinite;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease forwards;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.cta-content .btn {
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

/* Footer */
#footer {
  background-color: var(--dark-color);
  color: #fff;
  padding: 80px 0 20px;
  position: relative;
  overflow: hidden;
}

#footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.footer-logo img {
  max-width: 150px;
  margin-bottom: 20px;
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-contact h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links ul li,
.footer-services ul li {
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.footer-links ul li:hover,
.footer-services ul li:hover {
  transform: translateX(5px);
}

.footer-links ul li a,
.footer-services ul li a {
  color: #ccc;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
  color: var(--secondary-color);
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.footer-contact p:hover {
  transform: translateX(5px);
}

.footer-contact p i {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  position: relative;
  z-index: 1;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: all 0.3s ease;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

.whatsapp-button::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25d366;
  opacity: 0.5;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70% {
    transform: scale(1.3);
    opacity: 0;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Animations */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonials Section - NUEVO DISEÑO COMPLETO */
.testimonials-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.testimonials-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.testimonials-slider-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-item {
  flex: 0 0 100%;
  width: 100%;
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--primary-color);
}

.testimonial-content {
  margin-bottom: 25px;
  position: relative;
  padding-left: 40px;
}

.testimonial-content::before {
  content: "\f10d";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--primary-color);
  opacity: 0.3;
  position: absolute;
  top: 0;
  left: 0;
}

.testimonial-content p {
  font-style: italic;
  color: #555;
  font-size: 1.1rem;
  line-height: 1.7;
  font-family: "Georgia", serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 20px;
}

.testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--dark-color);
  margin-bottom: 5px;
  font-family: "Montserrat", sans-serif;
}

.testimonial-position {
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
}

.testimonial-arrow {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.testimonial-arrow.prev-arrow {
  left: -60px;
}

.testimonial-arrow.next-arrow {
  right: -60px;
}

.testimonial-arrow:hover {
  background-color: var(--secondary-color);
  transform: translateY(-50%) scale(1.1);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* Stats Section */
.stats-section {
  background-color: var(--primary-color);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform-origin: center;
  animation: rotate 20s linear infinite;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.stat-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  transition: all 0.5s ease;
}

.stat-item:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.2);
}

.stat-icon {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 15px;
  transition: all 0.5s ease;
}

.stat-item:hover .stat-icon {
  transform: rotateY(360deg);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.stat-title {
  font-size: 1.2rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .testimonial-arrow.prev-arrow {
    left: -40px;
  }

  .testimonial-arrow.next-arrow {
    right: -40px;
  }
}

@media (max-width: 768px) {
  .cs-toggle {
    display: block;
  }

  .cs-ul-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: var(--box-shadow);
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
  }

  .cs-ul-wrapper.active {
    max-height: 500px;
  }

  .cs-ul {
    flex-direction: column;
    padding: 20px;
    gap: 0;
  }

  .cs-li {
    width: 100%;
  }

  .cs-li-link {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
  }

  .cs-drop-ul {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
  }

  .cs-dropdown.active .cs-drop-ul {
    max-height: 500px;
    padding: 10px 0;
  }

  .cs-drop-link {
    padding-left: 20px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-banner h1 {
    font-size: 2.5rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: 2;
  }

  .about-content {
    order: 1;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .testimonial-arrow {
    width: 30px;
    height: 30px;
  }

  .testimonial-arrow.prev-arrow {
    left: -20px;
  }

  .testimonial-arrow.next-arrow {
    right: -20px;
  }
}

/* Ajustar el grid de contacto para pantallas pequeñas */
@media (max-width: 768px) {
  .contact-info {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 576px) {
  .section {
    padding: 60px 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 1.3rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo img {
    margin: 0 auto 20px;
  }

  .footer-contact p {
    justify-content: center;
  }

  .footer-links h3::after,
  .footer-services h3::after,
  .footer-contact h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .testimonial-arrow.prev-arrow {
    left: -15px;
  }

  .testimonial-arrow.next-arrow {
    right: -15px;
  }
}

/* Estilos para el blog y artículos */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.blog-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.blog-date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.blog-date .month {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.blog-date .year {
  display: block;
  font-size: 0.8rem;
}

.blog-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-category {
  display: inline-block;
  background-color: rgba(163, 160, 191, 0.1);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--dark-color);
  transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
  color: var(--primary-color);
}

.blog-excerpt {
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
}

.blog-read-more i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.blog-read-more:hover {
  color: var(--secondary-color);
}

.blog-read-more:hover i {
  transform: translateX(5px);
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 10px;
}

.pagination a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #fff;
  color: var(--dark-color);
  border-radius: 5px;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.pagination a.active,
.pagination a:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Estilos para la página de artículo individual */
.article-header {
  background-color: var(--light-color);
  padding: 120px 0 50px;
  text-align: center;
}

.article-category {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-header h1 {
  font-size: 2.8rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.article-date,
.article-time {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
}

.article-content {
  padding: 60px 0;
}

.article-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.article-featured-image {
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-text {
  color: #444;
  line-height: 1.8;
}

.article-text p {
  margin-bottom: 20px;
}

.article-text h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: var(--dark-color);
}

.article-text ul,
.article-text ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.article-text li {
  margin-bottom: 10px;
}

.article-intro {
  font-size: 1.2rem;
  font-weight: 500;
  color: #555;
  line-height: 1.6;
  margin-bottom: 30px;
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
}

.article-share {
  display: flex;
  align-items: center;
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.article-share span {
  margin-right: 15px;
  font-weight: 600;
}

.article-share a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  color: #fff;
  transition: transform 0.3s ease;
}

.article-share a:hover {
  transform: translateY(-5px);
}

.share-facebook {
  background-color: #3b5998;
}

.share-twitter {
  background-color: #1da1f2;
}

.share-linkedin {
  background-color: #0077b5;
}

.share-whatsapp {
  background-color: #25d366;
}

.article-tags {
  margin-bottom: 40px;
}

.article-tags span {
  font-weight: 600;
  margin-right: 10px;
}

.article-tags a {
  display: inline-block;
  background-color: #f5f5f5;
  color: #666;
  padding: 5px 15px;
  border-radius: 20px;
  margin-right: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.article-tags a:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.author-bio {
  display: flex;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  margin-top: 40px;
}

.author-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
  flex-shrink: 0;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h3 {
  margin-bottom: 5px;
  color: var(--dark-color);
}

.author-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 15px;
}

.author-description {
  margin-bottom: 15px;
  color: #666;
}

.author-social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  background-color: #eee;
  border-radius: 50%;
  margin-right: 10px;
  color: #666;
  transition: all 0.3s ease;
}

.author-social a:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.article-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  padding: 25px;
  margin-bottom: 30px;
}

.sidebar-widget h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  color: var(--dark-color);
}

.search-form {
  display: flex;
  position: relative;
}

.search-form input {
  width: 100%;
  padding: 12px 50px 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-form input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(163, 160, 191, 0.2);
}

.search-form button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-form button:hover {
  color: var(--primary-color);
}

.categories-widget ul li {
  margin-bottom: 12px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.categories-widget ul li:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.categories-widget ul li a {
  display: flex;
  justify-content: space-between;
  color: #666;
  transition: color 0.3s ease;
}

.categories-widget ul li a:hover {
  color: var(--primary-color);
}

.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.recent-post {
  display: flex;
  align-items: center;
}

.recent-post-image {
  width: 80px;
  height: 60px;
  border-radius: 5px;
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
}

.recent-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-content h4 {
  font-size: 1rem;
  margin-bottom: 5px;
  line-height: 1.4;
}

.recent-post-content h4 a {
  color: var(--dark-color);
  transition: color 0.3s ease;
}

.recent-post-content h4 a:hover {
  color: var(--primary-color);
}

.recent-post-date {
  font-size: 0.8rem;
  color: #888;
}

.cta-widget {
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
}

.cta-widget h3 {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.cta-widget p {
  margin-bottom: 20px;
}

.cta-widget .btn {
  background-color: #fff;
  color: var(--primary-color);
}

.cta-widget .btn:hover {
  background-color: var(--secondary-color);
  color: #fff;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

@media (max-width: 992px) {
  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    margin-top: 50px;
  }

  .article-header h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .related-articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
  }

  .author-image {
    margin: 0 auto 20px;
  }

  .article-meta {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .article-header h1 {
    font-size: 1.8rem;
  }

  .article-text h2 {
    font-size: 1.5rem;
  }

  .article-share {
    flex-wrap: wrap;
  }

  .article-share span {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* Estilos para la sección de novedades en la página de inicio */
.news-preview-section {
  background-color: #fff;
  padding: 80px 0;
}

.news-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.news-preview-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.news-preview-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-preview-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.news-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-preview-card:hover .news-preview-image img {
  transform: scale(1.05);
}

.news-preview-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-color);
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 600;
}

.news-preview-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-preview-category {
  display: inline-block;
  background-color: rgba(163, 160, 191, 0.1);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-preview-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--dark-color);
  transition: color 0.3s ease;
}

.news-preview-card:hover .news-preview-title {
  color: var(--primary-color);
}

.news-preview-excerpt {
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.news-preview-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
}

.news-preview-link i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.news-preview-link:hover {
  color: var(--secondary-color);
}

.news-preview-link:hover i {
  transform: translateX(5px);
}

/* Restaurar estilos para la sección de filosofía en nosotros.html */
.philosophy-section {
  background-color: var(--light-color);
  position: relative;
  padding: 80px 0;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.philosophy-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.philosophy-card:hover {
  transform: translateY(-10px);
}

.philosophy-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  transition: all 0.5s ease;
}

.philosophy-card:hover .philosophy-icon {
  transform: rotateY(360deg);
}

.philosophy-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.philosophy-card p {
  color: #666;
}

/* Restaurar estilos para la sección de equipo en nosotros.html */
.team-section {
  padding: 80px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.team-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-image {
  position: relative;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: auto;
  transition: all 0.5s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

.team-info {
  padding: 20px;
  text-align: center;
}

.team-info h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.team-info p {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.team-social a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  background-color: #f5f5f5;
  border-radius: 50%;
  color: #666;
  transition: all 0.3s ease;
}

.team-social a:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Restaurar estilos para la sección "Por qué elegirnos" en nosotros.html */
.about-section-alt {
  background-color: var(--light-color);
  position: relative;
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  transition: all 0.5s ease;
}

.feature-card:hover .feature-icon {
  transform: rotateY(360deg);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.feature-card p {
  color: #666;
}

/* Restaurar estilos para las tarjetas de servicios en servicios.html */
.services-detailed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-item {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-item:hover {
  transform: translateY(-10px);
}

.service-header {
  display: flex;
  align-items: center;
  padding: 25px;
  border-bottom: 1px solid #eee;
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 0px;
 margin-right: 20px;
  font-size: 1.5rem;
  transition: all 0.5s ease;
  flex-shrink: 0;
}

.service-item:hover .service-icon {
  transform: rotateY(360deg);
}

.service-header h3 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--dark-color);
}

.service-content {
  padding: 25px;
  flex-grow: 1;
}

.service-content p {
  margin-bottom: 20px;
  color: #666;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  color: #666;
  position: relative;
  padding-left: 25px;
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

.service-footer {
  padding: 20px 25px;
  border-top: 1px solid #eee;
  text-align: center;
}

/* Restaurar estilos para la sección "Nuestro Proceso de Trabajo" en servicios.html */
.process-container {
  margin-top: 50px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.process-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  padding: 30px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  height: 100%;
}

.process-card:hover {
  transform: translateY(-10px);
}

.process-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
}

.process-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(163, 160, 191, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  font-size: 1.8rem;
  transition: all 0.5s ease;
}

.process-card:hover .process-icon {
  transform: rotateY(360deg);
  background-color: var(--primary-color);
  color: #fff;
}

.process-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.process-card p {
  color: #666;
}

/* Ajustar el mapa en contacto.html para que sea más largo */
.map-container {
  height: 450px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Ajustar la paginación en novedades.html */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 10px;
}

.pagination a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #fff;
  color: var(--dark-color);
  border-radius: 5px;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.pagination a.active,
.pagination a:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Ajustes para la página de artículo */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

@media (max-width: 992px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
}
