.oferta-temporal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: none;
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.oferta-imagen {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .oferta-temporal {
        max-width: 95%;
    }
}
:root {
    --primary-color: #007bff;
    --primary-color-rgb: 0, 123, 255; /* Los valores RGB del color primario */
    --secondary-color: #0056b3;
    --background-color: #333;
    --text-color: #fff;
  }
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header and Navigation */
.header {
    background-color: #fff;
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.header {
    background-color: var(--background-color);
    color: var(--text-color);
  }
  
  .cta-button {
    background-color: var(--primary-color);
    color: var(--text-color);
  }
  
  .cta-button:hover {
    background-color: var(--secondary-color);
  }
#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 1rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}


/* Carousel */
.carousel {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-left: -50vw;
    left: 50%;
}
.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    width:100%;
    position: relative;
}

.carousel-item {
    min-width: 100vw;
    width: 100vh;
    height: 100%;
}

.carousel-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.image-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 2px;
    background-color: #333;
    position: relative;
}
.image-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.image-mosaic img:first-child {
    opacity: 1;
}

.carousel-item img:not(.image-mosaic img) {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.carousel-item img.carrusel-imagen-ajustada {
    top: -15%;
}
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 20px;
    color: white;
    width: 100%; /* Ajusta este valor según sea necesario */
    padding: 30px;
    margin-top: 20px;
}

.carousel-caption h2 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.carousel-caption p {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    margin-bottom: 20px; /* Agrega un margen inferior a los párrafos */
}
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.2);
    color: white;
    padding: 10px;
    text-decoration: none;
}

.carousel-control.prev { left: 10px; }
.carousel-control.next { right: 10px; }

.cursor {
    display: inline-block;
    width: 3px;
    background-color: #fff;
    margin-left: 0.1rem;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}
.cta-button {
    display: block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: fit-content;
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
    animation: pulse 2s infinite;
    overflow: hidden;
    animation: pulse 2s infinite; /* Aplicando la animación de pulso */
}
.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: all 0.5s;
}
.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}
.cta-button:hover:before {
    left: 100%;
}

/* Sections */
section {
    padding: 4rem 2rem;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Quienes Somos */
.content-columns {
    display: flex;
    justify-content: space-between;
}

.column {
    flex: 1;
    padding: 1rem;
    text-align: center;
}

.column i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #007bff;
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #f4f4f4;
    padding: 2rem;
    text-align: center;
    border-radius: 5px;
}

.service-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #007bff;
}

/* Contacto */
/* Estilos existentes del formulario */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 98%;
    background-position-y: 50%;
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

.footer-section {
    flex: 1;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    margin-top: 2rem;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-logo {
    width: 100px; /* Ajusta este valor según el tamaño que desees */
    height: auto;
    margin-bottom: 1rem;
}

/* Estilos para los enlaces de contacto en el footer */
footer a {
    color: white; /* Color blanco para el texto del enlace */
    text-decoration: none; /* Quitar el subrayado predeterminado */
}

footer a:hover {
    text-decoration: underline; /* Agregar subrayado al pasar el mouse */
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-button a {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: #fff;
    text-align: center;
    line-height: 60px;
    font-size: 30px;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-color-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0);
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #333;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .cta-button {
        bottom: 100px; /* Ajustado para estar más arriba en móviles */
        font-size: 1.2rem; /* Tamaño de fuente reducido para móviles */
        padding: 15px 30px; /* Padding reducido para móviles */
        width: 80%; /* Ancho ajustable para diferentes tamaños de pantalla */
        max-width: 250px; /* Máximo ancho para evitar que sea demasiado grande */
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #333;
        padding: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .content-columns {
        flex-direction: column;
    }

    .column {
        margin-bottom: 2rem;
    }

    .image-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
    .contact-form {
        padding: 0 1rem;
    }
    .footer-content {
        flex-direction: column;
    }

    .footer-section {
        margin-bottom: 2rem;
    }
    .footer-logo {
        width: 80px; /* Tamaño más pequeño para dispositivos móviles */
    }
}
@media (max-width: 480px) {
    .cta-button {
        bottom: 120px; /* Aún más arriba para pantallas muy pequeñas */
        font-size: 0.8rem; /* Fuente más pequeña para pantallas muy pequeñas */
        padding: 8px 16px; /* Padding más pequeño */
    }
}

#quienes-somos .info-boxes {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

#quienes-somos .info-box {
    flex: 1;
    min-width: 250px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#quienes-somos .info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#quienes-somos .info-box i {
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 15px;
}

#quienes-somos .info-box h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

#quienes-somos .info-box .info-content {
    display: none;
    margin-top: 15px;
    font-size: 0.9em;
    line-height: 1.6;
}

#quienes-somos .info-box.active .info-content {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    #quienes-somos .info-boxes {
        flex-direction: column;
    }
}