/* 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','Helvetica Neue', Arial, sans-serif;
  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: var(--medium-gray);
  color: var(--text-light);
  padding: 8px 20px;
  border-radius: 25px;
  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: transparent;
  color: var(--text-light); /* Texto blanco sobre el video oscuro */
  border: 2px solid var(--text-light); /* Borde blanco para que se vea sobre el video */
  padding: 10px 25px; /* Asegúrate de que el padding sea el mismo */
  border-radius: 25px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-primary-outline:hover {
  background-color: var(--primary-color); /* Fondo azul al hacer hover */
  color: var(--text-light); /* Texto blanco */
  border-color: var(--primary-color); /* Borde del mismo color que el fondo */
}

/* 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 {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
  padding: 12px 30px;
  border-radius: 5px;
}
.btn-light-outline:hover {
  background-color: var(--text-light);
  color: var(--dark-gray);
}

.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: #fff;
  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: 35px;
}

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

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

header nav ul li a {
  color: var(--medium-gray);
  font-weight: 500;
  font-size: 0.9em;
}
header nav ul li a:hover {
  color: var(--primary-color);
}

/* 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;
  filter: grayscale(80%) brightness(0.7);
}

.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: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: 1px solid rgba(255,255,255,0.7);
}

.dot.active {
  background-color: white;
}
.dot:hover {
  background-color: rgba(255,255,255,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-size: 2.5em;
  margin-bottom: 30px;
  line-height: 1.3;
  font-weight: 600;
}

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

/* Services Section */
.services-section {
  padding: var(--section-padding);
  background-color: var(--light-gray);
}
.services-section .subtitle {
  text-align: center;
  font-size: 1.2em;
  color: var(--medium-gray);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.service-filters {
  text-align: center;
  margin-bottom: 40px;
}
.filter-btn {
  background-color: #fff;
  color: var(--medium-gray);
  border: 1px solid #ccc;
  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: var(--dark-gray);
  color: white;
  border-color: var(--dark-gray);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.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-width: 280px;
  display: flex;
  flex-direction: column;
}
.service-card h3 {
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 1.3em;
}
.service-card p {
  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: var(--card-bg-light); 
  text-align: center;
  padding: 20px;
  border-radius: 30px;
  font-weight: 500;
}

.service-card:nth-child(1) { background-color: var(--service-card1-bg); color: white;}
.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(2) { background-color: var(--service-card2-bg); color: white;}
.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(3) { background-color: var(--service-card3-bg); color: var(--dark-gray);}
.service-card:nth-child(3) h3 { color: var(--dark-gray); }
.service-card:nth-child(3) p { color: var(--medium-gray); }


.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('../ADH_Homepage_Final/assets/backgrounds/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 {
  color: var(--text-light);
  text-align: left;
  font-size: 1.6em;
  margin-bottom: 20px;
}
.details-text-right p {
  font-size: 0.95em;
  color: #e2e8f0;
  text-align: right;
}

/* Team Section (#capital-humano) */
.team-section {
  padding: var(--section-padding);
  background-color: #fff; 
}
.team-section .container.content-split {
  align-items: flex-start;
}
.team-description p {
  color: var(--medium-gray);
  font-size: 0.95em;
  margin-bottom: 20px;
}
.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;
}


.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.member-card {
  flex: 0 0 270px;
  margin: 10px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  cursor: pointer;
  padding: 10px;
}

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


.member-card p {
  font-size: 13px;
  color: #777;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  padding: 10px;
  background: #6b6b6b;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}
.nav-btn.prev { left: 0; }
.nav-btn.next { right: 0; }

/* 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: var(--light-gray);
}
.mission-card, .vision-card {
  padding: 30px;
  border-radius: 8px;
}
.mission-card {
  background-color: var(--card-bg-dark);
  color: var(--text-light);
}
.mission-card h3 { 
  color: var(--text-light);
  size: 200px; 
}
.mission-card p { color: #e0e0e0; }

.vision-card {
  background-color: var(--card-bg-light);
  color: var(--dark-gray);
}
.vision-card h3 { color: var(--dark-gray); }
.vision-card p { color: var(--medium-gray); }

.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('../ADH_Homepage_Final/assets/backgrounds/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.92);
  z-index: -1; 
}

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

.clients-section h2, .clients-section .subtitle {
  color: var(--text-light);
}
.clients-section .subtitle {
  margin-bottom: 50px;
}

.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 {
  position: relative;
  z-index: 2;
}
.contact-info h2, .contact-info h3 {
  text-align: left;
  color: var(--text-light);
}
.contact-info h2 { font-size: 1.8em; margin-bottom: 10px;}
.contact-info h3 { font-size: 1.4em; 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;
  margin-bottom: 15px;
  border: 1px solid #777;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  box-sizing: border-box;
  font-size: 0.9em;
}
.contact-form form input::placeholder,
.contact-form form textarea::placeholder {
  color: #ccc;
}
.contact-form form button {
  width: auto;
  padding: 12px 35px;
}

/* Footer */
footer {
  background-color: var(--dark-gray);
  color: #adb5bd;
  padding-top: 40px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  padding-bottom: 30px;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-logo-nav .logo {
  height: 35px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}
.footer-logo-nav nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-logo-nav nav ul li {
  margin-bottom: 8px;
}
.footer-logo-nav nav ul li a {
  color: #adb5bd;
  font-size: 0.85em;
}
.footer-logo-nav 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: #212529;
  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,
  .team-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: flex;
  }

  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;
  }
}