@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;700&display=swap');

/* ===== CHECKPOINT DE ESTABILIZACIÓN ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

/* Asegura que cada sección tenga su propio flujo, sin interferencias */
section {
    position: relative;
    z-index: 1;
    padding: 6rem 0rem;
    background-color: #fff;
    overflow: hidden;
}

/* Asegura que las imágenes dentro de secciones no desborden */
section img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Quita el overlay diagonal del hero temporalmente */
.hero::after {
    display: none;
}

/* =============================================== HEADER =============================================== */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');

body {
    font-family: 'Source Sans Pro', sans-serif;
}

.header {
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e0e0e0;
}

.container-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: relative;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Navbar - Versión escritorio */
#navbar {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

.nav-links a {
  padding: 0.75rem 1rem;
  color: #333;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: #a370f7;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Teléfono con icono */
.header-actions .phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
}

.header-actions .phone::before {
  content: "📞";
  font-size: 1rem;
  line-height: 1;
}

/* Botón Sign in */
.header-actions .btn {
  background: none;
  border: none;
  color: #333;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: background 0.2s ease;
}

.header-actions .btn:hover {
  background-color: #f0f0f0;
}

/* Botón Contact Us */
.header-actions .btn-primary {
  background-color: #a370f7;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease;
  display: inline-block;
}

.header-actions .btn-primary:hover {
  background-color: #8f5ae0;
}


/* ========== MENÚ HAMBURGUESA ========== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.75rem;
  z-index: 1001;
  color: #333;
  position: absolute;
  right: 1rem;
  top: 1.25rem;
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-toggle::before {
  content: "☰";
  display: block;
}

.menu-toggle.active::before {
  content: "✕";
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .container-header {
    flex-wrap: wrap;
    padding: 1rem;
    height: auto;
    position: relative;
    gap: 0;
  }
  
  .menu-toggle {
    display: block;
    order: 1;
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  #navbar {
    display: none;
    flex-direction: column;
    width: 100%;
    background: white;
    margin-top: 3rem;
    padding: 0;
    gap: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
  
  #navbar.active {
    display: flex;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  .nav-links li {
    border-bottom: 1px solid #f0f0f0;
    padding: 0 1.5rem;
  }
  
  .nav-links li:first-child {
    border-top: 1px solid #f0f0f0;
  }
  
  .nav-links a {
    width: 100%;
    padding: 1.25rem 0;
    color: #333;
    font-weight: 500;
    font-family: 'Source Sans Pro', sans-serif;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
    background: none;
    border-radius: 0;
    min-height: auto;
    align-items: flex-start;
  }
  
  .nav-links a:hover {
    color: #a370f7;
    background: none;
  }
  
  .header-actions {
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0 1.5rem;
    margin-top: 0;
    border-top: none;
  }
  
  .phone {
  font-weight: 400;
  color: #444;
  padding: 1.25rem 0;
  font-family: 'Source Sans Pro', sans-serif;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
}

  
  .btn {
  display: block;
  width: 100%;
  background-color: #fff;
  border: 1px solid #ddd;
  color: #333;
  font-weight: 600;
  text-align: center;
  padding: 1.25rem 0;
  font-family: 'Source Sans Pro', sans-serif;
  text-decoration: none;
  border-radius: 6px;
  margin: 1rem 0 0.5rem;
  transition: background 0.2s;
}

.btn:hover {
  background-color: #f9f9f9;
}

.btn-primary {
  display: block;
  width: 100%;
  background-color: #a370f7;
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 1.25rem 0;
  font-family: 'Source Sans Pro', sans-serif;
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 1rem;
  border: none;
  transition: background 0.2s;
}

.btn-primary:hover {
  background-color: #8f5ae0;
}

  
  /* Botón de cierre (X) */
  .menu-toggle.active::before {
    content: "✕";
    display: block;
  }
  
  .menu-toggle:not(.active)::before {
    content: "☰";
    display: block;
  }
  
  /* Eliminar efectos de active */
  .nav-links a:active, 
  .btn:active,
  .btn-primary:active {
    transform: none;
  }
}

body.menu-open::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 999;
}

/* ======================= OUR SERVICES HERO ======================= */
.services-hero {
  position: relative;
  width: 100%;
  height: 200px;
  background: url('/images/services-hero.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
}

.services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

.services-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: left;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
}

.services-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ======================= SERVICE CARD BLOCK ======================= */
.services-section {
  background-color: #f3f0f7;
  padding: 3rem 1.5rem;
  display: flex;
  justify-content: flex-start;
}

.service-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  max-width: 480px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.service-card img {
  width: 100%;
  height: auto;
  display: block;
}

.card-content {
  padding: 1.5rem;
}

.card-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1b1327;
  margin-bottom: 0.75rem;
}

.card-content hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 0.75rem 0 1rem;
}

.card-content p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

/* ======================= TESTIMONIALS CAROUSEL ======================= */
.testimonials-section {
  position: relative;
  padding: 6rem 1.5rem;
  background-color: #fff;
  overflow: hidden;
}

.carousel-background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.carousel-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/images/testimonials-bg.webp') center/cover no-repeat;
  z-index: 1;
}

.carousel-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}


/* Contenedor del carrusel */
.testimonial-carousel {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Tarjeta */
.testimonial-slide {
  flex: 1;
  display: none;
  justify-content: center;
}

.testimonial-slide.active {
  display: flex;
}

.testimonial-card {
  background-color: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  position: relative;
  max-width: 600px;
}

.quote-icon {
  font-size: 3.5rem;
  color: #a370f7;
  background: #a370f7;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  line-height: 42px;
  text-align: center;
  margin: 0 auto 1rem;
  font-weight: 800;
}

.testimonial-text {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info {
  text-align: left;
}

.author-info strong {
  display: block;
  font-weight: 600;
  color: #1b1327;
}

.author-info span {
  font-size: 0.9rem;
  color: #777;
}

/* Botones flecha */
.carousel-btn {
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s ease;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

/* Puntos */
.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 0.5rem;
  z-index: 2;
  position: relative;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  opacity: 0.1;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.dot.active {
  opacity: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

.author-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.author-info {
  text-align: center;
  font-size: 0.9rem;
  color: #333;
}

.quote-icon {
  position: absolute;
  top: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #a370f7;
  color: white;
  font-size: 1.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}





























/* ========================== PARTNERS SECTION ========================== */
.partners-section {
    position: relative;
    background-color: #ffffff;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
    text-align: center;
}

.partners-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-color: #f4f1f8;
    clip-path: polygon(0 0, 100% 100px, 100% 0, 0% 0);
    z-index: 1;
}

.partners-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.partners-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1b1327;
    margin-bottom: 1rem;
}

.partners-content p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 1rem;
}

.partners-link {
    display: inline-block;
    font-weight: 600;
    color: #6a28f3;
    text-decoration: none;
    margin-bottom: 3rem;
    transition: color 0.2s;
}

.partners-link:hover {
    color: #4e1fc2;
}

.partners-logos {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 0;      
    /*transform: translateX(-100px);*/
}


.partners-logos img {
    height: 100px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* =============================================== FOOTER =============================================== */
.footer {
    background-color: #1b1327;
    color: #ffffff;
    padding: 4rem 2rem 3rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 720px;
    margin: 0 auto;
}

.footer .social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.footer .social-links a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #1b1327;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer .social-links a:hover {
    background-color: #a370f7;
    color: #ffffff;
}

.footer-content {
    text-align: center;
    max-width: 720px;
}

.footer p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    color: #ccc;
}

.footer p a {
    color: #a370f7;
    text-decoration: none;
}

.footer p a:hover {
    text-decoration: underline;
}

.footer-contact {
    color: #a370f7;
}

.footer-disclaimer {
    text-align: justify;
    max-width: 960px;
    margin: 2rem auto 0;
    font-size: 1.3rem;
    color: #bbb;
    /*text-justify: inter-word;*/
    line-height: 1.6;
}