:root {
    --primary-color: #007bff; /* Azul vibrante */
    --secondary-color: #28a745; /* Verde para acciones secundarias/éxito */
    --text-color: #333;
    --white: #fff;
    --gray-light: #f8f9fa; /* Fondo más claro para secciones */
    --dark-blue: #0056b3; /* Azul más oscuro para hover */
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.main-header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed; /* Hace que el header se quede fijo en la parte superior */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
}

.main-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-header .container .main-nav {
    width: 100%;
}

.main-header .container .main-logo-nav {

}

.logo img {
    height: 8vh; /* Ajusta el tamaño de tu logo */
    vertical-align: middle;
    margin-left: 1vh;
    transition: all .3s;
}

.logo img:hover {
    transform: rotate(10deg) scale(1.1);
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
    justify-content: right;
    margin-right: 2vh;
}

.main-nav .nav-list li {
    margin-left: 30px;
}

.main-nav .nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav .nav-list a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none; /* Oculto por defecto en desktop */
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 2.5vh;
    height: .5vh;
    background-color: var(--text-color);
    margin: 4px 0;
    transition: 0.3s;
}








/* Estilos del hero section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 1200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
}

/* Carrusel de fondo */
.hero-carousel {
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

/* Overlay para mejor legibilidad */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Contenido del hero */
.hero-container {
    width: 80%;
    padding: 0 20px;
    position: relative;
    margin: 0 auto;
    z-index: 3;
}

.hero-content {
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    flex-grow: 1;
}

.btn-whatsapp {
    background-color: #1ebe5b;
    color: white;
    box-shadow: 0 4px 15px #1ebe5b;
    border: none;
}

.btn-whatsapp:hover {
    background-color: #158841;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px #1ebe5b;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--dark-blue);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}






/* featured-services-section */



.featured-services-section {
    background-color: var(--white);
    padding: 80px 0;
    text-align: center;
    width: 100%;
}

.featured-services-section h2 {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.service-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    width: 100%;
}

.service-card {
    background-color: var(--gray-light);
    width: 80%;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex; /* Usar flexbox para organizar los elementos dentro de la tarjeta */
    flex-direction: column; /* Apilar elementos en columna */
    align-items: center;
    overflow: hidden; /* Para que nada se desborde si las imágenes son grandes */
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 50%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 2px 8px var(--text-color);
}


.gallery-container-main-photo {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 2vh;
}

.main-service-image {
   width: 100%;
   height: 100%;
}

.thumbnail-nav {
    display: flex;
    justify-content: center; /* Centra las miniaturas */
    gap: 1vh; 
    padding: 1vh;
    width: 100%;
}

.thumbnail {
    width: 30%; /* Tamaño de las miniaturas */
    height: 100%;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, border 0.2s ease;
    border: 2px solid transparent; 
}

.thumbnail:hover {
    opacity: 1; /* Opacidad completa al pasar el mouse */
}

.thumbnail.active {
    opacity: 1;
    border: 2px solid var(--primary-color); /* Borde de color para la miniatura activa */
}


.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}


.service-card h3 {
    font-size: 1.8em;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1em;
    color: var(--text-color);
    line-height: 1.7;
}









.why-choose-us-section {
    background-color: var(--primary-color); 
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.why-choose-us-section h2 {
    font-size: 2.8em;
    margin-bottom: 50px;
    color: var(--white);
}

.features-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-bottom: 50px;
}

.feature-item {
  display: flex;
  width: 90%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-image {
  width: 60%;
  height: 90vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.feature-content {
  width: 40%;
  padding: 4vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}


.feature-content h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--white);
}

.feature-content p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.feature-item-second {
    flex-direction: row-reverse;
}












.marcas-class {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.marcas-class div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.marcas-div-img {
    padding-bottom: 5vh;
}

.marcas-class div h2 {
    font-size: 2.8em;
    margin-bottom: 2vh;
    color: var(--primary-color);
    padding: 4vh;
    text-align: center;
}

.marcas-class div img {
    width: 45%;
    padding: 2vh;
    cursor: pointer;
    transition: all .3s;
}

.marcas-class div img:hover {
    transform: scale(110%);
}










/* Estilos para el Footer */




.main-footer {
  background-color: var(--dark-blue);
  color: #fff;
  padding: 40px 20px 20px;
  font-family: sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.footer-section {
  flex: 1 1 220px;
  min-width: 220px;
  margin: 1vh;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: var(--white);
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: var(--white);
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.social-icons img {
  width: 24px;
  margin-right: 10px;
}

.map-container {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 10px;
  border-top: 1px solid var(--white);
  font-size: 14px;
  color: var(--white);
}



/* --- Sección Nosotros --- */
.about-us-section {
    background-color: var(--gray-light); /* Fondo claro como tus service-cards */
    padding: 80px 0;
    text-align: center;
}

.about-us-section h2 {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.about-content {
    display: flex;
    flex-direction: row; /* Texto e imagen lado a lado en desktop */
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    text-align: left; /* Alineación de texto dentro de esta sección */
}

.about-text {
    flex: 1;
    padding: 20px;
}

.about-text h3 {
    font-size: 2.2em;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-color);
}

.about-text p strong {
    color: var(--primary-color); /* Resalta palabras clave */
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Sección del Equipo */
.team-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.team-section h3 {
    font-size: 2.2em;
    color: var(--dark-blue);
    margin-bottom: 40px;
}

.team-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.team-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    width: 300px; /* Ancho fijo para las tarjetas del equipo */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.team-card img {
    width: 120px; /* Tamaño del avatar */
    height: 120px;
    border-radius: 50%; /* Forma circular */
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.team-card h4 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.team-card p {
    font-size: 1em;
    color: var(--text-color);
}

/* Botón de llamada a la acción al final de la sección */
.about-us-section .cta-button {
    margin-top: 40px;
}



















.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 10vh;
    height: 10vh;
    z-index: 1000;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float img {
    width: 70%;
    height: 70%;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    background-color: #1ebe5b;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.whatsapp-float:hover img {
    transform: rotate(10deg) scale(1.1);
}



.legal-notice { 
    background-color: var(--gray-light);
    color: var(--text-color);
    text-align: center;
    border-bottom: 1px solid var(--text-color);;
}

.legal-notice p {
    padding: 1vh;
}




.about-us-container {
     width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.about-us-container h2{
    padding-top: 10vh;
}



.coverage-section {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.coverage-container {
  max-width: 900px;
  margin: 0 auto;
}

.coverage-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #007bff;
}

.zone {
  background: #fff;
  border-radius: 10px;
  padding: 30px 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.zone:hover {
  transform: translateY(-5px);
}

.zone h3 {
  font-size: 1.8rem;
  color: #007bff;
  margin-bottom: 10px;
}

.zone p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-whatsapp {
  display: inline-block;
  background: #25d366;
  color: #fff;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
}




@media (max-width: 1000px) {
    .feature-item {
        width: 100%;
    }
    .gallery-container {
        width: 80%;
    }
    .gallery-container-main-photo img {
        height: 100%;
    }

    .about-us-section h2 {
        font-size: 1.8em;
    }
    .about-text h3, .team-section h3 {
        font-size: 1.6em;
    }

    .about-image {
        width: 100%;
        order: -1; 
        margin-bottom: 30px;
    }

    .about-image img {
        width: 100%;
    }

    .about-content {
        flex-direction: column; /* Apila el texto y la imagen en móvil */
        text-align: center; /* Centra el texto en móvil */
    }

    .about-text {
        padding: 0; /* Elimina padding excesivo en móvil */
    }

    .about-us-section h2,
    .team-section h3,
    .about-text h3 {
        font-size: 2em; /* Ajusta tamaños de fuente para móvil */
    }

    .about-text p {
        font-size: 0.95em;
    }

    .team-card {
        width: 100%; /* Las tarjetas del equipo ocupan todo el ancho */
    }


    .marcas-class div img {
    width: 80%;
    }
}




/* Estilos para el menú desplegable */
@media (max-width: 768px) {
    .main-nav {
        display: none; 
        width: 100%;
        position: absolute;
        top: 80px; 
        left: 0;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        z-index: 999;
    }

    .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    }

    .main-nav.active {
        display: flex; 
    }

    .main-nav .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .main-nav .nav-list li {
        margin: 10px 0;
        text-align: center;
        width: 100%;
    }

    .main-nav .nav-list a {
        display: block;
        padding: 10px 0;
        width: 100%;
    }

    .menu-toggle {
        display: flex; /* Muestra el icono de hamburguesa en móvil */
        justify-content: right;
        align-items: center;
        padding: 1vh;
    }

    /* Animación del icono de hamburguesa */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .main-logo-nav {
    flex: 1;
    }

    .hero-content h1 {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .hero-content p {
        font-size: 1rem;
        text-align: center;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-right: 0;
    }
    
    .btn + .btn {
        margin-top: 15px;
    }





    .main-service-image {
        height: 200px; /* Un poco más pequeña en móvil para no ocupar demasiado */
    }
    .thumbnail {
        width: 50px;
        height: 50px;
    }



    
    .featured-services-section h2 {
        font-size: 2em;
    }

    .feature-content h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--white);
    }

    .feature-content p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    }

    .feature-image {
     width: 50%;
    }

    .feature-content {
     width: 50%;
     padding: 1vh;
     text-align: left;
    }
   

    .why-choose-us-section h2 {
    font-size: 2em;
    margin-bottom: 50px;
    color: var(--white);
    }


    .marcas-class div h2 {
    font-size: 2em;
    padding-top: 5vh;
    text-align: center;
    }

    .marcas-class div img {
    width: 100%;
    }

    .service-card {
        width: 100%;
    }
}