@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&display=swap');

/* General */
body {
    font-family: 'Ubuntu', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header general */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: #e5e9eebd;
    color: rgb(209, 206, 206);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
}

header .logo img {
    height: 50px;
}

.logo_int {
    display: flex;
    justify-content: center;
    /* Centra horizontalmente */
    align-items: center;
    /* Centra verticalmente */
    height: 100%;
    /* Ajusta según el diseño */
}

.logo_int img {
    height: 80px;
}


header nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

header nav ul li a {
    color: rgb(63, 61, 61);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 2px 2px 4px rgba(168, 170, 32, 0.3);
    text-decoration: line;
}

header .btn-contacto {
    background-color: #33910e;
    color: rgb(237, 238, 166);
    text-decoration: line;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    animation: parpadeo 1.5s infinite;
}

@keyframes parpadeo {

    0%,
    100% {
        opacity: 2;
    }

    50% {
        opacity: 0.5;
    }
}

/* Responsividad del header */
@media (max-width: 1024px) {
    header nav ul li a {
        font-size: 1em;
    }

    header {
        padding: 10px 20px;
    }
}

@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        padding: 10px 15px;
    }

    header .logo img {
        height: 40px;
    }

    header nav {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: #007BFF;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
    }

    header nav ul li a {
        font-size: 1em;
    }

    header .menu-toggle {
        display: block;
        background-color: #28a745;
        color: white;
        padding: 10px;
        border-radius: 5px;
        cursor: pointer;
        text-align: center;
        margin-left: auto;
    }

    header nav.active {
        display: flex;
    }

    header .btn-contacto {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 84vh;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(41, 41, 41, 0.89), rgba(141, 140, 140, 0.5)), url('images/Fondo1.png') no-repeat center center/cover;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: white;
    text-shadow: 8px 8px 6px rgba(14, 13, 13, 0.9);
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 20px;
    text-shadow: 8px 8px 6px rgba(14, 13, 13, 0.9);
}

.hero .btn-principal {
    margin-top: 20px;
    background-color: #0dbe37;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Efecto suave */
}

.hero .btn-principal:hover {
    background-color: #2ff308;
    color: #ffffff;
    /* Asegura que el texto siga siendo legible */
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .hero {
        height: auto;
        /* Ajusta la altura para pantallas pequeñas */
        padding: 40px 20px;
        /* Más espacio interno */
    }

    .hero h1 {
        font-size: 2em;
        /* Reduce el tamaño del texto */
    }

    .hero p {
        font-size: 1em;
        /* Reduce el tamaño de la descripción */
    }

    .hero .btn-principal {
        font-size: 1em;
        /* Ajusta el tamaño del botón */
        padding: 8px 15px;
        /* Reduce el padding del botón */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8em;
        /* Ajuste adicional para pantallas muy pequeñas */
    }

    .hero p {
        font-size: 1em;
    }

    .hero .btn-principal {
        font-size: 0.9em;
        padding: 8px 12px;
    }
}

/* Sección */
#servicio-entrega h2 {
    font-size: 1.8em;
    font-family: 'Ubuntu', sans-serif;
    color: #333;
}

#servicio-entrega h3 {
    font-size: 1.5em;
    font-family: 'Ubuntu', sans-serif;
    color: #333;
}

/* Contenedor de las tarjetas */
.d-flex {
    display: flex;
    justify-content: center;
    /* Centra horizontalmente las tarjetas */
    align-items: flex-start;
    /* Alinea las tarjetas en la parte superior */
    gap: 20px;
    /* Espaciado entre las tarjetas */
    flex-wrap: wrap;
    /* Permite que las tarjetas se muevan a una nueva fila si es necesario */
}

/* Tarjetas */
.card {
    flex: 1 1 calc(45% - 20px);
    /* Ocupan el 45% del ancho del contenedor */
    max-width: 400px;
    /* Tamaño máximo */
    border-radius: 15px;
    /* Bordes redondeados */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Sombra inicial */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Transición suave */
    text-align: center;
    background-color: white;
    /* Fondo blanco */
    overflow: hidden;
    /* Evita que el contenido sobresalga en bordes redondeados */
}

.card:hover {
    transform: translateY(-10px);
    /* Eleva la tarjeta */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    /* Sombra más intensa al pasar el ratón */
}

.card-body i {
    font-size: 3rem;
    /* Tamaño del ícono */
    color: #007BFF;
}

.card-title {
    font-size: 1.5em;
    margin-top: 10px;
}

.card-text {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
}

/* Responsividad */
@media (max-width: 768px) {
    .card {
        flex: 1 1 100%;
        /* Ocupan todo el ancho en pantallas pequeñas */
        max-width: none;
    }

    #servicio-entrega .d-flex {
        justify-content: center;
    }
}


/* Sección de ventajas */
#ventajas {
    background-color: #f4f4f4;
    text-align: center;
    padding: 50px 20px;
}

#ventajas h2 {
    font-size: 1.8em;
    font-family: 'Ubuntu', sans-serif;
    color: #333;
    margin-bottom: 20px;
}

/* Lista de ventajas */
.ventajas-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    font-size: 1.2em;
    color: #555;
    line-height: 1.8;
}

.ventajas-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ventajas-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.ventajas-list li i {
    font-size: 1.5em;
    margin-right: 15px;
    color: #28a745;
    /* Color del icono */
}


/* Sección Nuestra Empresa */
.empresa {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.empresa h2 {
    font-size: 2em;
    font-family: 'Ubuntu', sans-serif;
    color: #333;
    margin-bottom: 20px;
}

.empresa p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Estilo del carrusel */
.carousel {
    position: relative;
    width: 30%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-container {
    display: flex;
    width: 100%;
    /* Ajustado para 5 imágenes */
    animation: slide 25s infinite;
    /* Ajustado para 5 imágenes (5 segundos por imagen) */
}

.carousel-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Muestra la imagen completa */
    flex: 0 0 20%;
    /* Ajustado para 5 imágenes */
    transition: transform 0.5s ease;
}

/* Animación del carrusel */
@keyframes slide {

    0%,
    12% {
        transform: translateX(0);
        /* Primera imagen */
    }

    20%,
    32% {
        transform: translateX(-100%);
        /* Segunda imagen */
    }

    40%,
    52% {
        transform: translateX(-200%);
        /* Tercera imagen */
    }

    60%,
    72% {
        transform: translateX(-300%);
        /* Cuarta imagen */
    }

    80%,
    92% {
        transform: translateX(-400%);
        /* Quinta imagen */
    }

    100% {
        transform: translateX(0);
        /* Regresa a la primera imagen */
    }
}

/* Responsividad */
@media (max-width: 768px) {
    .empresa h2 {
        font-size: 1.8em;
    }

    .empresa p {
        font-size: 1em;
    }

    .carousel {
        width: 90%;
        height: auto;
    }
}


/* Sección de asesorías */
.asesorias {
    background-color: #f9f9f9;
    text-align: center;
    padding: 50px 20px;
}

.asesorias h2 {
    font-size: 1.8em;
    font-family: 'Ubuntu', sans-serif;
    color: #333;
    margin-bottom: 20px;
}

.asesorias p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid de asesorías */
.asesorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.asesoria {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.asesoria:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.asesoria i {
    font-size: 3rem;
    color: #007BFF;
    margin-bottom: 15px;
}

.asesoria h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.asesoria p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
}

/* Responsividad */
@media (max-width: 768px) {
    .asesorias h2 {
        font-size: 1.8em;
    }

    .asesorias p {
        font-size: 1em;
    }
}


/* General sections */
section {
    padding: 50px 20px;
    text-align: center;
    background-color: #f9f9f9;

}

/* Grid Sections */
#beneficios .beneficios-grid,
#productos .productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    color: #333;
}

#productos h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-family: 'Ubuntu', sans-serif;
    color: #333;
}

.productos p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 30px;
}

#beneficios h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-family: 'Ubuntu', sans-serif;
    color: #333;
}

.beneficios p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 30px;
}

.beneficio img,
.producto img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Contact Section */
#contacto {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

#contacto h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-family: 'Ubuntu', sans-serif;
    color: #333;
}

#contacto p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #555;
}

/* Contact Form and Info */
#contacto .form-info-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    /* Ocupa el 90% del ancho del contenedor principal */
    max-width: 1200px;
    margin: 0 auto;
    /* Centra el contenedor horizontalmente */
}


form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

form input,
form textarea {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    font-family: 'Ubuntu', sans-serif;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

form button {
    background-color: #007BFF;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #0056b3;
}

.contact-info {
    max-width: 800px;
    color: #333;
    text-align: center;
}

.contact-info p {
    font-size: 1.1em;
    margin: 10px 0;
}

.contact-info strong {
    color: #007BFF;
}


/* Map Container */
.map-container {
    margin-top: 20px;
    width: 100%;
    max-width: 600px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Estilo base para el contenedor */
.logo_transbank {
    display: flex;
    justify-content: center;
    /* Centra horizontalmente */
    align-items: center;
    /* Centra verticalmente si es necesario */
    width: 100%;
    /* Ocupa el ancho completo del contenedor */
    padding: 20px;
    /* Espaciado interno */
}

/* Estilo para la imagen */
.logo_transbank img {
    max-width: 100%;
    /* La imagen no excederá el ancho del contenedor */
    height: auto;
    /* Mantiene la proporción de la imagen */
    object-fit: contain;
    /* Ajusta la imagen para que siempre sea visible */
}

/* Responsividad */
@media (max-width: 768px) {
    .logo_transbank img {
        max-width: 80%;
        /* Reduce el tamaño de la imagen en pantallas pequeñas */
    }
}

@media (max-width: 480px) {
    .logo_transbank img {
        max-width: 70%;
        /* Reduce aún más el tamaño para pantallas muy pequeñas */
    }
}


/* Sección de Redes Sociales */
.redes {
    text-align: center;
    padding: 50px 20px;
    background-color: #f4f4f4;
}

.redes h2 {
    font-size: 2em;
    font-family: 'Ubuntu', sans-serif;
    color: #333;
    margin-bottom: 20px;
}

.redes p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 30px;
}

/* Iconos de redes sociales */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    font-size: 2rem;
    color: #555;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #007BFF;
}


/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9em;
}