/* styles.css */

/* Importamos las fuentes desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&family=Montserrat:wght@700&display=swap');

/* Reset de Estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--white-color);
    line-height: 1.6;
    padding-top: 80px; /* Compensa la altura del navbar fijo */
}

/* Colores */
:root {
    --primary-color: #4A90E2; /* Azul suave */
    --secondary-color: #7ED321; /* Verde suave */
    --header-bg-color: #F0F4F8; /* Azul grisáceo muy claro para el encabezado */
    --alternate-bg-color: #FFFFFF; /* Blanco para las secciones */
    --alternate-bg-color-2: #F7FBFC; /* Azul muy claro para secciones alternas */
    --footer-bg-color: #2C3E50; /* Azul oscuro */
    --text-color: #333333; /* Gris oscuro */
    --white-color: #FFFFFF;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    background-color: var(--header-bg-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    width: 150px;
}

.nav-link {
    color: var(--text-color);
    margin-left: 1rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.navbar-toggler {
    border: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: var(--header-bg-color);
    color: var(--text-color);
    padding: 60px 0;
    text-align: center;
    overflow: hidden;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-section .btn {
    font-size: 1.25rem;
}

/* Secciones Generales */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.section {
    padding: 80px 0;
}

.bg-white {
    background-color: var(--alternate-bg-color);
}

.bg-alternate {
    background-color: var(--alternate-bg-color-2);
}

/* Separador de Secciones */
.section-divider {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 40px auto;
}

/* Botones */
.btn-custom {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    transition: background-color 0.3s ease;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.btn-custom:hover {
    background-color: #3A78C2; /* Un tono más oscuro */
    color: var(--white-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Cards */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Imagen de la Sección "¿Quiénes Somos?" */
.about-image {
    max-width: 50%; /* Reduce el ancho máximo al 50% */
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto; /* Centra la imagen */
}

.about-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Ajuste de la Columna de la Imagen */
@media (min-width: 768px) {
    .about-image-col {
        flex: 0 0 auto;
        max-width: 30%;
    }
}

/* Imagen de los Servicios */
.service-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Imagen de los Proyectos */
.project-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Servicios */
.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-icon i {
    font-size: 3rem;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--footer-bg-color);
    color: var(--white-color);
    padding: 60px 0;
    position: relative;
    text-align: center;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer a {
    color: var(--white-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--primary-color);
}

.footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

.footer .list-inline-item:not(:last-child) {
    margin-right: 1rem;
}

/* Iconos de Redes Sociales en Footer */
.social-media a {
    color: var(--white-color);
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: var(--primary-color);
}

/* Llamada a la Acción */
.cta-section {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-section .btn {
    font-size: 1.25rem;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

/* Animaciones */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Beneficios Clave y Personalización */
.section .col-md-6 h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section .col-md-6 p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.5;
}

/* Formulario de Contacto */
.contact-form label {
    font-weight: 500;
    color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    font-size: 1rem;
    width: 100%;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    transition: background-color 0.3s ease;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #3A78C2; /* Un tono más oscuro */
}

/* Campo Honeypot */
.contact-form input[type="text"][name="url"] {
    display: none;
}

/* Responsive Ajustes */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .section .col-md-6 h3 {
        font-size: 1.5rem;
    }

    .section .col-md-6 p {
        font-size: 0.95rem;
    }

    /* Ajustes específicos para la Hero Section en móviles */
    .hero-section .row {
        flex-direction: column-reverse;
    }

    .hero-section .col-md-6 {
        text-align: center;
    }

    .hero-section .about-image {
        margin-top: 20px; /* Añade espacio entre el botón y la imagen */
    }
}

/* Banner de Cookies */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(74, 144, 226, 0.95); /* Color de fondo semi-transparente */
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    z-index: 1000;
    max-width: 350px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    flex: 1;
}

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: #e0e0e0;
}

.cookie-buttons {
    display: flex;
    margin-left: 10px;
}

.cookie-buttons button {
    margin-left: 5px;
    white-space: nowrap;
}

/* Botones de Cookies */
.btn-outline-light {
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 16px;
    border-radius: 5px;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* Estilos del Modal de Éxito */
.modal-content {
    border-radius: 10px;
}

.modal-header {
    border-bottom: none;
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
}

.modal-body {
    font-size: 1rem;
    color: var(--text-color);
}

.modal-footer {
    border-top: none;
}

.modal-footer .btn-custom {
    padding: 8px 16px;
}

/* Estilos de Swiper.js */
.swiper-container {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px; /* Reducido de 70px a 50px */
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;

    /* Center slide text vertically */
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 80%; /* Ajusta el ancho de la imagen dentro del slide */
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

/* Paginación */
.swiper-pagination {
    bottom: 10px !important; /* Posiciona la paginación justo debajo del carrusel */
    text-align: center;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #000; /* Círculos negros */
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px; /* Espacio entre las bolitas */
    cursor: pointer;
}

.swiper-pagination-bullet-active {
    background-color: #000; /* Mantiene el color negro incluso en activo */
}

/* Eliminamos estilos relacionados con los botones de navegación */
.swiper-button-prev,
.swiper-button-next {
    display: none;
}

/* Responsive Ajustes para el Carrusel */
@media (max-width: 767px) {
    .swiper-slide img {
        width: 90%; /* Ajusta el ancho en móviles */
    }
}

/* Ajuste para acercar las bolitas y reducir el espacio debajo */
.carousel-section {
    padding-bottom: 30px; /* Reduce el espacio debajo del carrusel */
}

.swiper-container.mySwiper {
    padding-bottom: 30px; /* Reduce el padding-bottom para acercar las bolitas */
}
