/********** Template CSS **********/
:root {
    --primary: #b1885c;
    --secondary: #b7d5ee;
    --light: #f3eedc;
    --dark: #12141D;
    --accent: #7c6a56;
    --accent-secondary: #e0908d; /* Rosado claro */
}

.back-to-top {
    position: fixed;
    display: flex !important;
    align-items: center;
    justify-content: center;
    right: 45px;
    bottom: 45px;
    z-index: 9999;
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

.back-to-top i {
    line-height: 0;
    color: var(--dark) !important;
}

.back-to-top:hover {
    background-color: transparent !important;
}

.back-to-top:hover i {
    color: var(--secondary) !important;
}

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

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


/*** 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 ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.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;
}

.btn-cv,
.form-submit-btn {
    color: var(--dark) !important;
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

.btn-cv:hover,
.form-submit-btn:hover {
    color: var(--secondary) !important;
    background-color: transparent !important;
}

.btn-contact {
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 30px;
    color: #FFFFFF;
    transition: .5s;
}

.btn-contact-phone {
    background-color: #28a745;
    border: 2px solid #28a745;
}

.btn-contact-phone:hover {
    color: #28a745;
    background-color: transparent;
}

.btn-contact-email {
    background-color: #dc3545;
    border: 2px solid #dc3545;
}

.btn-contact-email:hover {
    color: #dc3545;
    background-color: transparent;
}

.btn-contact-whatsapp {
    background-color: #25D366;
    border: 2px solid #25D366;
}

.btn-contact-whatsapp:hover {
    color: #25D366;
    background-color: transparent;
}

.form-submit-btn {
    font-weight: 600;
    transition: .5s;
}

.form-submit-btn:hover {
    color: var(--secondary) !important;
    background-color: transparent !important;
}


/*** Navbar ***/
.navbar.fixed-top {
    display: none;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    padding: 20px 15px;
    color: var(--dark);
    font-size: 18px;
    font-weight: 600;
    outline: none;
}

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

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        padding: 10px 0;
    }
}


/*** Header ***/
#home {
    margin-bottom: 6rem;
    background: url(../img/background.png) center center no-repeat;
    background-size: cover;
    position: relative;
}

#home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

#home .container {
    position: relative;
    z-index: 2;
}

.typed-cursor {
    font-size: 30px;
    color: var(--dark);
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--primary);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** About ***/
#about .years .display-1 {
    font-size: 10rem;
    line-height: 9rem;
}

#about .years h5 {
    letter-spacing: 30px;
    margin-right: -30px;
}

#about .container .row .col-lg-6 h3.lh-base {
    color: var(--primary) !important;
    font-weight: 700 !important;
    transform: scale(1.03);
}


/*** Skills ***/
#skill .progress {
    height: 5px;
    border-radius: 5px;
}

#skill .progress .progress-bar {
    width: 0px;
    border-radius: 5px;
    transition: 3s;
}

#skill .nav-pills .nav-link {
    color: var(--dark);
    transition: all 0.3s ease !important;
}

#skill .nav-pills .nav-link.active {
    color: #FFFFFF;
    background-color: var(--primary) !important;
    box-shadow: 0 4px 8px rgba(177, 136, 92, 0.2);
}

#skill .tab-content hr {
    width: 30px;
}


/*** Service ***/
.service-item .bg-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../img/bg-icon.png) center center no-repeat;
    background-size: cover;
}

.service-item h6 span {
    color: var(--primary) !important; 
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-img {
    position: relative;
}

.portfolio-btn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(98, 68, 197, .9);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 30px;
    padding-bottom: 100px !important;
    opacity: 0;
    transition: .5s;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
    padding-bottom: 30px !important;
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    opacity: .7;
}

.team-item .team-text {
    position: absolute;
    left: 0;
    right: 60px;
    bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    right: 30px;
    opacity: 1;
}

.team-item .team-text div {
    transition: .5s;
}

.team-item:hover .team-text div {
    margin-left: 30px;
}


/*** Testimonial ***/
.testimonial-left,
.testimonial-right {
    position: relative;
}

.testimonial-left img,
.testimonial-right img {
    position: absolute;
    padding: 5px;
    border: 1px solid var(--secondary);
    border-radius: 70px;
}

.testimonial-left img:nth-child(1),
.testimonial-right img:nth-child(3) {
    width: 70px;
    height: 70px;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-left img:nth-child(2),
.testimonial-right img:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.testimonial-left img:nth-child(3),
.testimonial-right img:nth-child(1) {
    width: 50px;
    height: 50px;
    bottom: 10%;
    right: 10%;
}

.testimonial-carousel .owl-item img {
    width: 120px;
    height: 120px;
}

.testimonial-carousel .testimonial-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 1px solid var(--secondary);
    border-radius: 60px;
}

.testimonial-carousel .owl-dots {
    height: 40px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 30px;
    height: 30px;
    background: #FFFFFF;
    border: 2px solid var(--secondary);
    border-radius: 30px;
    transition: .5s;
}

.testimonial-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 16px;
    height: 16px;
    top: 5px;
    left: 5px;
    border-radius: 16px;
    background: var(--secondary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active::after {
    background: var(--primary);
}

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

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.4);
}

/* Animación de pulso para llamar la atención */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

/* Estilos responsivos para móviles */
@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 75px;
        right: 15px;
        font-size: 25px;
    }
}

.lead:hover {
    color: #b1885c !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.nav-pills .nav-link {
    transition: all 0.3s ease !important;
}

.nav-pills .nav-link.active {
    background-color: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 8px rgba(177, 136, 92, 0.2);
}

.nav-pills .nav-link:hover:not(.active) {
    color: var(--primary) !important;
    transform: translateY(-2px);
}

/* Viñetas para la sección "Lo que puedo aportar" */
#aportes .btn-square.bg-primary {
    background-color: var(--secondary) !important; /* Celeste (#b7d5ee) */
}

/* Para forzar el color celeste en el botón Back to Top */
.btn.btn-lg.btn-secondary.btn-lg-square.back-to-top {
    background-color: var(--secondary) !important; 
    border-color: var(--secondary) !important;
    color: var(--dark) !important;
}

.btn.btn-lg.btn-secondary.btn-lg-square.back-to-top:hover {
    background-color: transparent !important;
    color: var(--secondary) !important;
}

.btn.btn-lg.btn-secondary.btn-lg-square.back-to-top i {
    color: var(--dark) !important;
}

.btn.btn-lg.btn-secondary.btn-lg-square.back-to-top:hover i {
    color: var(--secondary) !important;
}

/* Fechas en Experiencia a dorado */
.text-primary {
    color: var(--primary) !important;
}

/* Texto typedtext a dorado */
.typed-text-output {
    color: var(--primary) !important;
}

html.at-top .back-to-top {
    display: none !important;
}

/* Texto en negritas para contacto */
.col-lg-5 .mb-2 {
    font-weight: 700 !important;
    color: var(--primary) !important; /* Dorado: #b1885c */
}

/* Nuevo estilo con el color rosado */
.accent-pink-border {
    border: 2px solid var(--accent-secondary);
    transition: all 0.3s ease;
}

.accent-pink-border:hover {
    box-shadow: 0 0 15px var(--accent-secondary);
    transform: translateY(-3px);
}

/* Aplicando el color rosado al formulario */
#contact .form-control:focus {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 8px var(--accent-secondary);
}

#contact .form-submit-btn {
    background-color: var(--accent-secondary) !important;
    border-color: var(--accent-secondary) !important;
}

#contact .form-submit-btn:hover {
    color: var(--accent-secondary) !important;
    background-color: transparent !important;
}

/* Selector más directo para el nombre en el navbar */
.navbar-brand h1, 
.navbar-brand h1 span {
    background: linear-gradient(to right, var(--secondary), var(--accent-secondary)) !important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* O también podríamos usar !important para forzarlo */
.navbar .navbar-brand {
    background-color: var(--accent-secondary) !important;
}

.navbar-brand.bg-primary {
    background: linear-gradient(to right, var(--secondary), var(--accent-secondary)) !important;
    border-color: var(--accent-secondary) !important;
}

.navbar-brand.bg-primary h1 {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    background: none !important;
}

/* Específico para dispositivos móviles también */
.navbar-brand h1.text-light, 
.navbar-brand h1.text-primary,
.navbar-brand .fw-bold {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    background: none !important;
}