/* Titulo */
@font-face {
    font-family: 'Poppins1';
    src: url('/assets/fuentes/Poppins-Bold.woff2') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Subtexto y texto*/
@font-face {
    font-family: 'subtitle';
    src: url('/assets/fuentes/ManropeBold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

:root {
    --color-primary: #024ddf;
    --color-secondary: #ff7714;
    --color-green: #22bf46;
    --color-red: #fa1b1b;
    --color-light: #f8f9fa;
    --color-dark: #343a40;
    --color-white: #ffffff;
    --color-border: #e0e0e0;
    --color-black: #000;
    
    --color-title: black;
    --color-subtitle: black;
    --color-text: black;
    --color-textt: #5C5E63;
    --color-text-light: #484848;
    
    --border-radius-btn: 25px;
    --border-radius-field: 15px;
    --border-radius-input: 15px;
    --border-radius-cards: 15px;
    --border-radius-cards20: 20px;
    --border-radius-cards15: 15px;
    
    --hover-primary: #1f45b0;    
    --hover-red: #d91818;         
    --hover-secondary: #e66000;   
    --hover-green: #1b9b3a; 
    --hover-black: #3F3F3F; 
    
    --fc-today-bg-color: #F4F4F7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* {
  scrollbar-width: thin; 
  scrollbar-color: #888 #f1f1f1; 
}

body {
    margin: 0;
    padding: 0;
    background-color: #fff;
}

html, body {
  font-family: "subtitle", sans-serif;
  background-color: #fff;
}

h1 {
    font-family: 'Poppins1', sans-serif;
    color: var(--color-title);
    font-weight: 700;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--border-radius-btn);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  border: none;
  font-family: "subtitle";
}

.btn-primary {
  color: #fff;
  background-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--hover-primary);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
  background-color: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-light);
  border: 1px solid var(--color-white);
}

.btn-tertiary {
  background-color: var(--color-black);
  color: var(--color-white);
}

.btn-tertiary:hover {
  background-color: var(--hover-black);
}

.btn-danger {
    background-color: var(--color-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-btn);
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
}

.btn-danger:hover {
    background-color: var(--hover-red);
}

.tab {
    padding: 12px 25px;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    transition: all 0.3s;
    color: var(--color-title);
    border-radius: var(--border-radius-btn);
    text-decoration: none;
    border: 1px solid var(--color-border);
    background: white;
}

.tab:hover {
    color: var(--color-white);
    background-color: var(--color-black);
}

.tab.active {
    color: var(--color-white);
    background-color: var(--color-black);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px; 
}


.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-cards);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--border-radius-input);
  border: 1px solid var(--color-border);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

select,
.select,
select.form-control,
select.form-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 42px 10px 12px;
    border-radius: var(--border-radius-input);
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    color: var(--color-text);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%235C5E63' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    cursor: pointer;
    transition: border 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

select:focus,
.select:focus,
select.form-control:focus,
select.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(2, 77, 223, 0.12);
}

select:disabled,
.select:disabled,
select.form-control:disabled,
select.form-input:disabled {
    background-color: #f3f4f6;
    color: var(--color-textt);
    cursor: not-allowed;
    opacity: 1;
}

select[multiple],
select[size]:not([size="1"]) {
    min-height: 120px;
    padding-right: 12px;
    background-image: none;
}

select option,
select optgroup {
    background-color: var(--color-white);
    color: var(--color-text);
    font-family: "subtitle", sans-serif;
    border: none;
    box-shadow: none;
}

select option:checked {
    background: linear-gradient(0deg, var(--color-primary) 0%, var(--color-primary) 100%);
    color: var(--color-white);
}

.custom-select {
    position: relative;
    width: 100%;
    font-family: "subtitle", sans-serif;
}

.custom-select.is-open {
    z-index: 80;
}

.custom-select-native {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.custom-select-trigger {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-input);
    background-color: var(--color-white);
    color: var(--color-text);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-select-trigger:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(2, 77, 223, 0.12);
}

.custom-select.is-open .custom-select-trigger {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(2, 77, 223, 0.12);
}

.custom-select.is-disabled .custom-select-trigger {
    background-color: #f3f4f6;
    color: var(--color-textt);
    cursor: not-allowed;
    box-shadow: none;
}

.custom-select-value {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-textt);
    transition: transform 0.2s ease;
}

.custom-select-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.custom-select.is-open .custom-select-icon {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: fixed;
    padding: 8px;
    border: 1px solid #dbe3f0;
    border-radius: 18px;
    background-color: var(--color-white);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    display: none;
    overflow: hidden;
    z-index: 9999;
}

.custom-select.is-open .custom-select-dropdown {
    display: block;
}

.custom-select-options {
    max-height: 320px;
    overflow-y: auto;
}

.custom-select-option {
    width: 100%;
    display: block;
    border: none;
    border-radius: 12px;
    background: var(--color-white);
    color: var(--color-text);
    padding: 12px 14px;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.custom-select-option.is-selected {
    background: var(--color-primary);
    color: var(--color-white);
}

.custom-select-option.is-disabled {
    color: var(--color-textt);
    cursor: not-allowed;
}

.custom-select-option:focus {
    outline: none;
}

.custom-select-empty {
    padding: 12px 14px;
    color: var(--color-textt);
    font-size: 14px;
}

.alert {
    padding: 12px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 15px;
}

.alert-success {
    color: var(--color-green);
    background-color: #fff;
    border: 1px solid var(--color-green);
}

.alert-danger {
    color: var(--color-red);
    background-color: #fff;
    border: 1px solid var(--color-red);
}

.alert-warning {
    color: var(--color-secondary);
    background-color: #fff;
    border: 1px solid var(--color-secondary);
}

.alert-error {
    color: var(--color-secondary);
    background-color: #fff;
    border: 1px solid var(--color-secondary);
}

.alert-info {
    color: var(--color-title);
    background-color: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-cards);
}

.swal2-container.swal2-center > .swal2-popup {
    font-family: "subtitle";
    border-radius: 25px;
}

.swal2-title {
    color: var(--color-title);
}

.swal2-select {
    width: 100% !important;
    min-height: 46px;
    padding: 10px 42px 10px 14px !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--border-radius-field) !important;
    background-color: var(--color-white) !important;
    color: var(--color-text) !important;
    font-family: "subtitle", sans-serif !important;
    font-size: 15px !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%235C5E63' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 18px !important;
}

.swal2-select:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(2, 77, 223, 0.12) !important;
    outline: none !important;
}

.swal-cancel-reason-popup {
    overflow: visible !important;
}

.swal-cancel-reason {
    position: relative;
    z-index: 30;
}

.swal-cancel-reason .custom-select {
    position: relative;
    z-index: 30;
}

.swal-cancel-reason-popup .swal2-actions {
    position: relative;
    z-index: 10;
}

.swal-cancel-reason-popup .custom-select-dropdown {
    z-index: 10050;
}

.swal-cancel-reason-popup:has(.custom-select.is-open) .swal2-actions {
    margin-top: 260px !important;
}

.swal2-confirm {
    background-color: var(--color-primary) !important;
    border-radius: 25px;
}

.swal2-confirm:hover {
    background-color: var(--hover-primary) !important;
}

.swal2-deny {
    background-color: var(--color-white) !important;
    color: var(--color-title);
    border: 1px solid var(--color-border)!important;
    border-radius: 25px;
}

.swal2-deny:hover {
    background-color: var(--hover-light) !important;
}

.swal2-cancel {
    background-color: var(--color-white) !important;
    color: var(--color-title);
    border: 1px solid var(--color-border)!important;
    border-radius: 25px;
}

.swal2-cancel:hover {
    background-color: var(--hover-light) !important;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    width: calc(100% - 40px);
}

@media (max-width: 768px) {
    .toast-container {
        top: 70px;
    }

    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="password"],
    input[type="search"],
    input[type="date"],
    input[type="time"],
    textarea,
    select {
        font-size: 16px;
    }
}

@media (hover: none) and (pointer: coarse) {
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="password"],
    input[type="search"],
    input[type="date"],
    input[type="time"],
    textarea,
    select,
    .form-input,
    .form-control {
        font-size: 16px !important;
    }
}

.toast-alert {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 14px 16px;
    border-radius: var(--border-radius-cards);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--color-border);
    animation: toastSlideIn 0.35s ease-out;
    font-family: "subtitle", sans-serif;
}

.toast-hide {
    animation: toastSlideOut 0.3s ease-in forwards;
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-right: 14px;
    flex-shrink: 0;
}

.toast-icon--success {
    background-color: #d1fae5;
    color: var(--color-green);
}

.toast-icon--error {
    background-color: #fee2e2;
    color: var(--color-red);
}

.toast-icon--warning {
    background-color: #fff3cd;
    color: var(--color-secondary);
}

.toast-icon--info {
    background-color: #dbeafe;
    color: var(--color-primary);
}

.toast-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    color: var(--color-title);
    font-size: 0.95rem;
    line-height: 1.3;
}

.toast-message {
    font-size: 0.825rem;
    color: var(--color-textt);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--color-textt);
    cursor: pointer;
    padding: 4px 6px;
    margin-left: 10px;
    font-size: 0.85rem;
    flex-shrink: 0;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.toast-close:hover {
    background-color: var(--color-light);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}
