/* Paleta de colores:
   #8c2223  (rojo oscuro)
   #545454 (gris oscuro)
*/

body{
    font-family: "Nunito", sans-serif;
    background-color: #f5f5f5;
    color: #545454;
}
a{
    transition: 0.5s;
    text-decoration: none;
    color: #545454;
}
a:hover {
    color: #8c2223;
}

/* ======= HEADER STYLES ======= */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(84,84,84,0.15);
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 100px;
    transition: all 0.3s ease;
}

.nav__menu__inicio {
    color: #000 !important;
    font-family: 'Nunito';
    font-size: 16px;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: all 0.3s ease;
}

.nav__menu__inicio:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #8c2223;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav__menu__inicio:hover {
    color: #000 !important;
}

.nav__menu__inicio:hover:after {
    width: 70%;
    background: #8c2223;
}

.active__header {
    color: #000 !important;
    font-weight: 700;
}

.active__header:after {
    width: 70%;
    background: #8c2223;
}

.btn-contacto {
    background-color: #8c2223;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
    border: 2px solid #8c2223;
}

.btn-contacto:hover {
    background-color: transparent;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(140,34,35,0.25);
    border-color: #8c2223;
}

.navbar-toggler {
    border-color: #8c2223;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(140,34,35,0.25);
}

/* Estilos adicionales para navbar collapse */
.navbar-collapse {
    transition: all 0.3s ease;
}

/* ======= FOOTER STYLES ======= */
footer {
    background-color: #fff;
    padding: 70px 0 40px;
    position: relative;
    z-index: 0;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
}

.footer__secciones {
    color: #000;
    font-family: 'Nunito';
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    margin-bottom: 25px;
    display: inline-block;
    position: relative;
}

.footer__secciones::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: #8c2223;
}

.nav__footer {
    color: #000 !important;
    font-family: 'Nunito';
    font-size: 16px;
    font-weight: 400;
    padding: 8px 0;

    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    position: relative;
}

.nav__footer:hover {
    color: #000 !important;

    transform: translateX(5px);
}

.nav__footer:hover::before {
    width: 100%;
}

.nav__footer::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #8c2223;
    transition: width 0.3s ease;
}

/* Contact Info Styles */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
       background: #8c2223;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    background: #8c2223;
    color: #ffffff;
}
.contact-item:hover i {
   
    color: #ffffff;
}
/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    font-size: 14px;
    color: #000;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
        background: #8c2223;
    color: #ffffff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #8c2223;
    color: #ffffff;
    transform: translateY(-5px);
}

.text-footer {
    color: #000;
    font-family: 'Nunito';
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 20px;
}
.text-by {
    color: #000;
    font-family: 'Nunito';
    font-size: 16px;
    font-weight: 400;
}

/* WhatsApp Button */
.whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #0DC143;
    color: #FFF !important;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp:hover {
    background-color: #545454;
    transform: scale(1.1) rotate(10deg);
}

.whatsapp::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: rgba(140, 34, 35, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    70% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* ======= FORM STYLES ======= */
.form-section {
    padding: 4rem 0;
    height: 100%;
    background-color: #f5f5f5;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    border: 2px solid #8c2223;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #8c2223;
}

.form-section .section-title {
    position: relative;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #545454;
}

.form-section .section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: #8c2223;
}

/* Form Controls */
.form-control, .form-select {
    border: 2px solid #545454;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(84,84,84,0.05);
    color: #545454;
}

.form-control:focus, .form-select:focus {
    border-color: #8c2223;
    box-shadow: 0 0 0 3px rgba(140,34,35,0.15);
    background-color: #fff;
}

.form-floating > .form-control, 
.form-floating > .form-select {
    height: 60px;
    padding: 1.5rem 0.75rem 0.75rem;
}

.form-floating > label {
    padding: 1rem 0.75rem;
    color: #545454;
    transition: all 0.2s ease-in-out;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select:focus ~ label {
    color: #8c2223;
    font-weight: 500;
}

.invalid-feedback {
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
    color: #8c2223;
}

.form-text {
    font-family: 'Nunito';
    font-size: 14px;
    color: #545454;
    margin-top: 10px;
}

.form-text .text-danger {
    font-weight: 700;
    color: #8c2223;
}

.form-section .btn-contacto {
    font-size: 16px;
    padding: 10px 30px !important; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(84,84,84,0.1);
    background: #8c2223;
    color: #ffffff !important;
    border-radius: 30px;
    border: none;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}
.form-section .btn-contacto:hover {
    background: #545454;
    color: #ffffff !important;
}

/* ======= RESPONSIVE STYLES ======= */
@media (max-width: 992px) {
    .navbar-brand img {
        max-height: 40px;
    }
    
    .nav__menu__inicio, .btn-contacto {
        font-size: 14px;
        padding: 8px 12px !important;
    }
    
    .navbar-collapse {
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 10px;
        margin-top: 10px;
    }
    
    .nav__menu__inicio {
        text-align: center;
        padding: 12px !important;
    }
    
    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .btn-contacto {
        display: block;
        width: 100%;
        margin-top: 10px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-item {
        flex-direction: row;
        align-items: center;
        gap: 5px;
    }
    
    .contact-item i {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .footer__secciones {
        font-size: 18px;
        margin-top: 20px;
    }
    
    .nav__footer {
        font-size: 14px;
    }
    
    .whatsapp {
        width: 50px;
        height: 50px;
        font-size: 24px;
        right: 20px;
        bottom: 20px;
    }
}




