/* Variables */
:root {
    --font-primary: 'Poppins', sans-serif;
    --color-primary: #007bff;
    --color-secondary: #4e9bee;
    --color-dark: #343a40;
    --color-light: #f8f9fa;
    --color-muted: #555;
    --color-white: #fff;
    --color-border: #ddd;

    --transition-fast: 0.3s ease;
    --radius-small: 5px;
    --radius-medium: 8px;
}

.animated {
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.image-modal .modal-content {
    margin: 10% auto;
    display: block;
    position: relative;
    max-width: 80%;
    text-align: center;
}

.image-modal .modal-img {
    max-width: 100%;
    height: auto;
}

.image-modal .close {
    position: absolute;
    top: 0;
    right: 0;
    color: white;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
}

#scrollToTop {
    background-color: #007bff;
    color: white;
    border-radius: 50%; /* Forma circular */
    padding: 15px;
    border: none;
    font-size: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    /* Transición suave */
    z-index: 1000;

}

#scrollToTop:hover {
    background-color: #0056b3; /* Color más oscuro al pasar el mouse */
    transform: scale(1.1); /* Agrandar ligeramente */
}

#scrollToTop:active {
    background-color: #003366; /* Color aún más oscuro al hacer clic */
    transform: scale(0.95); /* Reducir ligeramente el tamaño al hacer clic */
}



        /* Centrando títulos y subtítulos */
        h2, h3, h4, h5 {
            text-align: center;
        }

        /* Cambiando color a azul */
        h2, h3, h4, h5 {
            color: #007bff;
        }

        /* Ajustando tamaño del carrusel */
        #customCarousel .carousel-inner img {
            height: 50vh;
            object-fit: cover;
        }

        /* Margen y padding en textos */
        p {
            margin: 0rem 0;
            padding: 1%;
        }

        .text-margins {
            margin: 2rem 0;
        }

        /* Ajustes adicionales para mantener consistencia */
        .section-title {
            margin-bottom: 15px;
        }

        .section-subtitle {
            font-size: 1.25rem;
        }

/* General Styles */
body {
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    background-color: var(--color-light);
    color: var(--color-muted);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background-color: var(--color-dark);
    padding: 1rem 2rem;
}

.nav-link {
    color: var(--color-white) !important;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-primary) !important;
}

/* Section */
.section {
    padding: 4rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary) !important;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-secondary) !important;
    margin-bottom: 15px;
    font-style: italic;
}

.lead {
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Carousel */
.carousel-item img {
    height: 75vh;
    object-fit: cover;
}

.icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}


.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: var(--radius-medium);
}

.social-icons {
    display: flex;                  /* Activar Flexbox */
    justify-content: center;        /* Centra los íconos horizontalmente */
    align-items: center;            /* Centra los íconos verticalmente */
    gap: 20px;                      /* Opcional: espacio entre los íconos */
}


/* Buttons */
.btn {
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.row {
    display: flex;
    justify-content: space-between;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: #0056b3;
}

/* Cards */
.card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 300px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card h3 {
    color: var(--color-dark);
    margin-top: 1rem;
}

/* Forms */
form {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: var(--color-light);
}

form input, form textarea {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    font-size: 1rem;
}

form button {
    background-color: var(--color-secondary);
    color: var(--color-white);
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: var(--radius-small);
    transition: background-color var(--transition-fast);
}

form button:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 2rem 1rem;
    text-align: center;
    font-size: 1rem;
}

 /* Posicionamiento del texto */
.carousel-caption {
    top: 60%; /* Mueve el texto más abajo */
    left: 5%;
    right: auto;
    bottom: auto;
    text-align: left;
}

/* Estilo del H5 principal */
.carousel-caption h5 {
    color: #fff; /* Color blanco sin sombras */
    font-family: 'Poppins', sans-serif;
    font-size: 3rem; /* Tamaño grande */
    font-weight: bold; /* Predominante */
    margin-bottom: 0.5rem;
}

/* Estilo del párrafo */
.carousel-caption p {
    color: #f8f9fa; /* Blanco sutil */
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem;
    margin-top: 0.5rem;
}

/* Indicadores */
.carousel-indicators button {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: #fff;
    border: none;
}

.carousel-indicators .active {
    background-color: #0056b3; /* Verde para resaltar */
}

/* Controles */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(100%); /* Iconos blancos */
}

/* Asegura que el carrusel se vea limpio y profesional */
.carousel-item {
    position: relative;
}

/* Degradado en la parte inferior de las imágenes */
.image-wrapper {
    position: relative;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 500px; /* Altura máxima para mantener el diseño */
    object-fit: cover; /* Ajusta la imagen sin distorsión */
}

.image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%; /* Tamaño del degradado */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none; /* Permite interacción con elementos detrás */
}

.whatsapp-button {
    position: fixed;
    bottom: 80px; /* Más arriba que el botón de scroll */
    right: 20px;
    z-index: 1001;
    transition: transform 0.3s ease-in-out;
}

.whatsapp-button .btn {
    font-size: 20px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: scale(1);
}

.whatsapp-button .btn:hover, 
#scrollToTop:hover {
    transform: scale(1.1); /* Agranda los botones al pasar el mouse */
}

/* Media Queries */
@media (max-width: 768px) {
    .section {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
    }

    .carousel-caption h5 {
        font-size: 2rem; /* Tamaño más pequeño en móviles */
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    }

    .carousel-caption p {
        font-size: 1rem;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);

    }


    .carousel-caption {
        top: 70%; /* Ajusta la posición más abajo en pantallas pequeñas */
    }


    .image-wrapper img {
        max-height: 300px; /* Reduce la altura en pantallas pequeñas */
    }

    .image-wrapper::after {
        height: 30%; /* Aumenta el degradado para mejorar el contraste en textos */
    }

    #scrollToTop {
        padding: 10px;
        font-size: 20px;
    }
}

