body {
    min-width: 320px;
    margin: 0;
    padding-top:6em ;
}

/* Mensaje Alert */

.alert {
    position: fixed;
    z-index: 1000;
    bottom: -100px;
    /* Oculto inicialmente */
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    background-color: rgba(255, 229, 183, 0.938);
    border-radius: 30px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.445);
    transition: bottom 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 0;
    /* Oculto inicialmente */
}

.alert.show {
    bottom: 20px;
    /* Visible cuando se muestra */
    opacity: 1;
}

@media (max-width: 576px) {
    .alert {
        font-size: 14px;
        padding: 10px 20px;
        margin-left: 0;
        width: 80%;
    }
}

/* Estilo del contenedor principal */
.bienvenida-section {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Ocupa toda la altura de la pantalla */

    color: #333;
    /* Texto en color oscuro para buen contraste */
    padding: 80px 0px 90px 0px;
    /* Espacio superior y inferior */

}

/* Contenido centrado */
.welcome-content {
    text-align: center;
}

/* Estilo del título principal */
.welcome-title {
    font-size: 3rem;
    /* Tamaño grande para impacto */
    font-weight: 700;
    /* Texto negrita */
    margin-bottom: 20px;
    color: #000;
    /* Elegante contraste */
    letter-spacing: 1.2px;
}

/* Estilo del subtítulo */
.welcome-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #666;
    /* Color gris suave para el subtítulo */
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Botón principal */
.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2rem;
    color: #fff;
    background-color: #1686ff;
    /* Color azul vibrante */
    border: none;
    border-radius: 30px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #2700b6;
    /* Color de hover más oscuro */
    text-decoration: none;
}

/* Asegura la buena legibilidad en pantallas pequeñas */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2.5rem;
    }

    .welcome-subtitle {
        font-size: 1.2rem;
    }

    .btn-primary {
        font-size: 1rem;
        padding: 12px 24px;
    }
}



.container {
    padding-left: 15px;
    padding-right: 15px;
}

#contacto {
    padding:50px 0 5em 0;
}

.bg-custom {
    background-color: rgb(241, 241, 241);
}

.invalid-feedback {
    color: red;
    font-size: 0.8em;
}

.invalid-feedback-imagen {
    color: red;
    font-size: 0.8em;
}

.is-invalid {
    border-color: red;
}

.is-valid {
    border-color: green;
}

.is-invalid+.invalid-feedback {
    display: block;
}

.is-valid+.valid-feedback {
    display: block;
    color: green;
    font-size: 0.8em;
}

textarea.mensaje {
    font-size: 1rem;
    min-height: 10em;
    resize: vertical;
}

input[type="file"] {
    display: none;
}

.custom-file-upload {
    display: inline-flex;
    padding: 5px 10px;
    cursor: pointer;
    background-color: #6d6d6d;
    color: #fff;
    border-radius: 4px;
}

.custom-file-upload:hover {
    background-color: #464646;
}

.custom-file-upload:active {
    background-color: #333;
}

#preview-container {
    display: flex;
    flex-wrap: wrap;
	padding-bottom: 1em;
}

.preview {
    margin: 5px;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 4px;
    max-width: 100px;
	display: flex;
    flex-direction: column;
    justify-content: flex-end;
}


.preview img {
    max-width: 100%;
    height: auto;
    display: block;
}

.form-container {
            transition: opacity 0.5s ease;
        }
        .hidden {
            display: none;
        }
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.success-message {
    display: none;
    padding: 20px;
    border-radius: 5px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    text-align: center;
    margin-top: 20px;
}

.success-message h3 {
            margin-top: 0;
            font-size: 1.5rem;
        }
.success-message p {
            margin-bottom: 0;
            font-size: 1.25rem;
        }

#generalError {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
}
/* Estilos iniciales para el logo normal e icono */
.navbar-brand {
    position: relative;

}

.logo-icon {
    position: absolute;
    top: 50%;
    left: 80%;
    opacity: 0;
    width: 25px;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.logo-normal {
    width: 120px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
	
}

/* Estilos para el navbar al hacer scroll */
.navbar.bg-custom.fixed-top {
    padding: 15px 15px 15px 15px;
    /* Padding original del navbar */
    transition: padding 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.navbar.bg-custom.fixed-top.scrolled {
    padding: 0px 15px 0 5px;
    /* Padding reducido del navbar al hacer scroll */
    background-color: rgba(241, 241, 241, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar.bg-custom.fixed-top.scrolled .logo-normal {
    opacity: 0;
    transform: scale(0.8);
}

.navbar.bg-custom.fixed-top.scrolled .logo-icon {
    opacity: 1;
    transform: translate(-300%, -50%) scale(1.5);
}

/* Ajuste para cuando el navbar está scrolled y el menú se despliega */
.navbar.bg-custom.fixed-top.scrolled .navbar-collapse {
    transition: height 0.3s ease-in-out, padding 0.3s ease-in-out;
    width: 100%;
    margin: 0;
    padding-left: 15px;
}

.navbar.bg-custom.fixed-top .navbar-collapse.show {

    /* Asegura que el fondo se extienda cuando se despliega el menú */
    background-color: rgba(241, 241, 241, 0.95);
    /* Asegura que el fondo coincida cuando se despliega */
}

.navbar-nav .nav-link {
    text-align: right;
    padding-right: 5px;
}

.link-box {
text-decoration:none;
}

.link-box:hover {
text-decoration:none;
}



.servicios-section {
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.servicios-section .title {
    margin-bottom: 40px;
}

.servicios-section h2 {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.servicios-section p {
    font-size: 16px;
    color: #666;
}

/* Asegura que el contenedor principal use flexbox */
.servicios-section .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /* Distribuye el espacio entre los elementos */

}

/* Estilo de cada caja de servicio */
.servicios-section .service-box {
    background-color: #ffffff;
    /* Color de fondo suave */
    border-radius: 10px;
    /* Bordes redondeados */
    padding: 20px;
    /* Espaciado interno */
    text-align: center;
    margin-bottom: 20px;
    /* Espacio entre las filas */
    margin: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Sombra suave */
    transition: transform 0.3s ease;
    /* Animación al hacer hover */
    flex: 1 1 calc(33.333% - 30px);
    /* Se asegura de que quepan 3 por fila con margen */
}

/* Efecto hover */
.service-box:hover {
    transform: translateY(-10px);
    /* Efecto hover */
}

.icon-wrapper {
    font-size: 40px;
    color: #00aeffcb;
    margin-bottom: 10px;
}

.service-box h3 {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.service-box p {
    font-size: 14px;
    color: #777;
}

/* Ajusta las columnas para pantallas más pequeñas (tablets y móviles) */
@media (max-width: 992px) {
    .servicios-section .service-box {
        flex: 1 1 calc(50% - 30px);
        /* 2 columnas en pantallas medianas */
    }
	/* Efecto hover */
.service-box:hover {
    transform: translateY(0px);
    /* Efecto hover */
}
}

@media (max-width: 576px) {
    .servicios-section .service-box {
        flex: 1 1 100%;
        /* 1 columna en pantallas pequeñas */
    }
	/* Efecto hover */
.service-box:hover {
    transform: translateY(0px);
    /* Efecto hover */
}
}

.footer h2 {
    margin-bottom: 1.5rem;
}

.footer ul li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.social-icons i {
    transition: color 0.3s ease;
}

.social-icons a {
	text-decoration:none;
}

.social-icons a:hover i {
    color: #00aeff;
}

.footer p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Quienes somos */

.legal-text {
    text-align: justify;
    margin-bottom: 20px;
    padding-bottom: 10px; /* Espaciado inferior para separar el texto del borde */
}

.legal-text:not(:last-child) {
    border-bottom: 1px solid #ccc; /* Línea gris solo entre secciones */
}

.main-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 0.2em;
    color: #007bff; /* Puedes cambiar este color si lo prefieres */
	margin-top: 2.5em;
}

.sub-title {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 2.5em;
    color: #6c757d;
    font-style: italic;
}

.legal-text h2 {
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.legal-text p {
    text-align: justify;
    margin-bottom: 1.5em;
}

.legal-text hr {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1.5em 0;
}

.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.floating-buttons:hover {
text-decoration:none;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #007bff;
  color: white;
  border-radius: 50px;
  padding: 10px 16px;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease; /* Transición suave al cambiar color */
}

/* Evitar subrayado o color azul en hover */
.float-btn:hover,
.float-btn:focus {
color:white;
  text-decoration: none;
  outline: none;
  background-color: #0056b3; /* Color más oscuro al hacer hover */
}


.float-btn i {
  font-size: 20px;
}

.float-btn.whatsapp {
color:white;
  background-color: #25d366;
}

.float-btn.whatsapp:hover {
  background-color: #128c7e; /* Oscurece el color de WhatsApp en hover */
}

.floating-buttons.minimized .btn-text {
  display: none;
}

.floating-buttons.minimized .float-btn {
  border-radius: 50%;
  padding: 12px;
  justify-content: center;
  width: 48px;
  height: 48px;
}
