@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    .title {
        @apply text-2xl xl:text-4xl  font-bold text-center text-primary uppercase;
    }
    .subtitle {
        @apply text-xl md:text-2xl   font-bold text-primary text-center uppercase  tracking-wider;
    }
    .texto {
        @apply text-gray-700 font-semibold tracking-wide text-justify leading-7  xl:text-base text-sm;
    }
}

:root {
    --primary: #0b95ba;
    /* --primary: #0d97bb; */
    --paper: #ffffff;
    --light: #ffffff;
}

@font-face {
    font-family: "Font-Thin";
    src: url("/fonts/Poppins-Thin.ttf");
    font-display: swap;
}

@font-face {
    font-family: "Font-Light";
    src: url("/fonts/poppins/Poppins-Light.ttf");
    font-display: swap;
}

@font-face {
    font-family: "Font-Regular";
    src: url("/fonts/poppins/Poppins-Regular.ttf");
    font-display: swap;
}
@font-face {
    font-family: "Font-Medium";
    src: url("/fonts/poppins/Poppins-Medium.ttf");
    font-display: swap;
}

@font-face {
    font-family: "Font-Bold";
    src: url("/fonts/poppins/Poppins-Bold.ttf");
    font-display: swap;
}

@font-face {
    font-family: "Font-Black";
    src: url("/fonts/poppins/Poppins-Black.ttf");
    font-display: swap;
}

html,
body {
    font-family: Font-Light, sans-serif;
    scroll-behavior: smooth;
}
@layer utilities {
    .delay-custom-transform-1 {
        transition: transform var(--delay-custom-transform-1) ease;
    }
    .delay-custom-1 {
        transition: all var(--delay-custom-1) ease;
    }
}
.shadow-custom {
    box-shadow: 0px -2px 4px rgba(0, 0, 0, 0.05), 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* arrow */
.slick-arrow,
.slick-arrow {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 45px !important;
    height: 45px !important;
    position: absolute !important;
    z-index: 10;
}
.slick-next {
    right: 10px !important;
}
.slick-prev {
    left: -10px !important;
}

.servicios-section .slick-arrow,
.servicios-section .slick-prev:before,
.servicios-section .slick-next:before {
    color: var(--primary) !important;
}
.servicios-section .slick-prev:before,
.servicios-section .slick-next:before {
    font-size: 1.8rem !important;
}

.servicios-section .slick-prev {
    left: 0px !important;
}
.servicios-section .slick-next {
    right: 0px !important;
}

/*  */
/* .home-page-background .slick-track {
    height: 100% !important;
}
.home-page-background .slick-slide > div {
    height: 100% !important;
}
.home-page-background .slick-dots {
    bottom: 20px !important;
}
@media (min-width: 1024px) {
    .home-page-background .slick-dots {
        bottom: 40px !important;
        display: block !important;
    }
}
.home-page-background .slick-dots li button:before {
    font-size: 15px;
    color: #fff;
}
.home-page-background .slick-dots li.slick-active button:before {
    color: #fff;
} */
/* gtranslate */
.gt_switcher-popup {
    display: flex !important;
    gap: 0.5rem !important;
    text-transform: uppercase;
    font-weight: bold;
    white-space: nowrap;
}
.gt_switcher-popup span:nth-child(2) {
    text-transform: uppercase !important;
    display: none;
    font-size: 1rem !important;
}
.gt_switcher-popup span:nth-child(3) {
    font-size: 1rem !important;
    margin: 0 !important;
}
.gt_white_content .gt_languages {
    display: inline !important;
}
.gt_switcher-popup.glink.nturl.notranslate span:nth-child(3) {
    color: white;
}

/* animation */
.hero-animation-left {
    animation: slideInLeft 1s ease-out forwards;
}
.hero-animation-right {
    animation: slideInRight 1s ease-out forwards;
}
.hero-animation-opacity {
    animation: opacityAnimation 1s ease-out forwards;
}
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-120px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes opacityAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(120px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.delay-custom-transition-1 {
    transition: 1s ease opacity;
}
.card-service:hover .animation-scale {
    animation: none;
}
.animation-scale {
    animation: scaleIn 2s ease-in-out infinite alternate;
}
.animation-scale-fast {
    animation: scaleIn 1s ease-in-out infinite alternate;
}
.animation-scale-fast:hover {
    animation: none;
}
.animation-scale:hover {
    animation: none;
}
@keyframes scaleIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}
.cky-preference-center {
    text-align: justify !important;
}
.cky-preference-center p {
    text-align: justify !important;
}
.cky-preference-center span {
    text-align: justify !important;
}

.rotating {
    animation: rotatePause 3s ease-in-out infinite;
}
@keyframes rotatePause {
    0% {
        transform: rotate(0deg);
        filter: blur(0px);
    }
    25% {
        transform: rotate(360deg);
    }
    28% {
        filter: blur(0.5px);
    }
    30% {
        transform: rotate(360deg);
        filter: blur(0px);
    }
    55% {
        transform: rotate(720deg);
        filter: blur(0.5px);
    }
    100% {
        transform: rotate(720deg);
        filter: blur(0px);
    }
}

/* CHAT AI */
.arbitration-service-container {
    display: flex;
    flex-direction: column;
    margin: 12px 0;
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    overflow: hidden;
}

.service-title,
.arbitrator-fee-title {
    color: white;
    font-weight: bold;
    text-align: center;
    background-color: var(--primary);
    padding: 6px 8px;
    border-bottom: 2px solid var(--primary);
    font-size: 0.9rem;
}

.arbitrator-fee-title {
    border-top: 2px solid var(--primary);
}

.amount-row {
    display: flex;
    padding: 12px 4px;
    gap: 0.5rem;
}

.amount-label {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
}

.amount-value {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    justify-content: center;
}

@media (min-width: 768px) {
    .amount-value {
        justify-content: flex-start;
    }
}

.total-section {
    padding: 6px 0;
    display: flex;
    flex-direction: column;
    background-color: #e6eeef;
    border-top: 2px solid var(--primary-color);
    gap: 4px;
}

.total-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.total-label {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--primary-color);
    font-weight: bold;
    min-width: 100px;
}

.total-value {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    justify-content: center;
}

@media (min-width: 768px) {
    .total-value {
        justify-content: flex-start;
    }
}

/* iamge chat ai */

.vigilio-chat-image-ai {
    width: 200px;
    height: auto;
    margin: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.vigilio-chat-image-ai:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Estilos para el modal */
.vigilio-chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vigilio-chat-modal.vigilio-chat-active {
    opacity: 1;
    visibility: visible;
}

.vigilio-chat-modal-content {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.3s ease;
    transform: translateY(20px);
}

.vigilio-chat-modal.vigilio-chat-active .vigilio-chat-modal-content {
    transform: translateY(0);
}

.vigilio-chat-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.vigilio-chat-close:hover {
    transform: rotate(90deg);
}

.vigilio-chat-modal-content.vigilio-chat-loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vigilio-chat-modal-content.vigilio-chat-loaded {
    opacity: 1;
}

.card-service:hover .animation-scale2 {
    animation: none;
}
.animation-scale2 {
    animation: scaleIn2 0.7s ease-in-out infinite alternate;
}

.animation-scale2:hover {
    animation: none;
}
@keyframes scaleIn2 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}
