:root {
    --primary-color: #0588F2; /* Blue */
    --secondary-color: #EAF205; /* Yellow */
    --accent-color: #F20D05; /* Red */
    --text-color-dark: #3C5A73; /* Dark Blue-Gray */
    --text-color-light: #ffffff;
    --background-color: #9A9D38; /* Olive */
    --card-color: #733E3C; /* Brown */
}

* {
    margin: 0;
    padding:0 0 0  0;
    box-sizing: border-box;
    font-family: 'Work Sans', sans-serif;
}



header {
    display: flex;
    justify-content: space-between;
    align-items: center;
      position: fixed;  width: 100%;

  z-index: 1002;
top:0;
    padding: 8px 128px 8px 100px;
    background-color: var(--text-color-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
[id] {
  scroll-margin-top: 80px;
}

/* Esto sobrescribe la regla anterior para el primer <h2> de la página, dándole más margen */
#inicio {
  scroll-margin-top: 280px;
}
.logo {
  width: 350px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Esto es clave para que la imagen se ajuste sin distorsionarse */
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    width: 30px;
    height: 25px;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-right: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color-dark);
    font-weight: 400;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.quote-button {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: none;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.quote-button:hover {
    background-color: #245091;
}

/* Updated hero and benefits section for alignment */
.hero {
    position: relative;
    width: 75%;
    height: 78vh;
background-image: url('../img/rampas.png');
 background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 14px;
    margin: 123px auto 0px auto;
        border-radius: 10px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    color: var(--text-color-light);
    max-width: 800px;
    padding: 120px 0px 0px 0px;
    text-align: left;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.5;
}

.call-to-action {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: none;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.call-to-action:hover {
    background-color: #245091;
}

/* Benefits Section */
.benefits {
    /* Updated padding for alignment with the hero section's width */
    padding: 60px 12.5%;
}

.benefits h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-color-dark);
}

.benefits-container {
    display: flex
;
    justify-content: normal;
    gap: 18px;
}

.benefit-card {
    background-color: #f8f9fa; /* A light background color for the cards */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    width: 250px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
}

.benefit-card p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color-dark);
    margin: 0;
}

.services {
  padding:60px 12.5%;

  font-family: 'Work Sans', sans-serif;
  color: #333;
}

.services-container {
  font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-color-dark);
}

.services h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.services p {
  color: #555;
  font-size: 1rem;
  max-width: 700px;
  margin: 0 0 40px;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: #fff;
  padding: 30px 25px;
  border-radius: 15px;
  box-shadow: 0 4px 12px var(--card-shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 25px var(--card-shadow-hover);
}

.service-card img {
  width: 70px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.service-card:hover img {
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #222;
}

.service-card p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.service-card a {
 background-color: var(--card-color);
    color: var(--text-color-light);
    border: none;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-card a:hover {
  background: #005bb5;
  transform: translateY(-2px);
}
/* About Us Section */
.about-us {
    padding: 60px 12.5%; /* Consistent padding with the benefits section */
}

.about-us h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-color-dark);
}

.about-us-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    background-color: var(--text-color-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
}

.about-us-image {
    width: 50%;
    text-align: left;
}

.about-us-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.about-us-content {
    width: 50%;
    text-align: left;
    padding: 40px 40px 40px 25px;
}

.about-us-content p, .about-us-content h3 {
        color: var(--text-color-dark);
    font-size: 18px;
    text-align: justify;
    line-height: 1.6;
}


.about-us-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.call-to-action-dark {
    background-color: var(--card-color); /* A darker button color */
    color: var(--text-color-light);
    border: none;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.call-to-action-dark:hover {
    background-color: #5d3230;
}/* Products Section */
/* Products Section */
.products {
    padding: 60px 12.5%;
}

.products h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-color-dark);
}

.products-container {
    display: flex;
    justify-content: center;
    gap: 30px; 
    flex-wrap: wrap; 
}

.product-card {
    background-color: var(--text-color-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 30%;
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color-dark);
    margin: 20px 20px 10px; /* Adjusted margin for consistent spacing */
}

.product-card p {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color-dark);
    padding: 0 20px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1; /* This makes the paragraph fill the available space */
}

.call-to-action-dark:hover {
    background-color: #5d3230;
}
/* Testimonials Section */
.testimonials {
    padding: 60px 12.5%; /* Aligned with other main sections */
}

.testimonials h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-color-dark);
}

.testimonials-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.testimonial-card {
    background-color: var(--text-color-light);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 45%; /* Sized to fit two cards per row with a gap */
    text-align: left;
    display: flex;
    flex-direction: column;
}

.testimonial-card .stars {
    color: var(--secondary-color); /* The yellow color for stars */
    font-size: 24px;
    margin-bottom: 15px;
}

.testimonial-card .stars span {
    margin-right: 2px;
}

.testimonial-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    flex-grow: 1; /* Ensures text fills space for consistent card height */
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto; /* Pushes the author info to the bottom of the card */
}

.author-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details p {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
}

.author-details p strong {
    font-size: 16px;
    font-weight: bold;
}
/* Final CTA Section */
.final-cta {
    padding: 60px 12.5%;
}

.final-cta-container {
    background-color: var(--accent-color); /* The red color */
    color: var(--text-color-light);
    border-radius: 10px;
padding: 120px 80px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.final-cta-container h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.final-cta-container p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.call-to-action-inverse {
    background-color: var(--primary-color); /* The blue color */
    color: var(--text-color-light);
    border: 2px solid var(--primary-color);
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.call-to-action-inverse:hover {
    background-color: var(--text-color-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}
/* Coverage Section */
.coverage {
    padding: 60px 12.5%;
}

.coverage h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color-dark);
}

.coverage-subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color-dark);
    margin-bottom: 40px;
    max-width: 700px;
}

.coverage-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.map-card {
    background-color: var(--text-color-light);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 45%; /* Sized to fit two cards per row with a gap */
    overflow: hidden;
    text-align: left;
}

.map-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.map-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-info {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 15px;
}

.map-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.map-info span {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color-dark);
}
/* Contact Form Section */
.contact-form {
    padding: 60px 12.5%; /* Aligned with other sections */
background-color: var(--card-color);
}

.contact-form-container {
    max-width: 1000px;
    color: var(--text-color-light);
}

.contact-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: left;
    color: var(--text-color-light);
}


.contact-form .submit-button {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: none;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.contact-form .submit-button:hover {
    background-color: #0369c7;
}
/* Footer Section */
footer {
    background-color: var(--secondary-color);
    padding: 60px 12.5% 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    color: black;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    color: #000000;
}

.footer-links,
.footer-social {
    text-align: left;
}

.footer-links h4,
.footer-social h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: black;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color:black;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons img {
    width: 32px;
    height: 32px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-icons img:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-bottom p {
    font-size: 14px;
    color: black;
}/* ===================== */
/* MEDIA QUERIES RESPONSIVE */
/* ===================== */

/* Tablets: 768px a 1024px */
@media (max-width: 1024px) {
    header {
        padding: 8px 40px;
    }

    .logo {
        width: 250px;
        height: 60px;
    }

    nav ul li {
        margin-right: 15px;
    }

    .hero {
        width: 90%;
        height: 65vh;
        margin-top: 100px;
        padding: 0 10px;
    }

    .hero-content {
        padding: 80px 10px 10px 10px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }
.benefits {
    padding: 60px 5.5%;
}
.about-us {
    padding: 60px 5.5%;
}
.products {
    padding: 60px 5.5%;
}
.testimonials {
    padding: 60px 5.5%;
}
.final-cta {
    padding: 60px 5.5%;
}
.coverage {
    padding: 60px 5.5%;
}
.contact-form {
    padding: 60px 5.5%;
}
    .benefits-container,
    .products-container,
    .coverage-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .benefit-card,
    .product-card,
    .map-card {
        width: 45%;
    }

    .about-us-container {
        flex-direction: column;
        align-items: center;
    }

    .about-us-image,
    .about-us-content {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .about-us-content p,
    .about-us-content h3 {
        text-align: center;
    }

    .testimonial-card {
        width: 100%;
    }

    .final-cta-container {
        padding: 80px 40px;
    }

    .contact-form-container {
        padding: 0 20px;
    }
   
    
    footer {
        padding: 40px 10%;
    }
 .footer-brand {
    max-width: 350px;
    display: block;
    text-align: center;
    }
    .footer-brand h3{
        font-size: 28px;
    margin: 10px 0 10px 0;
    }
    .footer-brand p {
    font-size: 18px;
    line-height: 1.5;
    }
    .footer-brand a {
        margin-top: 32px;
    padding: 14px 40px;
        font-weight: bold;
    }
    .footer-links, .footer-social {
    text-align: left;
    text-align: center;
    margin-top: 12px;
    /* font-size: 24px; */
}
.footer-links, .footer-social h4{
    font-size: 24px;
        margin-bottom: 20px;
}.social-icons img {
    width: 45px;
    height: 45px;
    margin-top: 18px;
}
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Móviles: hasta 767px */
@media (max-width: 767px) {
    header {
        flex-direction: row;      /* Mantener en fila */
        justify-content: space-between; /* Espacio entre logo y menú */
        align-items: center;
        padding: 10px 15px;
    }

    .logo {
        width: 150px;            /* Tamaño más proporcional */
        height: auto;
    }

    .menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 250px;
    background: var(--text-color-light);
    flex-direction: column;
    padding: 80px 20px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
  }

  .menu.show {
    right: 0;
  }


    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 25px;
        height: 20px;
        cursor: pointer;
    }

    .hamburger span {
        background-color: var(--text-color-dark);
        height: 3px;
        width: 100%;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100%;
        width: 250px;
        background-color: var(--text-color-light);
        flex-direction: column;
        align-items: start;
        padding: 80px 20px;
        gap: 20px;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    }

    nav ul.show {
        right: 0;
    }

    nav ul li {
        margin: 10px 0;
    }
    .hero {
        width: 95%;
        height: 55vh;
        margin-top: 90px;
        padding: 0 5px;
    }

    .hero-content {
        padding: 60px 15px 15px 15px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .benefit-card,
    .product-card,
    .testimonial-card,
    .map-card {
        width: 100%;
    }
    .benefits {
    padding: 60px 2.5%;
}
.services {
    padding: 60px 2.5%;
    font-family: 'Work Sans', sans-serif;
    color: #333;
}.about-us {
    padding: 60px 2.5%;
}
.products {
    padding: 60px 2.5%;
}
.testimonials {
    padding: 60px 2.5%;
}
.final-cta {
    padding: 60px 2.5%;
}

    .about-us-container {
        flex-direction: column;
    }

    .about-us-image,
    .about-us-content {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .products-container,
    .coverage-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .final-cta-container {
        padding: 60px 20px;
    }

    .contact-form-container {
        padding: 0 15px;
    }
.coverage {
    padding: 60px 2.5%;
}
.contact-form {
    padding: 60px 2.5%;

}
    footer {
        padding: 30px 5%;
    }
.footer-brand {
    text-align: center;
    display: flex
;
    flex-direction: column;
    gap: 10px;
}
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-links,
    .footer-social {
        text-align: center;
    }
}

/* Animación hamburguesa */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
