/********** Custom CSS **********/
:root {
    --primary: #f92626;
    --secondary: #585858;
    --light: #fefefe;
    --dark: #1e1e1e;
    --gray: #ececec;
}

/* Gotham */
@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham/Gotham-Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham/Gotham-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* Amplitude */
@font-face {
    font-family: 'Amplitude';
    src: url('../fonts/Amplitude/Amplitude_Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'Amplitude';
    src: url('../fonts/Amplitude/Amplitude_Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

body {
    font-family: 'Gotham', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Amplitude', sans-serif;
}

.btn {
    font-weight: 700;
    transition: .5s;
}

.btn:hover {
    -webkit-box-shadow: 0 8px 6px -6px #555555;
    -moz-box-shadow: 0 8px 6px -6px #555555;
    box-shadow: 0 8px 6px -6px #555555;
}

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

.btn-square {
    width: 36px;
    height: 36px;
}

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

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

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

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

.navbar-dark .navbar-nav .nav-link {
    position: relative;
    margin-left: 30px;
    padding: 35px 0;
    font-size: 18px;
    color: var(--light);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
}

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

@media (min-width: 992px) {
    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}

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

@media (max-width: 991.98px) {
    .bg-hero {
        background: url(../img/hero.jpg) top left no-repeat;
        background-size: cover;
    }
}

.about-start,
.about-end {
    background: url(../img/about-bg.jpg) center center no-repeat;
    background-size: contain;
}

@media (min-width: 992px) {
    .about-start {
        position: relative;
        margin-right: -90px;
        z-index: 1;
    }

    .about-end {
        position: relative;
        margin-left: -90px;
        z-index: 1;
    }
}

.service-item,
.contact-item {
    background-size: cover;
    transition: .5s;
}

.service-item .service-icon,
.contact-item .contact-icon {
    margin-top: -10rem;
    color: var(--secondary);
}

.service-item .service-icon div,
.contact-item .contact-icon div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.service-item .service-icon i,
.contact-item .contact-icon i {
    transform: rotate(45deg);
    transition: .5s;
}

.service-item:hover .service-icon i,
.contact-item:hover .contact-icon i {
    color: var(--primary);
}

.service-item a.btn {
    position: relative;
    bottom: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: 0;
    opacity: 1;
}

.bg-quote {
    background: url(../img/quote.jpg) top right no-repeat;
    background-size: contain;
}

@media (max-width: 991.98px) {
    .bg-quote {
        background-size: cover;
    }
}

.team-item {
    position: relative;
    margin-bottom: 45px;
}

.team-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: url(../img/team.jpg) bottom center no-repeat;
    background-size: cover;
    height: 90px;
    padding: 0 30px;
    right: 45px;
    left: 45px;
    bottom: -45px;
    transition: .5s;
    z-index: 1;
}

.team-item:hover .team-text {
    height: 100%;
    bottom: 0;
}

.team-social {
    position: absolute;
    transition: .1s;
    transition-delay: .0s;
    opacity: 0;
}

.team-item:hover .team-social {
    transition-delay: .3s;
    opacity: 1;
}

.bg-testimonial {
    background: url(../img/testimonial.jpg) top left no-repeat;
    background-size: contain;
}

#accordionFlushExample{
    margin-top: 10rem !important;
}

@media (max-width: 991.98px) {
    .bg-testimonial {
        background-size: cover;
    }

    #accordionFlushExample, .accordion-item{
        margin-top: 3rem !important;
    }
}

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

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next{
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--secondary);
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

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

.bg-call-to-action {
    background: url(../img/call-to-action.jpg) top right no-repeat;
    background-size: contain;
}

.bg-footer {
    background: url(../img/backgound-red.png) center center no-repeat;
    background-size: cover;
}

@media (max-width: 991.98px) {
    .bg-call-to-action,
    .bg-footer {
        background-size: cover;
    }

    .column-beneficios{
        width: 70%;
    }

    .column-beneficios, .column-beneficio-a{
        margin-right: 0 !important;
        border-right: 0 !important;
        margin-bottom: 1rem;
    }

    #accordionFlushExample{
        margin-top: 0rem !important;
    }
}

@media (min-width: 1200px) {
    .column-beneficios{
        width: 70% !important;
    }
}

.bg-primary {
    background-color: var(--primary) !important
}

.bg-secondary {
    --bs-bg-opacity: 1;
    background-color: var(--secondary) !important;
}

.bg-dark {
    background-color: var(--dark) !important
}

.bg-gray{
    background-color: var(--gray) !important;
}
.border-primary {
    border-color: var(--primary) !important
}

.text-primary {
    color: var(--primary) !important
}

.text-secondary {
    color: var(--secondary) !important;
}

.btn{
    border: 0 !important;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: #8c1717 !important
}

.btn-primary:hover {
    background-color: #8c1717  !important;
    border-color: var(--primary) !important
}

.btn-outline-primary {
    border: 2px solid var(--primary) !important;
    color: var(--secondary) !important
}

.btn-outline-primary:hover{
    background-color: var(--gray) !important;
}

.accordion-button {
    background: url(../img/backgound-red.png) top center no-repeat !important;
}

.accordion-item {
    border: var(--bs-accordion-border-width) solid #ffffff;
}

.column-beneficios{
    width: 100%;
}
.column-beneficios, .column-beneficio-a{
    margin-right: 0 !important;
    border-right: 0 !important;
    margin-bottom: 1rem;
}

/* Botones sociales fijos */
.social-buttons {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-200%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.social-btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-btn:hover::before {
    left: 100%;
}

.facebook-btn {
    background: linear-gradient(45deg, #ec1b22, #f72626);
}

.facebook-btn:hover {
    background: linear-gradient(45deg, #166fe5, #1976d2);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
    color: white;
}

.whatsapp-btn {
    background: linear-gradient(45deg, #ec1b22, #f72626);
}

.whatsapp-btn:hover {
    background: linear-gradient(45deg, #20bd5a, #075e54);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

/* Efecto de pulso */
.social-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.social-btn:hover::after {
    width: 100%;
    height: 100%;
}

/* Tooltip */
.social-btn .tooltip-text {
    position: absolute;
    left: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.social-btn .tooltip-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -5px;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: rgba(0, 0, 0, 0.8);
}

.social-btn:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    left: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-buttons {
        left: 10px;
        top: auto;
        bottom: 20px;
        transform: none;
        flex-direction: row;
        gap: 10px;
    }

    .social-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .social-btn .tooltip-text {
        display: none;
    }

    .card{
        --bs-border-radius:0;
    }
}

@media (max-width: 480px) {
    .social-buttons {
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;
    }

    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Animación de entrada */
@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.social-buttons {
    animation: slideInLeft 0.8s ease-out;
}

/* Efecto de respiración */
@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.social-btn.breathe {
    animation: breathe 2s ease-in-out infinite;
}

.accordion-button::after {
    filter: brightness(0) invert(1); /* Esto convierte la flecha en blanco */
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1); /* También en estado expandido */
}

.whatsapp-contact:hover {
    text-decoration: none;
    opacity: 0.8;
    transition: 0.3s;
}

@media (max-width: 991.98px) {
    .whatsapp-contact {
        padding-left: 1.5rem;
        padding-top: 1rem;
    }

    .whatsapp-contact i {
        font-size: 1.5rem;
    }

    .whatsapp-contact div {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    .whatsapp-contact small,
    .whatsapp-contact span {
        margin: 0;
        font-size: 0.9rem;
    }

    .hero-wrapper {
        background-color: rgba(30, 30, 30, 0.38) !important;
    }
}

.hero-wrapper {
    background-color: var(--dark);
}

.hero-wrapper .carousel-inner img {
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.hero-wrapper {
    position: relative;
    background: linear-gradient(to bottom, #121212 80%, #ffffff 20%);
    z-index: 0;
}