/********** Template CSS **********/
:root {
    --primary: #2e387e;
    --secondary: #962a67;
    --light: #e1cfd7;
    --dark: #111111; /* Lo dejamos igual por accesibilidad */
}


.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.bg-icono {
    background: url(../img/bg-icon.png) center center repeat;
    background-size: contain;
}


.bg-icon {
    position: relative;
    z-index: 1;
    background: url(../img/bg-icon.png) center center repeat;
    background-size: contain;
}

.bg-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4); /* Blanco semitransparente encima */
    z-index: -1;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button (modificado para TonalliTech Academy) ***/
.btn {
    font-weight: 500;
    transition: .5s;
    border-radius: 8px;
}

/* Botones principales con tonos personalizados */
.btn.btn-primary {
    background-color: #962a67; /* morado fuerte */
    border-color: #962a67;
    color: #FFFFFF;
}

.btn.btn-secondary {
    background-color: #2e387e; /* azul oscuro pastel */
    border-color: #2e387e;
    color: #FFFFFF;
}

/* Hover de botones outline */
.btn.btn-outline-primary:hover {
    background-color: #962a67;
    border-color: #962a67;
    color: #FFFFFF;
}

.btn.btn-outline-secondary:hover {
    background-color: #2e387e;
    border-color: #2e387e;
    color: #FFFFFF;
}

/* Botones redondos de diferentes tamaños */
.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    background-color: #b487b4; /* lila suave para botones neutros */
    color: #fff;
    border: none;
}


/*** Navbar (modificado para TonalliTech Academy) ***/
.fixed-top {
    transition: .5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(46, 56, 126, 0.2); /* Azul pastel más suave */
    background-color: #e1cfd7; /* Fondo claro pastel */
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    padding: 25px 15px;
    color: #7c2f6b; /* Morado pastel para los enlaces */
    font-weight: 500;
    outline: none;
    transition: color 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #2e387e; /* Azul más oscuro al hacer hover o cuando está activo */
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: #fef7fa; /* tono rosa pastel muy suave */
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
        background-color: #e1cfd7; /* fondo del dropdown en pastel claro */
        border: 1px solid #962a67; /* sutil borde rosa oscuro */
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
    border-radius: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/carousel-1.jpg) top right no-repeat;
    background-size: cover;
}

.page-headere {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/carouselb.jpg) top right no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Section Header ***/
.section-header {
    position: relative;
    padding-top: 25px;
}

.section-header::before {
    position: absolute;
    content: "";
    width: 60px;
    height: 2px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary); /* púrpura suave */
}

.section-header::after {
    position: absolute;
    content: "";
    width: 90px;
    height: 2px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary); /* lila o púrpura oscuro */
}

.section-header.text-start::before,
.section-header.text-start::after {
    left: 0;
    transform: translateX(0);
}



/*** About ***/
.about-img img {
    position: relative;
    z-index: 2;
}

.about-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background-image: -webkit-repeating-radial-gradient(#ffffff, #f3f0f5 5px, transparent 5px, transparent 10px);
    background-image: -moz-repeating-radial-gradient(#ffffff, #f3f0f5 5px, transparent 5px, transparent 10px);
    background-image: -ms-repeating-radial-gradient(#ffffff, #f3f0f5 5px, transparent 5px, transparent 10px);
    background-image: -o-repeating-radial-gradient(#ffffff, #f3f0f5 5px, transparent 5px, transparent 10px);
    background-image: repeating-radial-gradient(#ffffff, #f3f0f5 5px, transparent 5px, transparent 10px);
    background-size: 20px 20px;
    transform: skew(20deg);
    z-index: 1;
}


/*** Product ***/
.nav-pills .nav-item .btn {
    color: #2e1534; /* púrpura oscuro como texto base */
}

.nav-pills .nav-item .btn:hover,
.nav-pills .nav-item .btn.active {
    color: #ffffff;
    background-color: #a26ea1; /* púrpura suave como fondo activo/hover */
}

.product-item {
    box-shadow: 0 0 45px rgba(46, 21, 52, 0.07); /* sombra púrpura muy tenue */
}

.product-item img {
    transition: .5s;
}

.product-item:hover img {
    transform: scale(1.1);
}

.product-item small a:hover {
    color: #e0b6ec !important; /* lila suave como color de hover en links */
}



/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item img {
    width: 60px;
    height: 60px;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #a26ea1 !important; /* púrpura suave */
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #ffffff !important;
}

.testimonial-carousel .owl-item.center .testimonial-item i {
    color: #e0b6ec !important; /* lila suave de acento */
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e1534; /* púrpura oscuro (en lugar de var(--dark)) */
    border: 2px solid #a26ea1; /* mismo púrpura suave */
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #ffffff;
    background: #a26ea1;
}



/*** Footer ***/
.footer {
    color: #bfaecf; /* texto gris-lila suave */
    background-color: #2e1534; /* fondo púrpura oscuro para contraste */
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #bfaecf;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #bfaecf;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: #f1e6f9; /* lila claro suave al pasar el cursor */
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .copyright a {
    color: #f1e6f9; /* enlaces en lila claro */
}

.footer .copyright a:hover {
    color: #b487b4; /* tono morado más visible al hacer hover */
}
