:root {
  --blue: #1A4B7C;
  --dark-blue: #0F2D4A;
  --orange: #F38D21;
  --dark-gray: #333333;
  --gray: #555555;
  --light-gray: #F4F6F9;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  color: var(--gray);
  background: var(--white);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography & Spacing */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark-blue);
  line-height: 1.2;
  margin-top: 0;
}

section {
  padding: 100px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--blue);
  text-align: center;
  position: relative;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 50px;
  font-size: 18px;
  color: var(--gray);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons - Corporate Style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(243, 141, 33, 0.3);
}

.btn-primary:hover {
  background: #e07d15;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(243, 141, 33, 0.4);
}

.site-header .btn-primary {
  border-radius: 4px; /* Unify radius */
  box-shadow: none;
}

.btn-secondary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(26, 75, 124, 0.3);
}

.btn-secondary:hover {
  background: var(--dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(26, 75, 124, 0.4);
}

.btn-outline {
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
  font-weight: 700;
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

/* Topbar */
.site-topbar {
  background: #0F2D4A;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.site-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}

.site-topbar::after {
  content: '';
  display: block;
  height: 4px;
  background: #f07b29;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
}

.topbar-msg {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-link {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.topbar-link:hover {
  opacity: 0.8;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 1000;
  transition: box-shadow .2s ease, padding .2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.logo {
  display: inline-flex;
  align-items: center;
}
.logo img {
  display: block;
  height: 100%;
  position: absolute;
  
}
 
.site-header .logo {
  height: auto;
  max-height: 120px;
  display: flex;
  align-items: center;
}
.site-header .logo img {
  height: 45px;
  width: auto;
  position: static;
  transform: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav #menu-toggle {
  display: none;
  font-size: 28px;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--blue);
  cursor: pointer;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #494846;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  position: relative;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid transparent;
  color: #06487d;
  text-decoration: none;
  background: #f0f4f8;
  transition: all 0.3s ease;
}

.nav-social a:hover {
  background: #f07b29;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(240, 123, 41, 0.3);
}

.btn-lang {
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0;
  width: 36px;
  border-radius: 50%;
  background: #f0f4f8;
  border: 1px solid transparent;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-lang img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-lang:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 72, 125, 0.2);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--blue);
}

/* Removed duplicate btn styles */

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 800px; /* Taller hero for impact */
  width: 100%;
  overflow: hidden;
  padding-top: 110px;
}

.slider-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out; /* Slower transition */
}

.slide.active {
  opacity: 1;
}

.slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%); /* More professional gradient */
  pointer-events: none;
}

.content-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px; /* More breathing room */
  align-items: center;
  color: var(--white);
  padding: 100px 24px;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 20px;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 20px;
  margin: 0 0 32px;
  opacity: 0.9;
  font-weight: 400;
  max-width: 600px;
}

.hero-content .actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-50%) scale(1.1);
}

.slider-prev {
  left: 30px;
}

.slider-next {
  right: 30px;
}

.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.dot.active,
.dot:hover {
  background: var(--orange);
  transform: scale(1.2);
  border-color: rgba(0,0,0,0.1);
}

/* Form */
.form-card {
  background: rgba(255, 255, 255, 0.98);
  color: var(--dark-gray);
  border-radius: 6px; /* Cleaner radius */
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  padding: 32px;
  backdrop-filter: blur(10px);
  border-top: 4px solid var(--orange);
}

.form-card h3 {
  margin: 0 0 16px;
  color: var(--dark-blue);
  font-size: 24px;
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #f9fafb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 75, 124, 0.1);
  background: var(--white);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.alert {
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-weight: 600;
}

.alert-success {
  background: #e8f6ee;
  color: #106b35;
  border: 1px solid #c9e9d6;
}

.alert-error {
  background: #fdecec;
  color: #8a1f20;
  border: 1px solid #f6cfcf;
}

/* Sections */
section {
  padding: 70px 0;
}

.section-title {
  font-size: 30px;
  margin: 0 0 14px;
  color: var(--blue);
  text-align: center;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 26px;
}

/* Cards (Services Preview) */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 6px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
}

.card h4 {
  margin: 0 0 12px;
  color: var(--dark-blue);
  font-size: 20px;
  font-weight: 700;
}

.card p {
  margin: 0 0 20px;
  color: var(--gray);
  font-size: 15px;
  flex-grow: 1;
}

.card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.card-icon {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f9;
}

.card-icon i {
  font-size: 64px;
  color: var(--blue);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
}

/* Why Choose Us Section - Refinement */
.why-section {
  background-color: var(--light-gray);
  padding: 100px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-item {
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 6px;
  padding: 32px 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 3px solid transparent;
  height: 100%;
}

.why-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--orange);
}

.why-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  margin: 0 auto 16px;
  object-fit: cover;
}

.why-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(243, 141, 33, 0.1);
  transition: background 0.3s ease, transform 0.3s ease;
}

.why-item:hover .why-icon {
  background: var(--orange);
  transform: scale(1.1);
}

.why-icon i {
  font-size: 32px;
  color: var(--orange);
  transition: color 0.3s ease;
}

.why-item:hover .why-icon i {
  color: var(--white);
}

.why-item h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark-blue);
}

.why-item p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Trust Section */
.trust {
  background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url("https://images.unsplash.com/photo-1516259768685-9c84f8456003?q=80&w=1480&auto=format&fit=crop") center/cover no-repeat;
  padding: 100px 0;
}

.trust .trust-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.trust-content h2 {
  font-size: 42px;
  margin-bottom: 24px;
}

.trust-content p {
  font-size: 18px;
  margin-bottom: 32px;
}

.cta-final {
  background: var(--dark-blue);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.cta-final h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta-final .btn {
  margin-top: 24px;
  background: var(--white);
  color: var(--dark-blue);
}

.cta-final .btn:hover {
  background: var(--orange);
  color: var(--white);
}

/* Services page */
.services-hero {
  position: relative;
  height: 520px;
  background: linear-gradient(rgba(15, 45, 74, 0.7), rgba(15, 45, 74, 0.7)), url("/img/SliderServicios.jpg") top center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 110px;
}

.about-hero {
  position: relative;
  height: 520px;
  background: linear-gradient(rgba(15, 45, 74, 0.7), rgba(15, 45, 74, 0.7)), url("/img/nosotros/Nuestra-experiencia.jpg") top center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 110px;
}

.contact-hero {
  position: relative;
  height: 520px;
  background: linear-gradient(rgba(15, 45, 74, 0.7), rgba(15, 45, 74, 0.7)), url("/img/slider2.jpg") top center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 110px;
}

.services-hero-content h1 {
  font-size: 48px;
  margin-bottom: 10px;
  color: var(--white);
}

.services-hero-content p {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto;
}

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

.service-item {
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-item img {
  height: 240px;
  width: 100%;
  object-fit: cover;
}

.service-item .content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-item h4 {
  font-size: 22px;
  color: var(--dark-blue);
  margin-bottom: 12px;
  font-weight: 700;
}

.service-item p {
  margin-bottom: 20px;
  color: var(--gray);
  line-height: 1.6;
}

.service-item .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Footer - Corporate Dark */
.site-footer {
  background: #0a1f33; /* Very dark blue */
  color: #e2e8f0;
  border-top: none;
}

.site-footer .footer-topbar {
  background: #05101a;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 16px 0;
  font-size: 14px;
}

.site-footer .benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: center;
}

.site-footer .benefit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.site-footer .benefit i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(243, 141, 33, 0.1);
  color: var(--orange);
  border: 1px solid rgba(243, 141, 33, 0.2);
}

.site-footer .footer-top {
  padding: 80px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 24px;
  align-items: center;
}

.site-footer .logo img {
  height: 36px;
  max-height: none;
  width: auto;
  transform: none;
  margin-bottom: 10px; /* Added additional margin */
}

.site-footer .footer-title {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
}

.site-footer .footer-brand p {
  margin: 10px 0;
  opacity: 0.9;
}

.site-footer .footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer .footer-list a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 400;
  opacity: 1;
  transition: color 0.2s;
}

.site-footer .footer-list a:hover {
  color: var(--orange);
  transform: translateX(4px);
  display: inline-block;
}

.site-footer .contact-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer .social-links {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.site-footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  text-decoration: none;
  transition: all 0.2s ease;
}

.site-footer .social-links a:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.site-footer .footer-links {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

.site-footer .footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
}

.site-footer .footer-bottom {
  border-top: none;
  padding: 30px 0;
  background: #05101a;
  color: #94a3b8;
  font-size: 14px;
  text-align: center;
  opacity: 1;
}

/* Fix for index hero button */
.hero-content .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.hero-content .btn-outline:hover {
  background: var(--white);
  color: var(--dark-blue);
  border-color: var(--white);
}

/* WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  color: white;
}

.whatsapp-message {
  background: white;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 300px;
  position: relative;
  animation: slideInUp 0.5s ease-out;
  border-left: 4px solid #25D366;
}

.wa-avatar {
  width: 40px;
  height: 40px;
  background: var(--dark-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.wa-text {
  display: flex;
  flex-direction: column;
}

.wa-name {
  font-size: 13px;
  font-weight: 700;
  color: #888;
  line-height: 1.2;
}

.wa-cta {
  font-size: 14px;
  color: var(--dark-blue);
  font-weight: 600;
}

.wa-close {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: none;
  font-size: 16px;
  color: #999;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.wa-close:hover {
  color: #333;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  
  .hero-content h1 {
    font-size: 48px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }

  .header-inner {
    padding: 15px 0;
  }

  /* Navigation */
  .main-nav #menu-toggle {
    display: block;
    font-size: 24px;
    color: var(--dark-blue);
    cursor: pointer;
  }

  .nav-links {
    position: fixed;
    top: 80px; /* Adjust based on header height */
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: block;
    width: 100%;
  }

  .nav-social {
    display: none; /* Hide social icons in header on tablet/mobile to save space */
  }

  /* Hero Home */
  .hero-slider {
    height: auto;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .content-overlay {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
    padding-right: 0;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content .actions {
    justify-content: center;
  }

  .hero-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  /* Grids */
  .hero .content,
  .trust .trust-content,
  .cards,
  .why-grid,
  .service-grid,
  .site-footer .footer-top,
  .site-footer .benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .contact .content {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }

  /* Typography */
  h1, .section-title {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-content h1 {
    font-size: 36px;
  }
  
  .services-hero-content h1 {
    font-size: 36px;
  }

  .section-subtitle {
    font-size: 18px;
  }

  /* Hero Sections (Services, About, Contact) */
  .services-hero,
  .about-hero,
  .contact-hero {
    height: 400px; /* Reduce height on mobile */
    padding-top: 90px;
  }

  /* Grids to 1 column */
  .cards,
  .why-grid,
  .service-grid,
  .site-footer .footer-top,
  .site-footer .benefits {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero .content,
  .trust .trust-content {
    grid-template-columns: 1fr;
  }
  
  /* Footer adjustments */
  .site-footer .footer-top {
    text-align: center;
    gap: 40px;
  }

  .site-footer .footer-list,
  .site-footer .contact-list {
    justify-items: center; /* Center grid items */
  }

  .site-footer .contact-list li {
    justify-content: center;
  }

  .site-footer .social-links {
    justify-content: center;
  }

  /* Form padding */
  .form-card {
    padding: 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 20px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .services-hero-content h1 {
    font-size: 32px;
  }

  .btn {
    width: 100%; /* Full width buttons on mobile */
    text-align: center;
    margin-bottom: 10px;
  }
  
  .hero-content .actions {
    flex-direction: column;
    gap: 10px;
  }

  .services-hero,
  .about-hero,
  .contact-hero {
    height: 350px;
  }
}

/* FAQ Section Encapsulada - Aislada para evitar conflictos */
.faq-construccion {
  padding: 100px 0;
  background-color: var(--light-gray);
}

.faq-construccion .faq-accordion {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}

.faq-construccion .faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.faq-construccion .faq-item:last-child {
  border-bottom: none;
}

.faq-construccion .faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease;
}

.faq-construccion .faq-question:hover {
  background-color: #f8fafc;
}

.faq-construccion .faq-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark-blue);
  padding-right: 20px;
}

.faq-construccion .faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  transition: transform 0.3s ease;
}

.faq-construccion .faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-construccion .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background-color: #fcfcfc;
}

.faq-construccion .faq-content {
  padding: 0 30px 30px;
  color: var(--gray);
  line-height: 1.7;
  font-size: 0.95rem;
}
