/* Global Styles */
:root {
  --primary-color: #3478c8;
  --dark-gray: #333;
  --medium-gray: #555;
  --light-gray: #f0f0f0;
  --text-color: #333;
  --text-light: #fff;
  --section-padding: 60px 0;
  --card-bg-dark: #4a5568;
  --card-bg-light: #e2e8f0; 
  --service-card1-bg: #3c4a5f;
  --service-card2-bg: #60738e;
  --service-card3-bg: #d1d5db;
}

body {
  font-family: 'IBM Plex Sans';
  margin: 0;
  color: var(--text-color);
  background-color: #f8f9fa;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

h1, h2, h3 {
  margin-top: 0;
}

h2 {
  font-size: 2.2em;
  margin-bottom: 20px;
  text-align: center;
  color: var(--dark-gray);
  font-weight: 600;
}

h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: 600;
}

p {
  margin-bottom: 15px;
  font-size: 1em;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9em;
}

.btn-dark {
  background-color: #4b4f54;
  color: var(--text-light);
  font-family: 'IBM Plex Sans';
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-dark:hover {
  background-color: #a0aec0;
  color: #e2e8f0;
  background-color: transparent;
  color: var(--medium-gray);
  border: 2px solid var(--medium-gray);
}

.btn-primary-outline {
  background-color: #306fb4;
  color: white;
  border: 2px solid #306fb4;
}

.btn-primary-outline:hover {
  background-color: transparent; 
  color: #4b4f54; 
  border-color: #4b4f54;
}

/* Ajustamos el .btn-primary existente para el hover (si es necesario) */
.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: #2a62a0; /* Un azul un poco mÃ¡s oscuro */
  /* color: var(--text-light); // El color del texto no cambia */
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: #2a62a0;
}

.btn-light-outline {
  font-family: 'IBM Plex Sans';
  background-color: #e1e4e6;
  color: var(--dark-gray);
  border: 2px solid #e1e4e6;
  padding: 12px 30px;
  border-radius: 5px;
}
.btn-light-outline:hover {
  background-color: transparent;
  color: #e1e4e6;
}

.content-split {
  display: flex;
  align-items: center;
  gap: 40px;
}

.content-split > div {
  flex: 1;
}

.content-split-equal {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.content-split-equal > div {
  flex-basis: calc(50% - 15px);
}


/* Header */
header {
  background-color: #e1e4e6;
  padding: 15px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  height: 40px;
}

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  padding-right: 30px;
}

header nav ul li {
  margin-left: 25px;
}

header nav ul li a {
  font-family: 'IBM Plex Sans';
  color: #4b4f54;
  font-weight: 500;
  font-size: 0.9em;
}
header nav ul li a:hover {
  color: #306fb4;
}
.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 20px; 
}


/* Hero Carousel */
#hero-carousel {
  position: relative;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
  background-color: #333;
}

.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

.carousel-slide.active {
  display: block;
  opacity: 1;
}

.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 28px;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  z-index: 20;
}
.carousel-control.prev { left: 30px; }
.carousel-control.next { right: 30px; }
.carousel-control:hover { background-color: rgba(255, 255, 255, 0.4); }

.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 20;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 6px;
  background-color: transparent; 
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border: 1px solid #4b4f54; 
}

.dot.active {
  background-color: #4b4f54; 
  border: 1px solid #4b4f54; 
}

.dot:hover {
  background-color: rgba(75, 79, 84, 0.8); 
}


.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 10;
  padding: 20px;
}
.hero-logo-overlay {
  width: 180px;
  margin-bottom: 25px;
  filter: brightness(0) invert(1);
}

.hero-content h1 {
  font-family: 'IBM Plex Sans';
  color: #4b4f54;
  font-size: 2.5em;
  margin-bottom: 30px;
  line-height: 1.3;
  font-weight: 200;
}

/* About Us Section (#firma) */
.about-us {
  padding: var(--section-padding);
  background-color: #e1e4e6;
}
.about-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}
.about-text h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  text-align: left;
  font-size: 1.8em;
  line-height: 1.4;
  margin-bottom: 20px;
}
.about-text .highlight {
  font-family: 'Inter', sans-serif;
  font-weight: bold;
  color: var(--dark-gray);
}
.about-text p {
  font-family: 'Inter', sans-serif;
  color: var(--medium-gray);
  font-size: 0.95em;
}

/* Services Section */
.services-section {
  padding: var(--section-padding);
  background-color: #e1e4e6;
}
.services-section .container h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  text-align: center;
  font-size: 1.5em;
  color: var(--medium-gray);
  max-width: 600px;
  margin: 0 auto 5px auto;
}
.services-section .subtitle .highlight {
  font-family: 'Inter', sans-serif;
  font-weight:700;
  color: var(--dark-gray);
}
.services-section .subtitle {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 2em;
  color: #000;
  margin: 0 auto 20px auto; 
}
.service-filters {
  font-family: 'IBM Plex Sans';
  text-align: center;
  margin-bottom: 40px;
}
.filter-btn {
  background-color: transparent;
  color: #4b4f54;
  border:  1px solid #4b4f54;
  padding: 10px 25px;
  margin: 0 8px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 500;
}
.filter-btn.active, .filter-btn:hover {
  background-color: #4b4f54;
  color: white;
  border-color: #4b4f54;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

#auditoria-services {
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}
.service-card {
  padding: 30px 25px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  flex-basis: calc(33.333% - 20px);
  min-height: 400px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: medium;
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 1.3em;
}
.service-card p {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.9em;
  line-height: 1.5;
  flex-grow: 1;
}
.additional-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.additional-card {
  background-color: #cecfd1; 
  text-align: center;
  padding: 20px;
  border-radius: 30px;
  font-weight: 500;
}
.icon-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  margin-bottom: 15px;
}

.service-card:nth-child(1) { background-color: #283955; color: #3f5a87;}
.service-card:nth-child(1) h3 { color: white; }
.service-card:nth-child(1) p { color: #e0e0e0; }
.service-card:nth-child(1) .service-icon { filter: brightness(0) invert(1); }
.service-card:nth-child(1) .icon-wrapper { background-color: #3f5a87; }


.service-card:nth-child(2) { background-color: #54708f; color: #6b86a3;}
.service-card:nth-child(2) h3 { color: white; }
.service-card:nth-child(2) p { color: #e0e0e0; }
.service-card:nth-child(2) .service-icon { filter: brightness(0) invert(1); }
.service-card:nth-child(2) .icon-wrapper { background-color: #6b86a3; }


.service-card:nth-child(3) { background-color: #97a5b5; color: #b3bcc7;}
.service-card:nth-child(3) h3 { color: #4b4f54; }
.service-card:nth-child(3) p { color: #4b4f54 }
.service-card:nth-child(3) .icon-wrapper { background-color: #b3bcc7; }

.contable-card-1 { background-color: #283955; color: #3f5a87;}
.contable-card-1 h3 { color: white; }
.contable-card-1 p { color: #e0e0e0; }
.contable-card-1 .service-icon { filter: brightness(0) invert(1); }
.contable-card-1 .icon-wrapper { background-color: #3f5a87; }

.contable-card-2 { background-color: #54708f; color: #6b86a3;}
.contable-card-2 h3 { color: white; }
.contable-card-2 p { color: #e0e0e0; }
.contable-card-2 .service-icon { filter: brightness(0) invert(1); }
.contable-card-2 .icon-wrapper { background-color: #6b86a3; }

.contable-card-3 { background-color: #97a5b5; color: #b3bcc7;}
.contable-card-3 h3 { color: #4b4f54; }
.contable-card-3 p { color: #4b4f54 }
.contable-card-3 .icon-wrapper { background-color: #b3bcc7; }

.auditoria-card-1 { background-color: #283955; color: #3f5a87;}
.auditoria-card-1 h3 { color: white; }
.auditoria-card-1 p { color: #e0e0e0; }
.auditoria-card-1 .service-icon { filter: brightness(0) invert(1); }
.auditoria-card-1 .icon-wrapper { background-color: #3f5a87; }

.auditoria-card-2 { background-color: #54708f; color: #6b86a3;}
.auditoria-card-2 h3 { color: white; }
.auditoria-card-2 p { color: #e0e0e0; }
.auditoria-card-2 .service-icon { filter: brightness(0) invert(1); }
.auditoria-card-2 .icon-wrapper { background-color: #6b86a3; }


.service-icon {
  width: 40px; 
  height: 40px;
  margin-bottom: 10px;
}

.service-placeholders {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.service-placeholders span {
  background-color: #e0e0e0;
  height: 15px;
  width: 120px;
  border-radius: 10px;
}
.service-placeholders span:nth-child(2) { width: 150px; }


/* More Details Section */
.more-details-section {
  background-image: url('../site_assets/adh-tax-legal_fondo_brochure.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: var(--text-light);
  padding: 50px 0;
  z-index: 0; 
}

/* Overlay para la secciÃ³n more-details */
.more-details-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: rgba(45, 55, 72, 0.9); */
  z-index: -1; 
}

.more-details-section .container {
  position: relative;
  z-index: 1;
}

.more-details-section .container.content-split {
  align-items: center;
}
.details-text-left h2 {
  font-family: 'Inter', sans-serif;
  font-weight: medium;
  color: var(--text-light);
  text-align: left;
  font-size: 1.6em;
  margin-bottom: 20px;
}
.details-text-left .btn {
  border-radius: 30px;
}
.details-text-right p {
  font-size: 0.95em;
  color: #e2e8f0;
  text-align: left;
}

/* Team Section (#capital-humano) */
.team-section {
  font-family: 'Inter', sans-serif;
  padding: var(--section-padding);
  background-color: #fff; 
}

/* Forzar layout de dos columnas para la sección del equipo */
.team-section .container.content-split {
  display: flex !important;
  align-items: flex-start !important;
  gap: 40px !important;
  flex-direction: row !important;
}

.team-section .team-description {
  flex: 1 !important; /* Ocupa la mitad izquierda */
  min-width: 350px !important; /* Ancho mínimo para el texto */
  max-width: 50% !important;
}

.team-description p {
  color: var(--medium-gray);
  font-size: 0.95em;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
}

.team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.member {
  text-align: center;
  flex-basis: calc(20% - 20px);
  min-width: 120px;
}
.member img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  /* border: 3px solid var(--dark-gray); */
}
.member p {
  font-size: 0.85em;
  color: var(--dark-gray);
  line-height: 1.3;
}
.member p strong {
  display: block;
  font-size: 0.95em;
}


.member-card {
  flex-shrink: 0;
  margin-top: 10px;
  margin-bottom: 10px;
  background: white;
  text-align: center;
  cursor: pointer;
  padding-top: 10px;
  padding-bottom: 10px;
}

.member-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
}

.member-card p .name {
  font-size: 15px;
  color: var(--medium-gray);
}
.member-card .name{
  font-size: 17px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--medium-gray);
  line-height: 1.2;
}

.member-card p .title {
  font-size: 13px;
  color: #777;
}
.member-card .title{
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: #777;
}


/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  width: 80%;
  max-width: 700px;
  display: flex;
  gap: 20px;
  position: relative;
}

.modal-content img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.modal-content .info {
  flex: 1;
}

.modal-content h2 {
  margin: 0;
  font-size: 20px;
}

.modal-content h4 {
  margin: 5px 0;
  font-weight: normal;
  color: #666;
}

.modal-content p {
  font-size: 14px;
  margin-top: 10px;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}

/* Mission Vision Section */
.mission-vision-section {
  padding: var(--section-padding);
  background-color: #fff; 

}
.mission-card, .vision-card {
  padding: 30px;
  border-radius: 8px;
}
.mission-card {
  background-color: #4b4f54;
  color: var(--text-light);
}
.mission-card h3 { 
  color: var(--text-light);
  size: 200px; 
  padding-left: 30px;
}
.mission-card p { 
  color: #e0e0e0;
  padding-left: 50px; 
}

.vision-card {
  background-color: #d0d2d4;
  color: var(--dark-gray);
}
.vision-card h3 {
  color: var(--dark-gray);
  padding-left: 30px;
}
.vision-card p { 
  color: var(--medium-gray);
  padding-left: 50px;
 }

.mission-outline {
  display: inline-block;
  padding: 0.3em 1em;
  border: 2px solid #e0e0e0; 
  border-radius: 999px;
  font-weight: normal;
  background-color: transparent;
}

.vision-outline {
  display: inline-block;
  padding: 0.3em 1em;
  border: 2px solid var(--card-bg-dark);; 
  border-radius: 999px;
  font-weight: normal;
  background-color: transparent;
}


/* Clients Section */
.clients-section {
  padding: var(--section-padding);
  background-image: url('../site_assets/adh-tax-legal_fondo_clientes.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: var(--text-light);
  z-index: 0; 
}

/* Overlay para la secciÃ³n de clientes */
.clients-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(108, 117, 125, 0.6);
  z-index: -1; 
}

.clients-section .container {
  position: relative;
  z-index: 1;
}

.clients-section h2, .clients-section .subtitle {
  color: #e1e4e6ab;
  font-family: 'Inter', sans-serif;
  font-weight: 300;

}

.clients-section h2 {
  text-align: center;
  font-size: 1.5em;
  font-weight: 500;
  margin-bottom: 0px !important;
}

.clients-section .subtitle {
  text-align: center;
  margin-top: 0;
  margin-bottom: 40px;
  font-size: 2em;
  color: #e1e4e6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

.client-logos-carousel {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  width: 100%;
}
.client-logos-slider {
  display: flex;
  align-items: center;
}
.client-logos-slider img {
  height: 50px;
  margin: 0 30px;
  filter: grayscale(100%) brightness(200%);
  opacity: 0.8;
  object-fit: contain;
  flex-shrink: 0;
}
.client-logos-carousel .carousel-control {
  background-color: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  font-size: 20px;
}
.client-logos-carousel .carousel-control.client-prev { left: 0; }
.client-logos-carousel .carousel-control.client-next { right: 0; }
.client-logos-carousel .carousel-control:hover { background-color: rgba(255, 255, 255, 0.3); }


/* Contact Section */
.contact-section {
  padding: var(--section-padding);
  /* background-image: url('../img/contact-bg.jpg'); */
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--text-light);
}
.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.contact-section .container {
  font-family: 'Inter', sans-serif;
  font-weight: medium;
  position: relative;
  z-index: 2;
}
.contact-info {
  font-family: 'Inter', sans-serif;
  font-weight: medium;
}
.contact-info h2, .contact-info h3 {
  text-align: left;
  color: var(--text-light);
}
.contact-info h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #ffffff88;
}
.contact-info h3 {
  font-size: 2em;
  margin-bottom: 15px; 
  font-weight: 500;
}
.contact-info p {
  color: #e0e0e0;
  font-size: 0.9em;
}

.contact-form form input,
.contact-form form textarea {
  width: 100%;
  padding: 12px 5px;
  margin-bottom: 20px;
  border: none;
  border-bottom: 1px solid #fff;
  border-radius: 0;
  background-color: transparent;
  color: var(--text-light);
  box-sizing: border-box;
  font-size: 0.95em;

}

.contact-form form input::placeholder,
.contact-form form textarea::placeholder {
  color: #ccc;
  font-family: 'Inter', sans-serif;
}

.contact-form form button {
  width: auto;
  padding: 12px 35px;
}
.contact-form form {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* esto alinea el botón a la derecha */
}


/* Footer */
footer {
  background-color: black;
  color: #adb5bd;
  padding-top: 40px;
}
.footer-content {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-logo {
  flex: 0 0 auto; 
}

.footer-logo .logo {
  height: 42px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-nav-address {
  display: flex;
  flex-direction: row;
  gap: 60px;
  flex-wrap: wrap;
  justify-content: flex-end; 
  text-align: left;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav ul li {
  margin-bottom: 8px;
}

.footer-nav ul li a {
  color: #adb5bd;
  font-size: 0.85em;
}

.footer-nav ul li a:hover {
  color: var(--text-light);
}

.footer-address p {
  margin-bottom: 5px;
  font-size: 0.85em;
}

.footer-address p strong {
  color: var(--text-light);
  font-weight: 600;
}

.copyright {
  background-color: black;
  text-align: center;
  padding: 15px 0;
  font-size: 0.8em;
  color: #888;
}

/* Responsive Adjustments (Ejemplo bÃ¡sico) */
@media (max-width: 992px) {
  .content-split {
    flex-direction: column;
    text-align: center;
  }
  .content-split > div {
    margin-bottom: 20px;
  }
  .about-text h2 { text-align: center; }
  .more-details-section .container.content-split,
  .contact-section .container.content-split {
    flex-direction: column;
  }
  .details-text-right p { text-align: center; }
  .team-members { justify-content: space-around; }
  .member { flex-basis: calc(33.333% - 20px); }
  .contact-info h2, .contact-info h3 { text-align: center; }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }
  header nav { margin-top: 10px; }
  header nav ul li { margin: 0 10px; }
  .hero-content h1 { font-size: 2em; }
  .service-cards { flex-direction: column; }
  .service-card { flex-basis: 100%; margin-bottom: 20px; }
  .content-split-equal { flex-direction: column; }
  .content-split-equal > div { flex-basis: 100%; margin-bottom: 20px; }
  .member { flex-basis: calc(50% - 15px); }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-logo-nav .logo { margin-left: auto; margin-right: auto; }
  .client-logos-slider img { height: 40px; margin: 0 20px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.6em; }
  .btn { padding: 8px 18px; font-size: 0.8em;}
  .filter-btn { padding: 8px 15px; margin: 0 3px; font-size: 0.8em;}
  .member { flex-basis: 100%; }
  .client-logos-slider img { height: 35px; margin: 0 15px; }
}
/* BotÃ³n hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #555;
  border-radius: 2px;
}

/* Responsive header */
@media (max-width: 768px) {
  header nav {
    display: none;
    position: absolute;
    top: 65px;
    right: 20px;
    background: #fff;
    flex-direction: column;
    width: 200px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  header nav.active {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  header .container {
    flex-wrap: wrap;
  }

  header nav ul {
    flex-direction: column;
    gap: 10px;
  }

  header .btn-dark {
    display: none;
  }
}
@media (max-width: 768px) {
  .service-cards {
    grid-template-columns: 1fr;
  }

  .additional-services {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .additional-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .modal-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 90%;
    padding: 15px;
  }
  .modal-content img {
    margin-bottom: 15px;
  }
  .modal-content h2 {
    font-size: 18px;
  }
  .modal-content p {
    font-size: 14px;
  }
}

/* Estilos personalizados para Glide.js - Mantener estilo original */
/* Resetear estilos de Glide por defecto para mantener nuestro diseño */
.glide {
  position: relative;
}

.glide__track {
  overflow: hidden;
}

.glide__slides {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Estilos para el carrusel de equipo */
.team-carousel {
  position: relative;
  overflow: visible; 
  flex: 1 !important; /* Ocupa la mitad derecha del contenedor */
  min-width: 350px !important;
  max-width: 50% !important;
}

.team-carousel .glide__track {
  overflow: hidden;
}

.team-carousel .glide__slides {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.team-carousel .glide__slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin-right: 0;
}

.team-carousel .glide__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  padding: 10px;
  background: #6b6b6b;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-carousel .glide__arrow--left { 
  left: -20px; 
}

.team-carousel .glide__arrow--right { 
  right: -20px; 
}

.team-carousel .glide__arrow:hover {
  background: #555;
}

/* Estilos para el carrusel de clientes */
.client-carousel {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  width: 100%;
}

.client-carousel .glide__slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.client-carousel .glide__slide img {
  height: 40px;
  filter: grayscale(100%) brightness(200%);
  opacity: 0.8;
  object-fit: contain;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.client-carousel .glide__slide img:hover {
  filter: grayscale(0%) brightness(100%);
  opacity: 1;
}

.client-carousel .glide__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 20px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  z-index: 20;
}

.client-carousel .glide__arrow--left { 
  left: 0; 
}

.client-carousel .glide__arrow--right { 
  right: 0; 
}

.client-carousel .glide__arrow:hover { 
  background-color: rgba(255, 255, 255, 0.3); 
}

/* Ocultar bullets/dots de Glide por defecto */
.glide__bullets {
  display: none;
}

/* Asegurar que los miembros del equipo mantengan su estilo */
.team-carousel .member-card {
  flex-shrink: 0;
  margin-top: 10px;
  margin-bottom: 10px;
  background: white;
  text-align: center;
  cursor: pointer;
  padding-top: 10px;
  padding-bottom: 10px;
  width: 100%;
  max-width: 200px; /* Ancho máximo para las tarjetas */
}

.team-carousel .member-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
}

.team-carousel .member-card p .name {
  font-size: 15px;
  color: #777;
}

.team-carousel .member-card .name{
  font-size: 17px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: #777;
  line-height: 1.2;
}

/* Responsive para la sección del equipo */
@media (max-width: 992px) {
  .team-section .container.content-split {
    flex-direction: column !important;
    text-align: center !important;
  }
  
  .team-section .team-description {
    min-width: unset !important;
    max-width: 100% !important;
    margin-bottom: 30px;
  }
  
  .team-carousel {
    width: 100% !important;
    min-width: unset !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  .team-carousel .glide__arrow--left { 
    left: 10px; 
  }

  .team-carousel .glide__arrow--right { 
    right: 10px; 
  }
}