/* 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;
}

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 {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,...");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-color: white;
    padding-right: 35px;
}

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