/* styles.css - Actualización del header */
header {
    background: linear-gradient(135deg, #0072bc 0%, #004e8c 100%);
    padding: 0.5em 0;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estilos para el botón de hamburguesa (solo móviles) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 15px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    margin-right: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Estilos cuando el menú está activo */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Estilos para la navegación */
.main-navigation {
    transition: all 0.3s ease;
}

/* Estilos para móviles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: linear-gradient(135deg, #0072bc 0%, #004e8c 100%);
        padding-top: 80px;
        transition: all 0.5s ease;
    }
    
    .main-navigation.active {
        right: 0;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    
    .main-navigation ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .main-navigation li {
        margin: 15px 0;
    }
    
    .main-navigation a {
        display: block;
        padding: 12px;
        font-size: 1.2em;
    }
    
    .logo-container {
        padding: 5px 10px;
    }
    
    .logo {
        max-height: 50px;
    }
}

/* Asegurar que el body no se desplace cuando el menú está abierto */
body.menu-open {
    overflow: hidden;
}

/* Estilos para el logo */
.logo-container {
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    max-height: 40px; /* Ajusta según el tamaño deseado */
    width: 200px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05); /* Efecto sutil al pasar el mouse */
}

/* Estilos para el header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff; /* Color de fondo del encabezado */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Sombra sutil */
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    margin-left: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #f0f0f0;
}
    

.logo {
    height: 80px;
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

nav ul li {
    margin: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        position: static;
        transform: none;
        display: block;
        margin: 0 auto 15px;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 5px 0;
    }
}

/* Estilos para la galería */
.slideshow-container {
    max-width: 800px;
    position: relative;
    margin: auto;
    margin-top: 2%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.mySlides {
    display: none;
    width: 100%;
    transition: opacity 1s ease;
}

.mySlides img {
    width: 100%;
    vertical-align: middle;
    height: 400px;
    object-fit: cover;
}

/* Controles de navegación */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 90%;
    width: auto;
    padding: 16px;
    margin-top: -10px;
    color: white;
    font-weight: bold;
    font-size: 15px;
    transition: 0.3s;
    border-radius: 0 3px 3px 0;
    user-select: none;
    opacity: 90%;
    background-color: rgba(0,0,0,0.5);
}

.next {
    right: 0;
    border-radius: 0px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Indicadores de puntos */
.dots-container {
    text-align: center;
    padding: 15px 0;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color .5s;
}

.dot.active, .dot:hover {
    background-color: #0072bc;
}

/* Animación de fade */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* styles.css - Secciones mejoradas */
.container2 {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
}

.section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-top: 4px solid #0072bc;
    text-align: center;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.section h2 {
    color: #0072bc;
    margin-top: 0;
    font-size: 1.4em;
}

.section p {
    color: #555;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .container2 {
        grid-template-columns: repeat(2, 1fr); /* 4 columnas en móviles */
        gap: 15px;
        padding: 1px;
        width: 1;
    }

    .section {
        min-height: auto;
    }

}

/* styles.css - Sección de servicios con imágenes */

.container3 {
    max-width: 1540px;
    width: 90%;
    margin: 40px auto;
    padding: 20px;
    background-color: #FFFFFF;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.section3 {
    padding: 20px;
    background-color: #F0FAFD;
    border-left: 5px solid #afd5f5;
    border-top: 5px solid #afd5f5;

    border-radius: 0 8px 8px 0;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100px;
}

.service-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.section3 p {
    margin: 0;
    font-size: 1.1em;
    color: #333;
    font-weight: 500;
}

.section3:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: #e1f5fe;
}

.services-title {
    grid-column: 1 / -1;
    text-align: center;
    color: #0072bc;
    margin-bottom: 20px;
    font-size: 2em;
}
/* Modificaciones para móviles */
@media (max-width: 768px) {
    .container3 {
        grid-template-columns: repeat(4, 1fr); /* 4 columnas en móviles */
        gap: 15px;
        padding: 15px;
        width: 95%;
    }

    .section3 {
        padding: 15px 10px;
        min-height: auto;
        border-left: 3px solid #afd5f5;
        border-top: 3px solid #afd5f5;
    }

    .service-img {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }

    .section3 p {
        font-size: 0.9em;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
    .container3 {
        grid-template-columns: repeat(3, 1fr); /* 2 columnas en pantallas muy pequeñas */
        gap: 10px;
    }

    .section3 {
        padding: 10px 8px;
    }

    .service-img {
        width: 35px;
        height: 35px;
    }

    .section3 p {
        font-size: 0.5em;
    }
}

/* styles.css - Footer mejorado */
footer {
    background: linear-gradient(135deg, #0072bc 0%, #004e8c 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
    font-size: 1.1em;
    line-height: 1.8;
}

footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

footer a:hover {
    text-decoration: underline;
    color: #a7d6ff;
}

/* styles.css - Efectos globales */
body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

h1, h2, h3 {
    font-weight: 600;
    color: #0072bc;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container, .container2, .container3 {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Botones */
.gallery-control, .prev, .next {
    background: #0072bc;
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.gallery-control:hover, .prev:hover, .next:hover {
    background: #005a9c;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Estilos para el footer */
footer {
    background-color: #f8f9fa;
    padding: 1px 1px; /* Aumenté el padding vertical para más altura */
    text-align: center;
    border-top: 1px solid #e0e0e0;
    min-height: 120px; /* Altura mínima garantizada */
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px; /* Espacio entre elementos cuando se apilen */
}

.footer-left {
    text-align: left;
    flex: 1;
    min-width: 250px; /* Ancho mínimo para evitar compresión */
}

.footer-right {
    text-align: right;
    flex: 1;
    min-width: 250px; /* Ancho mínimo para evitar compresión */
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-left, .footer-right {
        text-align: center;
        min-width: 100%;
    }
    
    footer {
        padding: 25px 15px;
        min-height: 150px; /* Más alto en móviles */
    }
}

/* Estilos para el enlace "Ubícanos" */
.ubicacion-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #f4f4f5;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.ubicacion-link:hover {
    transform: scale(1.25);
    color: #4be7fc;
}

.ubicacion-logo {
    width: 30px;
    height: 30px;
    margin-right: 8px;
}

/*/////////// WHATSSAPP LOGO-BTN /////////////////////*/

.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: breathe 2s ease-in-out infinite;
  }

  .whatsapp-icon {
    color: #fff;
    font-size: 0;
    animation: beat 2s ease-in-out infinite;
    text-decoration: none;
    margin-top: 10px;
  }


  @keyframes breathe {
    0% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
      box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
  }

  @keyframes beat {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.2);
    }
    100% {
      transform: scale(1);
    }
  }