@font-face {
    font-family: 'Nexa-Regular';
    src: url('../fonts/Nexa-Regular.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'Nexa-XBold';
    src: url('../fonts/NexaXBold.otf') format('opentype');
    font-display: swap;
    /* font-weight: bold; */
}

@font-face {
    font-family: 'Nexa-Bold';
    src: url('../fonts/Nexa-Bold.otf') format('opentype');
    font-display: swap;
    font-weight: bold;
}

html, body {
    font-family: 'Nexa-Regular', sans-serif;
}

li::marker {
    font-size: 0;
}

* {
    font-family: 'Nexa-Regular', sans-serif;
}

h1, h2 {
    font-family: 'Nexa-Bold';
    letter-spacing: -1px;
    font-size: 2.5em;
}

h4 {
    font-size: 16px;
    color: #6422db;
    letter-spacing: 1px
}

h4, h5 {
    font-weight: 700;
}

.xbold {
    font-family: 'Nexa-XBold';
}

/* .big-slide h2 { font-size:3em;} */
.bg-primary {
    background-color: #6d47ed !important;
}

.text-primary {
    color: #6d47ed !important;
}

.footer_nav .nav-link {
    color: white;
}

.btn-info {
    background-color: #00dadc;
    color: black;
}

.btn-sm {
    font-size: 12px;
}

.bg-gris {
    background-color: #f4f4f9
}

.bg-gris~.footer-bg {
    background-color: #f4f4f9
}

.radius-bottom-right {
    border-radius: 0 0 8em 0
}

.radius-top-left {
    border-radius: 8em 0 0 0
}

header~.container {
    min-height: 60vh;
}

.triangle-left {
    width: 0;
    height: 0;
    border-left: 0;
    border-right: calc(100vw - 8.8em) solid transparent;
    border-top: 4em solid;
}

.triangle-right {
    width: 0;
    height: 0;
    border-right: 0;
    border-left: calc(100vw - 8.8em) solid transparent;
    border-bottom: 4em solid;
    float: right;
}

.triangle-right~footer, .triangle-left~section, .triangle-right~section {
    clear: both;
}

.triangle-left.bg-violeta {
    border-top-color: #6d47ed;
}

.triangle-left.gris {
    border-top-color: #f4f4f9;
}

.triangle-right.bg-violeta {
    border-bottom-color: #6d47ed;
}

.triangle-right.gris {
    border-bottom-color: #f4f4f9;
}

.input-group .validationMessage {
    position: absolute;
    top: 37px;
    z-index: 1;
    right: 0;
    max-width: 250px;
    box-shadow: 0 0.1rem 0.5rem rgba(0, 0, 0, 0.3) !important;
}

.validationMessage {
    background-color: #dc3545 !important;
    font-size: 12px;
    padding: 4px 7px;
    color: #fff;
    text-align: center;
    background-color: #000;
    border-radius: 0.25rem;
}

.active-amarillo {
    background-color: #ffff86;
}

#myCarousel .carousel-item {
    background-repeat: no-repeat;
    background-size: contain;
}

.caption-animate .carousel-item.active .carousel-caption {
    left: 5%;
    top: 15vh;
    bottom: auto;
    margin-top: 5%;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    background-color: rgba(255, 255, 255, 0.9);
}

.caption-animate .carousel-item.active .carousel-caption.infinite {
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
}

.caption-animate .carousel-item.active .carousel-caption.hinge {
    -webkit-animation-duration: 2s;
    animation-duration: 2s;
}

.caption-animate .carousel-item.active .carousel-caption.flipOutX,
.caption-animate .carousel-item.active .carousel-caption.flipOutY,
.caption-animate .carousel-item.active .carousel-caption.bounceIn,
.caption-animate .carousel-item.active .carousel-caption.bounceOut {
    -webkit-animation-duration: .75s;
    animation-duration: .75s;
}

.carousel-caption {
    z-index: 10;
}

#myCarousel .carousel-item .container {
    position: relative;
}

.caption-animate .carousel-item.active .carousel-caption.text-end {
    left: auto;
    right: 0;
}

#myCarousel .carousel-item {
    height: 60vh;
}

#myCarousel .carousel-item>img {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    height: 460px;
}

.card_new .card-body {
    padding: 16px;
}

.label-container {
    position: fixed;
    bottom: 48px;
    right: 105px;
    display: table;
    visibility: hidden;
}

.label-container-borrar {
    position: fixed;
    bottom: 118px;
    right: 105px;
    display: table;
    visibility: hidden;
}

.label-text {
    color: #FFF;
    background: rgba(51, 51, 51, 0.5);
    display: table-cell;
    vertical-align: middle;
    padding: 10px;
    border-radius: 3px;
}

.label-arrow {
    display: table-cell;
    vertical-align: middle;
    color: #333;
    opacity: 0.5;
}

.float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-image: linear-gradient(to top, #0ba360 0%, #3cba92 100%);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 7px #000;
    animation: bot-to-top 2s ease-out;
}

.float-borrar {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 110px;
    right: 40px;
    background-image: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 7px #000;
    animation: bot-to-top 2s ease-out;
}

.float-categorias {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 180px;
    right: 40px;
    background-image: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 7px #000;
    animation: bot-to-top 2s ease-out;
}

.my-float {
    font-size: 24px;
    margin-top: 18px;
}

a.float+div.label-container {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s ease;
}

a.float-borrar:hover+div.label-container-borrar {
    visibility: visible;
    opacity: 1;
}

a.float-borrar+div.label-container-borrar {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s ease;
}

a.float:hover+div.label-container {
    visibility: visible;
    opacity: 1;
}

.ft-centered .ft-material span,
.ft-centered .ft-material i {
    display: inline-block;
    border: 1px solid #f8f8f8;
    border-radius: 100px;
    background: #fff;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    color: #6d47ed
}

.ft-centered .ft-material:hover span,
.ft-centered .ft-material:hover i {
    -webkit-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    transform: translateY(-10px);
    box-shadow: 0 22px 43px rgba(0, 0, 0, 0.15);
}

.ft-centered .ft-item {
    text-align: center;
}

.ft-centered .ft-item h5 {
    margin-top: 30px;
    margin-bottom: 20px;
    height: 50px;
}

.ft-centered .ft-item span {
    padding: 0;
    width: 110px;
    height: 110px;
    font-size: 45px;
    line-height: 109px;
}

.ft-hover-item .ft-item {
    position: relative;
    height: 440px;
    -webkit-transition: all 0.4s;
    transition: all 0.4s;
}

.ft-hover-item .ft-item .content-wrapper {
    position: absolute;
    left: 3vw;
    right: 3vw;
    bottom: 0;
    text-shadow: 1px 1px 3px #333;
    -webkit-transition: all 0.4s;
    transition: all 0.4s;
}

.ft-hover-item .ft-item .content-wrapper h3 {
    margin: 0;
    padding-bottom: 45px;
    color: #ececec;
    text-decoration: none;
}

.ft-hover-item .ft-item .content-wrapper p {
    margin: 0;
    padding-bottom: 45px;
    color: #ececec;
}

.ft-hover-item .ft-item .content-wrapper .ft-button {
    opacity: 0;
}

.ft-hover-item .ft-item:hover .bg-overlay {
    background: rgba(17, 17, 17, 0.8);
}

.ft-hover-item .ft-item:hover .content-wrapper {
    bottom: 100px;
}

.ft-hover-item .ft-item:hover .content-wrapper .ft-button {
    opacity: 1;
}

.ft-hover-item .ft-2 .bg-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.55);
    -webkit-transition: background 0.4s;
    transition: background 0.4s;
}

.ft-hover-item .ft-2 {
    background-color: #ccc;
    background-repeat: no-repeat;
    background-size: counter-reset;
    /* background-size: auto 100%; */
    background-position: left;
}

.ft-hover-item .ft-2 .bg-overlay {
    background: rgba(17, 17, 17, 0.4);
}

@media (min-width: 780px) {

    #myCarousel .carousel-item.start {
        background-position: right;
    }

    #myCarousel .carousel-item.end {
        background-position: left;
    }

    #myCarousel .carousel-caption {
        max-width: 43%;
    }

    #myCarousel .carousel-caption h2, #myCarousel .carousel-caption h1 {
        font-size: 46px;
        line-height: 1em;
    }
}

@media (max-width: 780px) {

    #myCarousel .carousel-caption {
        position: relative !important;
        top: auto;
    }

    #myCarousel .carousel-item {
        height: 45vh;
        background-position: right bottom
    }

}


@media (min-width: 40em) {
    #myCarousel .carousel-caption p {
        margin-bottom: 1.25rem;
        font-size: 1.25rem;
        line-height: 1.4;
    }

}

@media(max-width : 480px) {
    .radius-bottom-right {
        border-radius: 0 0 2em 0
    }

    .radius-top-left {
        border-radius: 2em 0 0 0
    }

    .triangle-left {
        width: 0;
        height: 0;
        border-left: 0;
        border-right: calc(100vw - 2em) solid transparent;
        border-top: 2em solid;
        position: absolute;
    }

    .triangle-right {
        width: 0;
        height: 0;
        border-right: 0;
        border-left: calc(100vw - 2em - 1px) solid transparent;
        border-bottom: 2em solid;
        margin-left: 2em;
    }

    .triangle-left.bg-violeta {
        border-top-color: #6d47ed;
    }

    .triangle-right.bg-violeta {
        border-bottom-color: #6d47ed;
    }

    .triangle-right.gris {
        border-bottom-color: #f4f4f9;
    }

}

.ficha-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    margin-bottom: 16px;
}

.ficha-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #ede9fe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ficha-avatar i {
    font-size: 1.6rem;
    color: #6422db;
}

.ficha-nombre {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.ficha-edad {
    font-size: .82rem;
    color: #6b7280;
    margin-top: 2px;
}

.ficha-cliente-desde {
    font-size: .78rem;
    color: #6b7280;
    margin-top: 3px;
}

.badge-frecuente {
    background: #ede9fe;
    color: #6422db;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .75rem;
    font-weight: 600;
}

.dato-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f5;
}

.dato-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9ca3af;
    margin-bottom: 2px;
}

.dato-valor {
    font-weight: 500;
    font-size: .9rem;
}

.ficha-tabs-wrap {
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 16px;
}

.ficha-tab {
    border: none;
    background: transparent;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 6px 10px;
    font-size: .78rem;
    font-weight: 500;
    color: #6b7280;
    margin-right: 2px;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all .15s;
}

.ficha-tab:hover {
    color: #6422db;
}

.ficha-tab.active {
    color: #6422db;
    border-bottom: 3px solid #6422db;
    font-weight: 700;
    background: transparent;
}

/* Turnos */
.turno-item {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    margin-bottom: 8px;
}

.turno-item.proximo {
    border-left: 4px solid #6422db;
    background: #f9f8ff;
}

.turno-item.pasado {
    border-left: 4px solid #d1d5db;
}

.turno-fecha-bloque {
    min-width: 42px;
}

.turno-dia {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}

.turno-mes {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6422db;
}

.turno-anio {
    font-size: .65rem;
    color: #9ca3af;
}

.turno-hora {
    font-size: .75rem;
    font-weight: 600;
    color: #6b7280;
    margin-top: 2px;
}

.badge-proximo {
    background: #6422db;
    color: #fff;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .75rem;
    font-weight: 600;
}

/* Evolución inline - mismo bloque que el servicio, no empuja la card */
.turno-evolucion {
    font-size: .78rem;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.4;
}

.turno-evolucion b {
    color: #374151;
    font-weight: 600;
}

/* Resumen lateral */
.resumen-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.resumen-item:last-child {
    border-bottom: none;
}

.resumen-icono {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-altura-min {
    min-height: 72px;
}
