@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap');
/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #ffffff;
  font-size: 18px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(242, 242, 242, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  /* color: #4b5563; */
  color: #5d646e;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-link:active, 
.nav-link:hover,
.nav-link.active {
  /* color: #1f2937; */
  color: #111822;
}
 
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1f2937;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: #1f2937;
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #e5e7eb;
}

.nav-mobile.active {
  display: flex;
}
.center { margin: 0 auto; }
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  font-weight: 500;
  text-decoration: none;
 /*  border-radius: 0.5rem; */
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;

  
  z-index: 25;  /* <CHANGE> Highest z-index for button */
  pointer-events: auto;
  position: relative;
}

.btn-primary {
  background-color: #1f2937;
  color: #ffffff;
}
.btn-primary:hover {
  background-color: #374151;
}

.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  pointer-events: auto;
} 
.btn-outline:hover {
  background-color: #ffffff;
  color: #1f2937;
  pointer-events: auto;
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}
.btn-outline-white:hover {
  background-color: #ffffff;
  color: #1f2937;
}

.btn-white {
  background-color: #ffffff;
  color: #1f2937;
}
.btn-white:hover {
  background-color: #f3f4f6;
  color: #1f2937;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

/* Hero Slideshow */
.hero-slideshow {
  position: relative;
  height: 600px;
  overflow: hidden;
  margin-top: 5rem;
 
 z-index: 2;  /* <CHANGE> Lower z-index than content */
  pointer-events: none;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  /* pointer-events: none; */
}

.slide.active {
  opacity: 1;
  
  pointer-events: auto;  /* <CHANGE> Enable only on active slide */
  z-index: 5;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.slide-content {
  position: relative;
  height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 40rem;
  color: #ffffff;
}

.slide-content h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.slide-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  
  z-index: 20;  /* <CHANGE> High z-index for content */
  pointer-events: auto;
}

.slide-arrow:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.slide-arrow-left {
  left: 1rem;
}

.slide-arrow-right {
  right: 1rem;
}

.slide-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
 
 z-index: 20;  /* <CHANGE> High z-index for content */
  pointer-events: auto;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #ffffff;
}

/* Sections */
.section {
  padding: 5rem 0;
}
.pd { margin: 0 1rem; padding:0 0.7rem; }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.25rem;
  color: #6b7280;
}

.page-hero {
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.page-hero-content {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.page-hero-content h3 {
  font-size: 3.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.page-hero-content p {
  font-size: 1.25rem;
  color: #6b7280;
  line-height: 1.75;
}

/* Backgrounds */
.bg-white {
  background-image: url("imgs/tx.jpg");
  background-repeat: repeat;
}

.bg-gray {
  background-color: #f9fafb;
}

.bg-dark {
  background-color: #1f2937;
}

.text-white {
  color: #ffffff;
}

.text-center {
  text-align: center;
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

.align-center {
  align-items: center;
}

/* Cards */
.card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card p {
  color: #6b7280;
  line-height: 1.75;
}

.service-card ul {
  margin-top: 1.5rem;
}

/* Icons */
.icon-large {
  width: 3rem;
  height: 3rem;
  color: #1f2937;
  margin-bottom: 1rem;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: #1f2937;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

/* Typography */
h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.75;
}

p {
  margin-bottom: 1.5rem;
}

/* Images */
.rounded-img {
  /* border-radius: 0.5rem; */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: auto;
}

/* Content Width */
.content-narrow {
  max-width: 56rem;
  margin: 0 auto;
}

/* Numbered List */
.numbered-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.numbered-item {
  display: flex;
  gap: 1.5rem;
}

.number-circle {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: #1f2937;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.number-circle.large {
  width: 4rem;
  height: 4rem;
  font-size: 1.5rem;
}

/* Service List */
.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.service-list li::before {
  content: "•";
  color: #1f2937;
  font-weight: 600;
  margin-top: 0.25rem;
}

.btn-whatsapp {
  display:block;
  width:50px;
  height:50px;
  color: #fff;
  position: fixed;
  right:7px;
  bottom:20px;
  border-radius:50%;
  line-height:50px;
  text-align:center;
  z-index:999;
}
/* Validacion */
.contact-form  #sendmessage {
  color: #14469d;
  border: 1px solid #14469d;
  display: none;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  margin-bottom: 15px;
}

.contact-form #errormessage {
  color: red;
  display: none;
  border: 1px solid red;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  margin-bottom: 15px;
}

.contact-form #sendmessage.show, .contact-form #errormessage.show, .contact-form .show {
  display: block;
}

.form .validation {
  color: red;
  display: none;
  margin: 0 0 20px;
  font-weight: 400;
  font-size: 13px;
}
/* Fin Validacion */

/* Forms */
.form-card {
  padding: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-top:15px;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1f2937;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Contact Info */
.contact-link {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-link:hover {
  color: #1f2937;
}

.contact-text {
  color: #6b7280;
  margin: 0;
}

/* Service Areas */
.service-areas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.area-tag {
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  color: #4b5563;
}

/* Footer */
.footer {
  background-color: #1f2937;
  color: #ffffff;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-bottom p a {
	color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-bottom p a:hover, .footer-bottom p a:visited, .footer-bottom p a:active  {
	color: #FFF;
}
.footer p {
  color: #9ca3af;
  line-height: 1.75;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #ffffff;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #9ca3af;
}
.contact-item a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
  }
.contact-item a:hover {
  color: #ffffff;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-color);
}

/* Added styling for social media links */
.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--accent-color);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
}

/* Responsive Design */
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }

  .hero-slideshow {
    height: 880px;
    /* height: 700px; */
  }

  .slide-content {
    height: 700px;
  }

  .slide-content h1 {
    font-size: 3.75rem;
  }

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

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

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

  .btn-group {
    flex-direction: row;
  }

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

  .service-areas {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
