html {
  scroll-behavior: smooth;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: poppins, sans-serif;
line-height: 1.6;
}

/* Header styles */
header {
background-color: white;
padding: 20px 0;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.containerheader {
width: 90%;
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}

.logo {
width: 230px;
height: auto;
}

.nav-menu {
display: flex;
list-style: none;
align-items: center;
}

.nav-link {
text-decoration: none;
color: #333;
font-size: 18px;
margin: 0 20px;
padding: 5px 0;
position: relative;
}

.nav-link.active {
color: #759934;
}

.nav-link.active::after {
content: '';
position: absolute;
bottom: -10px;
left: 0;
border-radius: 20px;
width: 100%;
height: 3px;
background-color: #759934;
}

.contact-btn {
background-color: #415223;
color: white;
text-decoration: none;
padding: 15px 30px;
border-radius: 15px;
font-size: 18px;
font-weight: 500;
margin-left: 20px;
}

/* Hero section styles - CORREGIDO CON RUTA CORRECTA */
.hero {
height: 778px;
background: linear-gradient(-270deg, #000 11.13%, rgba(0, 0, 0, 0.00) 100%), 
url('../images/seguridad-scaled.jpg') lightgray 50% / cover no-repeat;
background-position: center;
background-size: cover;
position: relative;
z-index: 1;
display: flex;
align-items: center;
}

/* Fallback si la imagen no existe - usar ruta del tema */
.hero {
background: linear-gradient(-270deg, #000 11.13%, rgba(0, 0, 0, 0.00) 100%), 
url('../../assets/images/seguridad-scaled.jpg') lightgray 50% / cover no-repeat,
url('../assets/images/seguridad-scaled.jpg') lightgray 50% / cover no-repeat;
background-position: center;
background-size: cover;
}

.hero-content {
width: 90%;
max-width: 1200px;
margin: 0 auto;
padding: 0;
}

.hero-title {
color: white;
font-size: 64px;
font-weight: 700;
line-height: 1;
margin-bottom: 0;
}

.hero-subtitle {
font-size: 64px;
font-weight: 700;
color: #759934;
line-height: 1.1;
margin-bottom: 30px;
}

.hero-description {
font-size: 18px;
max-width: 580px;
margin-bottom: 40px;
line-height: 1.7;
color: white;
}

.hero-buttons {
display: flex;
gap: 20px;
}

.btn {
display: inline-flex;
align-items: center;
padding: 16px 30px;
border-radius: 15px;
font-size: 18px;
font-weight: 500;
text-decoration: none;
transition: all 0.3s ease;
}

.btn-primary {
background-color: #759934;
color: white;
}

.btn-primary:hover {
background-color: white;
color: #333;
}

.btn-secondary {
background-color: white;
color: #333;
}

.btn-secondary:hover{
  background-color:#759934;
  color: white ;
  }

.material-symbols-outlined {
margin-left: 5px;
}
.container { /* stats */
width: 90%;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

/* Stats styles */
.stats-section {
padding: 20px 0;
background-color:#191A19;
}

.stats-container {
display: flex;
gap: 80px;
}

.stat-item {
display: flex;
align-items: center;
}

.stat-number {
font-size: 42px;
font-weight: bold;
color: #759934;
margin-right: 15px;
}

.stat-text {
font-size: 16px;
font-weight: 300;
display: flex;
flex-direction: column;
line-height: 1;
color: white;

}

/* Experience section styles */
.experience-section {
padding: 50px 0 0;
background-color: #191A19;
}

.experience-container {
display: flex;
align-items: flex-start;
gap: 50px;
}

.team-image {
flex: 1;
max-width: 50%;
padding: 0; 
margin: 0
}

.team-image img {
width: 100%;
display: block;
}

.experience-content {
flex: 1;
flex: 1;
padding-top: 0;
margin-top: 0;
}

.years-subtitle {
font-size: 60px;
font-weight: 700;
color: #759934;
margin: 0;
padding: 0; 
line-height: 1; 
display: block;
margin-top: 0;
}

.years-title {
font-size: 64px;
font-weight: 700;
color: white;
margin: 0;
padding: 0;
line-height: 1; 
display: block;
margin-top: -5px;
margin-bottom: 30px;
}

.experience-description {
font-size: 18px;
line-height: normal;
font-weight: 300;
color: white;
}
/* Features box styles */
.features-box-container {
position: absolute;
bottom: -360px;
right: 120px;
z-index: 10;
}

.features-box {
width: 500px;
background-color: #759934;
border-radius: 20px;
padding: 30px;
color: white;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
margin-right: 30px;
}

.feature-item {
display: flex;
align-items: center;
margin-bottom: 10px;
font-size: 18px;
}

.feature-item:last-child {
margin-bottom: 0;
}

.feature-item material-symbols-outlined {
margin-right: 15px;
margin-left: 20px;
background-color: white;
width: 60px;
height: 60px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
flex-shrink: 0;
}

/* Timeline step line */

section.timeline-section {
  background-color: #759934;
  padding: 40px 0px;
  width: auto;
  box-sizing: border-box;
}

.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 73px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: white;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200%;
  position: relative;
  z-index: 2;
}

.step-title {
  color: white;
  line-height: 1.2;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: normal;
  display: flex;
  align-items: center;
  text-align: center;
}

.step-number {
  color: white;
  font-size: 14px;
  margin-top: 10px;
}

.marker {
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  border: 4px solid #759934;
  box-shadow: 0 0 0 2px white;
}

/* Projects Section */

section.projects-section {
  background-color: #759934;
  padding: 30px 20px;
  color: #333;
}

.container5 {
  max-width: 1200px;
  margin: 0 auto;
}

h2.section-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: #222;
  font-weight: 600;
}

.projects-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.project-card {
  flex: 1;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  height: 500px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
}

.project-title {
  font-size: 22px;
  margin: 0 0 0px 0;
  font-weight: 600;
}

.project-description {
  font-size: 16px;
  margin: 0;
  opacity: 0.9;
}

.explore-projects {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.explore-link {
  display: flex;
  align-items: center;
  color: #333;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.explore-link:hover {
  color: #ffffff;
}

.circle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #415223;
  color: white;
  margin-left: 10px;
}

/* testimonials styles */
.testimonials-section {
padding: 80px 20px;
background-color: var(--white);
text-align: center;
}

.testimonials-container {
max-width: 1200px;
margin: 0 auto;
}

.testimonials-header {
margin-bottom: 20px;
}

.testimonials-header h2 {
font-size: 36px;
color: #759934;
margin: 0;
}

.testimonials-slider {
position: relative;
overflow: hidden;
margin-bottom: 30px;
}

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

.testimonial {
flex: 0 0 100%;
padding: 0 50px;
box-sizing: border-box;
opacity: 0;
transition: opacity 0.3s ease;
display: none;
}

.testimonial.active {
opacity: 1;
display: block;
}

.testimonial-content {
max-width: 800px;
margin: 0 auto;
}

.testimonial-text {
font-size: 18px;
line-height: 1.6;
margin-bottom: 30px;
}

.testimonial-author {
font-weight: bold;
font-size: 20px;
margin-bottom: 5px;
}

.testimonial-position {
color: #666;
font-size: 16px;
}

.testimonials-nav {
display: flex;
justify-content: center;
align-items: center;
margin-top: 40px;
}

.nav-btn {
background: none;
border: none;
cursor: pointer;
font-size: 16px;
display: flex;
align-items: center;
padding: 10px;
color: var(--secondary-color);
}

.nav-dots {
display: flex;
margin: 0 20px;
}

.nav-dot {
width: 40px;
height: 40px;
border-radius: 50%;
margin: 0 5px;
cursor: pointer;
overflow: hidden;
border: 2px solid transparent;
transition: all 0.3s ease;
}

.nav-dot img {
width: 100%;
height: 100%;
object-fit: cover;
}

.nav-dot.active {
border-color: white;
transform: scale(1.1);
box-shadow: 0 0 0 2px white, 0 0 0 4px white;
}

.prev-icon, .next-icon {
width: 20px;
height: 20px;
}

/* Ajustes adicionales para mejorar la funcionalidad del slider */
.testimonials-slider {
  min-height: 100px;
}

.testimonial {
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(20px);
}

.testimonial.active {
  transform: translateY(0);
}

.nav-btn {
  transition: all 0.3s ease;
}

.nav-btn:hover {
  color: #759934;
  transform: scale(1.05);
}

.nav-dot.active {
  border-color: #759934;
  transform: scale(1.1);
  box-shadow: 0 0 0 2px white, 0 0 0 4px #759934;
}

.nav-dot {
  opacity: 0.7;
  transition: all 0.3s ease;
}

.nav-dot:hover {
  opacity: 1;
}

.nav-dot.active {
  opacity: 1;
}

.prev-icon, .next-icon {
  transition: transform 0.3s ease;
}

.nav-btn:hover .prev-icon {
  transform: translateX(-3px);
}

.nav-btn:hover .next-icon {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .testimonial {
      padding: 0 20px;
  }
  
  .testimonial-text {
      font-size: 16px;
  }
  
  .nav-dot {
      width: 30px;
      height: 30px;
  }
}

/* contact form styles - CORREGIDO CON RUTA CORRECTA */
.contact-section {
position: relative;
padding: 40px 40px;
background: linear-gradient(180deg, #FFF 0%, rgba(0, 0, 0, 0.00) 152.79%), 
url('../images/pexels-asphotograpy-224924.jpg');
background-size: cover;
background-position: center;
}

/* Fallback para diferentes rutas de imagen */
.contact-section {
background: linear-gradient(180deg, #FFF 0%, rgba(0, 0, 0, 0.00) 152.79%), 
url('../../assets/images/pexels-asphotograpy-224924.jpg'),
url('../assets/images/pexels-asphotograpy-224924.jpg');
background-size: cover;
background-position: center;
}

.contact-container {
max-width: 1200px;
margin: 0 auto;
}

.contact-header {
text-align: center;
margin-bottom: 50px;
}

.contact-header h2 {
font-size: 42px;
margin: 0 0 30px 0;
color: #333;
font-weight: 600;
}

.selling-points {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 30px;
margin-bottom: 40px;
}

.selling-point {
display: flex;
align-items: center;
font-size: 18px;
font-weight: 500;
}

.selling-point material-symbols-outlined {
width: 24px;
height: 24px;
margin-right: 10px;;
background-color: #1a1a1a;
display: flex;
align-items: center;
justify-content: center;
color: white;
}

.contact-content {
display: flex;
flex-wrap: wrap;
gap: 30px;
}

.contact-form-container {
flex: 1;
min-width: 300px;
background-color: #759934;
border-radius: 15px;
padding: 30px;
color: white;
box-sizing: border-box;
}

.contact-info-container {
min-width: 200px;
background-color: #759934;
border-radius: 15px;
padding: 30px;
color: white;
box-sizing: border-box;
}

.contact-form-container h3, .contact-info-container h3 {
font-size: 24px;
margin-top: 0;
margin-bottom: 20px;
font-weight: 600;
}

.contact-form-description {
margin-bottom: 25px;
line-height: 1.5;
}

.form-row {
display: flex;
gap: 15px;
margin-bottom: 15px;
}

.form-group {
flex: 1;
margin-bottom: 15px;
}

input, select, textarea {
width: 100%;
padding: 15px;
border: none;
border-radius: 10px;
font-size: 16px;
box-sizing: border-box;
background-color: white;
}

textarea {
height: 120px;
resize: vertical;
}

.submit-btn {
width: 100%;
padding: 15px;
border: none;
border-radius: 10px;
background-color: #222;
color: white;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s ease;
text-align: center;
text-decoration: none;
display: inline-block;
}

.contact-btn2 {
width: 100%;
padding: 14px;
border: none;
border-radius: 10px;
background-color: #222;
color: white;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s ease;
text-align: center;
text-decoration: none;
display: inline-block;
}

.submit-btn:hover, .contact-btn2:hover {
background-color: #415223;
}

.info-block {
margin-bottom: 25px;
}

.info-block h4 {
font-size: 18px;
margin-bottom: 10px;
font-weight: 600;
}

.info-block p {
margin: 5px 0;
line-height: 0.9;
}

/* For smaller screens */
@media (max-width: 768px) {
.contact-content {
flex-direction: column;
}

.form-row {
flex-direction: column;
gap: 10px;
}

.selling-points {
flex-direction: column;
align-items: center;
gap: 15px;
}
}

/* placeholder styles */
::placeholder {
color: #b3b3b3;
font-family: poppins;
font-size: 14px;
opacity: 1;
}

:-ms-input-placeholder {
color: #b3b3b3;
font-family: poppins;
font-size: 14px;
}

::-ms-input-placeholder {
color: #b3b3b3;
font-family: poppins;
font-size: 14px;
}

textarea::placeholder {
font-weight: 400;
}

select:invalid {
color: #b3b3b3;
font-style: italic;
font-size: 14px;
}

  /* Popup overlay */
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup container */
.popup-container {
    background-color: #759934;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    padding: 40px;
}

.popup-overlay.active .popup-container {
    transform: translateY(0);
    opacity: 1;
}

/* Close button */
.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #ffffff;
    line-height: 1;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: #e0e0e0;
}

/* Popup content */
.popup-content {
    color: #ffffff;
    text-align: center;
}

.popup-content h2 {
    margin: 0 0 20px 0;
    font-size: 36px;
    font-weight: bold;
}

.popup-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Form styles */
.contact-form {
    margin-top: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.contact-form input,
.contact-form select {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #ffffff;
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

/* Submit button */
.submit-btnpopup {
    background-color: #222222;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.submit-btnpopup:hover {
    background-color: #000000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .popup-container {
        padding: 30px 20px;
    }
    
    .popup-content h2 {
        font-size: 28px;
    }
    
    .popup-content p {
        font-size: 16px;
    }
}

/* Sandwich Menu Styles */

/* Menu Toggle Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 100;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 98;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  visibility: visible;
  opacity: 1;
}

/* Responsive Styles */
@media (max-width: 991px) {
  /* Show hamburger menu */
  .menu-toggle {
    display: flex;
  }
  
  /* Hide features box on small screens */
  .features-box-container {
    display: none;
  }
  
  /* Header adjustments */
  .containerheader {
    justify-content: space-between;
    align-items: center;
  }
  
  /* Mobile navigation menu */
  .nav-menu {
    position: fixed;
    top: 0;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px 30px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 99;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    margin: 10px 0;
    width: 100%;
    padding: px 0;
  }
  
  .contact-btn {
    margin: 20px 0 0 0;
    width: 100%;
    text-align: center;
  }
  
  /* Hamburger to X animation */
  .menu-toggle.active span:first-child {
    transform: translateY(9px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:last-child {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* Additional responsive adjustments */
@media (max-width: 768px) {
  /* Hero section */
  .hero {
    height: auto;
    padding: 60px 0;
  }
  
  .hero-title, .hero-subtitle {
    font-size: 36px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  /* Stats section */
  .stats-container {
    align-items: center;
    flex-direction: column;
    gap: 30px;
  }
  
  /* Experience section */
  .experience-container {
    flex-direction: column;
    gap: 30px;
  }
  
  .team-image {
    max-width: 100%;
  }
  
  .years-subtitle, .years-title {
    font-size: 36px;
  }
  
  /* Timeline section */
  .timeline {
    flex-direction: column;
    gap: 30px;
  }
  
  .timeline::before {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .step {
    width: 100%;
  }
  
  /* Projects section */
  .projects-grid {
    flex-direction: column;
  }
  
  .project-card {
    height: 350px;
  }
}

/* Small screens (up to 576px) */
@media (max-width: 576px) {
  .logo {
    width: 180px;
  }
  
  .nav-menu {
    width: 85%;
  }
  
  /* Further reduce text sizes */
  .hero-title, .hero-subtitle {
    font-size: 32px;
  }
  
  .section-title {
    font-size: 36px;
  }
}

/* Responsive Media Queries for All Standard Sizes */

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
  /* Scale up containers */
  .containerheader, 
  .container, 
  .hero-content, 
  .contact-container, 
  .testimonials-container,
  .container5,
  .timeline {
    max-width: 1320px;
  }
  
  /* Enhance hero section */
  .hero {
    height: 850px;
  }
  
  .hero-title, 
  .hero-subtitle {
    font-size: 72px;
  }
  
  .hero-description {
    font-size: 20px;
    max-width: 650px;
  }
  
  /* Scale features box */
  .features-box-container {
    bottom: -100px;
    right: 120px;
  }

  .features-box {
    width: 500px;
  }
  
  /* Enhance stats */
  .stat-number {
    font-size: 48px;
  }
  
  .stat-text {
    font-size: 18px;
  }
  
  /* Scale experience section text */
  .years-subtitle {
    font-size: 66px;
  }
  
  .years-title {
    font-size: 70px;
  }
  
  .experience-description {
    font-size: 20px;
  }
  
  /* Larger projects section */
  .project-card {
    height: 550px;
  }
  
  /* Footer enhancements */
  .footer-container {
    max-width: 1300px;
  }
}

/* Desktop (1200px to 1399px) - Your baseline design */
@media (min-width: 1200px) and (max-width: 1399px) {
  .containerheader, 
  .container, 
  .hero-content, 
  .contact-container, 
  .testimonials-container,
  .container5,
  .timeline {
    max-width: 1140px;
  }
}

/* Tablet Landscape / Small Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .containerheader, 
  .container, 
  .hero-content, 
  .contact-container, 
  .testimonials-container,
  .container5,
  .timeline {
    max-width: 960px;
  }
  
  /* Adjust hero section */
  .hero-title, 
  .hero-subtitle {
    font-size: 56px;
  }
  
  .hero-description {
    font-size: 17px;
    max-width: 520px;
  }
  
  /* Features box adjustments */
  .features-box-container {
    right: 60px;
    bottom: -340px;
  }
  
  .features-box {
    width: 450px;
    padding: 25px;
  }
  
  .feature-item {
    font-size: 16px;
  }
  
  /* Experience section */
  .years-subtitle {
    font-size: 54px;
  }
  
  .years-title {
    font-size: 58px;
  }
  
  /* Projects section */
  .project-card {
    height: 450px;
  }
  
  /* Navigation spacing */
  .nav-link {
    margin: 0 15px;
    font-size: 16px;
  }
  
  .contact-btn {
    padding: 12px 20px;
    font-size: 16px;
  }
}

/* Tablet Portrait (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  /* Enable sandwich menu */
  .menu-toggle {
    display: flex;
  }
  
  /* Container widths */
  .containerheader, 
  .container, 
  .hero-content, 
  .contact-container, 
  .testimonials-container,
  .container5,
  .timeline {
    max-width: 720px;
  }
  
  /* Nav menu (slide-in menu) */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px 30px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 99;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    margin: 10px 0;
    width: 100%;
    padding: 10px 0;
  }
  
  .contact-btn {
    margin: 20px 0 0 0;
    width: 100%;
    text-align: center;
  }
  
  /* Features box - make smaller */
  .features-box-container {
    bottom: -320px;
    right: 40px;
  }
  
  .features-box {
    width: 380px;
    padding: 20px;
    margin-right: 0;
  }
  
  .feature-item {
    font-size: 15px;
    margin-bottom: 8px;
  }
  
  /* Hero section adjustments */
  .hero {
    height: auto;
    min-height: 600px;
    padding: 80px 0;
  }
  
  .hero-title, 
  .hero-subtitle {
    font-size: 50px;
  }
  
  /* Experience section */
  .experience-container {
    gap: 30px;
    padding-bottom: 40px;
  }
  
  .years-subtitle, 
  .years-title {
    font-size: 46px;
  }
  
  .experience-description {
    font-size: 16px;
  }
  
  /* Timeline section */
  .step-title {
    font-size: 16px;
  }
  
  /* Projects section */
  .projects-grid {
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .project-card {
    flex: 0 0 calc(50% - 10px);
    height: 350px;
  }
  
  /* Third card in mobile view */
  .project-card:nth-child(3) {
    flex: 0 0 100%;
  }
  
  .section-title {
    font-size: 40px;
  }
}

/* Mobile Large (577px to 767px) */
@media (min-width: 577px) and (max-width: 767px) {
  /* Container widths */
  .containerheader, 
  .container, 
  .hero-content, 
  .contact-container, 
  .testimonials-container,
  .container5,
  .timeline {
    max-width: 540px;
    width: 95%;
  }
  
  /* Menu toggle button (hamburger) */
  .menu-toggle {
    display: flex;
  }
  
  /* Hide features box */
  .features-box-container {
    display: none;
  }
  
  /* Header adjustments */
  .containerheader {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  /* Hero section */
  .hero {
    height: auto;
    padding: 60px 0;
  }
  
  .hero-title, 
  .hero-subtitle {
    font-size: 42px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Stats section */
  .stats-container {
    flex-direction: column;
    gap: 30px;
  }
  
  /* Experience section */
  .experience-container {
    flex-direction: column;
    gap: 30px;
    padding-bottom: 40px;
  }
  
  .team-image {
    max-width: 100%;
  }
  
  .years-subtitle, 
  .years-title {
    font-size: 40px;
  }
  
  /* Timeline section */
  .timeline {
    display: none;
  }
  
  /* Projects section */
  .projects-grid {
    flex-direction: column;
  }
  
  .project-card {
    height: 300px;
  }
  
  /* Contact section */
  .selling-points {
    flex-direction: column;
    align-items: center;
  }
  
  /* Footer adjustments */
  .footer {
    padding: 40px 20px 10px;
  }
  
  .footer-top {
    flex-direction: column;
  }
  
  .footer-column {
    min-width: 100%;
  }
}

/* Mobile Small (up to 576px) */
@media (max-width: 576px) {
  /* Container widths */
  .containerheader, 
  .container, 
  .hero-content, 
  .contact-container, 
  .testimonials-container,
  .container5,
  .timeline {
    width: 95%;
  }
  
  /* Menu toggle (hamburger) */
  .menu-toggle {
    display: flex;
  }
  
  /* Hide features box */
  .features-box-container {
    display: none;
  }
  
  /* Logo size */
  .logo {
    width: 180px;
  }
  
  /* Navigation menu */
  .nav-menu {
    width: 85%;
  }
  
  /* Hero section */
  .hero {
    height: auto;
    padding: 50px 0;
  }
  
  .hero-title, 
  .hero-subtitle {
    font-size: 32px;
  }
  
  .hero-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 16px;
  }
  
  /* Stats section */
  .stats-container {
    align-items: center;
    flex-direction: column;
    gap: 25px;
  }
  
  .stat-number {
    font-size: 36px;
  }
  
  /* Experience section */
  .experience-container {
    flex-direction: column;
    gap: 20px;
    padding-bottom: 40px;
  }
  
  .years-subtitle, 
  .years-title {
    font-size: 32px;
  }
  
  .experience-description {
    font-size: 15px;
  }
  
  /* Timeline section */
  .timeline {
    display: none;
  }
  
  /* Projects section */
  .section-title {
    font-size: 32px;
    text-align: center;
  }
  
  .projects-grid {
    flex-direction: column;
    gap: 15px;
  }
  
  .project-card {
    height: 250px;
  }
  
  .project-title {
    font-size: 18px;
  }
  
  .project-description {
    font-size: 14px;
  }
  
  /* Testimonials section */
  .testimonials-header h2 {
    font-size: 28px;
  }
  
  .testimonial-text {
    font-size: 15px;
  }
  
  .testimonial-author {
    font-size: 18px;
  }
  
  /* Contact section */
  .contact-section {
    padding: 30px 15px;
  }
  
  .contact-header h2 {
    font-size: 28px;
  }
  
  .selling-points {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .selling-point {
    font-size: 15px;
  }
  
  .contact-form-container,
  .contact-info-container {
    padding: 20px;
  }
  
  /* Footer adjustments */
  .footer {
    padding: 30px 15px 10px;
  }
  
  .footer-top {
    flex-direction: column;
  }
  
  .footer-column {
    min-width: 100%;
  }
  
  .footer-logo {
    max-width: 160px;
  }
  
  .footer-column h3 {
    font-size: 16px;
  }
  
  .footer-column p, 
  .footer-column a {
    font-size: 13px;
  }
  
  /* Popup styles */
  .popup-container {
    padding: 25px 15px;
  }
  
  .popup-content h2 {
    font-size: 24px;
  }
  
  .popup-content p {
    font-size: 14px;
  }
}

/* Improved spacing for mobile menu navigation links */
@media (max-width: 991px) {
  .nav-menu li {
    margin: 0px 0;
    width: 80%;
  }
  
  .nav-link {
    padding: 0px 0;
    margin: 0px 0;
    font-size: 22px;
    display: block;
  }
  
  .contact-btn {
    margin-top: 0px;
    padding: 16px 20px;
    font-size: 20px;
  }
  
  /* Vertical spacing between menu items */
  .nav-menu {
    padding: 80px 0px 0px;
    gap: 40px;
    align-items: center;
  }
}

/* 
Mobile Menu Fixes - Add to main CSS files
Estas correcciones arreglan el menú móvil en todas las páginas
*/

/* Header Base Styles */
.site-header {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1000;
}

.containerheader {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 230px;
    height: auto;
}

.main-navigation {
    position: relative;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    margin: 0 20px;
    padding: 5px 0;
    position: relative;
    display: block;
    transition: color 0.3s ease;
}

.nav-menu a.active {
    color: #759934;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    border-radius: 20px;
    width: 100%;
    height: 3px;
    background-color: #759934;
}

.nav-menu a.contact-btn {
    background-color: #415223;
    color: white;
    padding: 15px 30px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 500;
    margin-left: 20px;
    transition: background-color 0.3s ease;
}

.nav-menu a.contact-btn:hover {
    background-color: #759934;
}

/* Menu Toggle Button (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    background: none;
    border: none;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Animation */
.menu-toggle.active span:first-child {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:last-child {
    transform: translateY(-9px) rotate(-45deg);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 998;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.menu-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Mobile Breakpoint */
@media (max-width: 991px) {
    /* Show hamburger menu */
    .menu-toggle {
        display: flex;
    }
    
    /* Mobile navigation menu */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 100px 30px 40px;
        box-shadow: -4px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        gap: 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 12px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        margin: 0;
        padding: 15px 20px;
        font-size: 20px;
        display: block;
        width: 100%;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        background-color: rgba(117, 153, 52, 0.1);
        color: #759934;
    }
    
    .nav-menu a.active::after {
        display: none;
    }
    
    .nav-menu a.contact-btn {
        background-color: #415223;
        color: white;
        margin: 20px 0 0 0;
        width: 80%;
        text-align: center;
        font-size: 18px;
        padding: 15px 20px;
    }
    
    .nav-menu a.contact-btn:hover {
        background-color: #759934;
        transform: translateY(-2px);
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .containerheader {
        padding: 0 15px;
    }
    
    .logo {
        width: 200px;
    }
    
    .nav-menu {
        width: 250px;
        padding: 80px 20px 30px;
    }
    
    .nav-menu a {
        font-size: 18px;
        padding: 12px 15px;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .logo {
        width: 180px;
    }
    
    .nav-menu {
        width: 85%;
        right: -85%;
        padding: 70px 15px 20px;
    }
    
    .nav-menu a {
        font-size: 16px;
        padding: 10px 12px;
    }
    
    .nav-menu a.contact-btn {
        font-size: 16px;
        padding: 12px 15px;
    }
}

/* Focus states for accessibility */
.menu-toggle:focus {
    outline: 2px solid #759934;
    outline-offset: 2px;
}

.nav-menu a:focus {
    outline: 2px solid #759934;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .menu-toggle span {
        background-color: #000;
    }
    
    .nav-menu {
        border: 2px solid #000;
    }
    
    .nav-menu a {
        border: 1px solid transparent;
    }
    
    .nav-menu a:hover,
    .nav-menu a:focus {
        border-color: #759934;
        background-color: rgba(117, 153, 52, 0.2);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .menu-toggle span,
    .nav-menu,
    .menu-overlay,
    .nav-menu a {
        transition: none;
    }
}

/* Print styles */
@media print {
    .menu-toggle,
    .menu-overlay {
        display: none;
    }
    
    .nav-menu {
        position: static;
        display: flex;
        flex-direction: row;
        width: auto;
        height: auto;
        background: none;
        box-shadow: none;
        padding: 0;
    }
    
    .nav-menu a {
        margin: 0 10px;
        padding: 0;
        font-size: 12px;
    }
}