@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;
}

/* ======================= SERVICES HERO SECTION ======================= */
.services-hero {
  position: relative;
  width: 100%;
  height: 320px;
  background: url('/images/contact-hero.jpg') 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.6);
  z-index: 1;
}

.services-hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 0 2rem;
  max-width: 1200px;
  width: 100%;
}

.services-hero-content h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .services-hero {
    height: auto;
    padding: 4rem 1.5rem;
    text-align: center;
  }

  .services-hero-content {
    padding: 0;
  }

  .services-hero-content h1 {
    font-size: 2.25rem;
    line-height: 1.35;
  }
}


/* ========================== CONTACT SECTION ========================== */
.contact-section {
  background-color: #f9f7fc;
  padding: 4rem 1.5rem;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form {
  flex: 1 1 700px;
  min-width: 300px;
}

.contact-form p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-group {
  flex: 1 1 100%;
  margin-bottom: 1.25rem;
}

.form-row .form-group {
  flex: 1 1 48%;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Source Sans Pro', sans-serif;
}

textarea {
  resize: vertical;
  min-height: 200px;
}

.submit-btn {
  background-color: #a370f7;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 1rem;
}

.submit-btn:hover {
  background-color: #8b5eea;
}

.contact-info {
  flex: 1 1 300px;
  min-width: 260px;
  font-size: 1rem;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  padding-top: 2.2rem;
}

.contact-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #222;
}

a[href^="tel"],
a[href^="mailto"] {
  text-decoration: none;
  color: inherit;
  font-weight: 300;
  color: #000000;
}


a[href^="tel"]:hover,
a[href^="mailto"]:hover {
  color: #a370f7;
}


/* Íconos de Font Awesome si se usan */
.contact-info i {
  color: #a370f7;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-form,
  .contact-info {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 0;
  }

  .form-row {
    flex-direction: column;
  }

  .form-row .form-group {
    flex: 1 1 100%;
  }

  .contact-info {
    padding-top: 0;
  }
}


/* =============================================== 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;
}