/* ===========================
   VARIABLES GLOBALES
   =========================== */
:root {
    --form-font-size: 14px;
    --label-font-size: 16px;
    --checkbox-font-size: 15px;
    --input-padding: 8px;
    --input-border-radius: 4px;
    --button-bg: #007bff;
    --button-hover-bg: #0056b3;
    --button-color: #fff;
}

/* ===========================
   RESET / HTML / BODY
   =========================== */
html {
    height: 100%;
    width: 100%;
    outline: none;
}

body {
    margin: 40px auto;
    font-family: "Swiss721BT-LightCondensed", Arial, tahoma, helvetica,
        sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #444;
    width: 85%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 123, 196, 1) 0%,
        rgba(223, 213, 255, 1) 100%
    );
    background-repeat: no-repeat;
    background-attachment: fixed;
}

a,
a:any-link {
    text-decoration: none;
}

a:hover,
a:focus,
a:active {
    text-decoration: none;
}

/* ===========================
   CABECERA / TITULOS
   =========================== */
.cabeza {
    color: #ffffff;
    font-size: 24px;
    font-family: "Trebuchet MS", Tahoma, Verdana;
}

h1,
h2,
h3,
h4,
.BlueBox {
    font-family: "Swiss721BT-LightCondensed", "Arial";
    font-weight: normal;
    font-style: normal;
    color: #007bc4;
}

/* ===========================
   NAVBAR
   =========================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000099;
    color: #ffffff;
    font-size: 14px;
    line-height: 40px;
    padding: 1%;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-left {
    padding-left: 10px;
}

.nav-right {
    padding-right: 10px;
}

.nav-left a,
.nav-right a,
nav a:any-link {
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    padding: 1%;
}

.nav-left a:hover,
.nav-right a:hover,
nav a:hover {
    color: #999999;
}

/* ===========================
   USER MENU / DROPDOWN
   =========================== */
.user-menu {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.user-menu span {
    white-space: nowrap;
}

.user-menu .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    padding: 5px 0;
    margin-top: 0px;
    list-style: none;
    z-index: 10;
}

.user-menu:hover .dropdown {
    display: block;
}

.user-menu .dropdown li {
    padding: 5px 15px;
}

.user-menu .dropdown li:hover {
    background: #eee;
}

.user-menu .dropdown li a {
    color: #333 !important;
    text-decoration: none;
}

.user-menu .dropdown li a:hover {
    color: #000 !important;
}

/* ===========================
   LINKS / MENUS GENERALES
   =========================== */
a.menu {
    margin: 4px;
    padding: 10px;
    font-family: Arial, tahoma, helvetica, sans-serif;
    font-size: 14px;
    line-height: 40px;
    color: #ffffff;
    height: 100;
    position: relative;
}

a.menu:link {
    text-decoration: none;
}

a:any-link {
    color: #007bc4;
}

a:hover {
    color: #000000;
}

/* ===========================
   CONTENT / TEXTOS GENERALES
   =========================== */
.content {
    font-family: "Trebuchet MS", Tahoma, Verdana;
    font-size: 14px;
    line-height: normal;
    font-weight: normal;
    color: #333333;
}

ul {
    list-style: disc outside none;
    padding: 10px;
    border-radius: 3px;
}

li {
    padding: 10px;
}

/* ===========================
   SECCION CALLS
   =========================== */
.calls-title {
    text-align: center;
    color: #007bc4;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.calls-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.calls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.call-card {
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
    border: 1px solid #dce3f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.call-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.call-name {
    font-size: 1.25rem;
    color: #007bc4;
    margin-bottom: 0.75rem;
}

.call-description {
    color: #555;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.call-btn,
.call-btn:link,
.call-btn:visited {
    color: var(--button-color) !important;
    text-decoration: none !important;
    display: inline-block;
    background: var(--button-bg);
    text-align: center;
    padding: 0.6rem 1rem;
    border-radius: var(--input-border-radius);
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s ease;
    margin-top: 1rem;
}

.call-btn:hover {
    background: var(--button-hover-bg);
    color: #fff;
}

.no-calls {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin-top: 2rem;
}

/* ===========================
   TABLAS
   =========================== */
table {
    border-spacing: 1;
    border-collapse: collapse;
    background: rgba(233, 230, 230, 0.76);
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

table td,
table th {
    padding-left: 8px;
    padding-right: 8px;
    text-align: left;
}

table thead tr {
    height: 50px;
    background: #78e0ff;
    font-size: 15px;
}

table tbody tr {
    height: 48px;
    border-bottom: 1px solid #000;
}

table tbody tr:last-child {
    border-bottom: none;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table th,
.table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
}

.btn {
    margin: 0.25rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

/* ===========================
   ALERTAS
   =========================== */
.alert {
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    border-radius: 5px;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 14px;
    display: block;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===========================
   FORMULARIOS
   =========================== */
form {
    font-family: "Arial", sans-serif;
}

form label {
    display: block;
    font-weight: bold;
    margin: 15px 0 5px 0;
    color: #555;
    font-size: var(--label-font-size);
    padding: 2px 0;
}

form label:has(input[type="checkbox"]),
form label:has(input[type="radio"]) {
    font-weight: normal;
    color: #333;
    font-size: var(--checkbox-font-size);
    display: inline-block;
    margin: 0 10px 0 0;
    vertical-align: middle;
    cursor: pointer;
}

form input[type="text"],
form input[type="email"],
form input[type="file"],
form input[type="number"],
form input[type="date"],
form textarea,
form select {
    width: 100%;
    padding: var(--input-padding);
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: var(--input-border-radius);
    font-size: var(--form-font-size);
    box-sizing: border-box;
}

form textarea {
    min-height: 100px;
}

form input[type="checkbox"],
form input[type="radio"] {
    margin-right: 5px;
    vertical-align: middle;
}

form button {
    font-weight: bold;
    background: var(--button-bg);
    color: var(--button-color);
    border: none;
    font-size: 16px;
    border-radius: var(--input-border-radius);
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    transition: background 0.3s ease;
}

form button:hover {
    background: var(--button-hover-bg);
}

/* ===========================
   CSV OVERLAY
   =========================== */
.csv-instructions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.csv-instructions img {
    max-width: 50%;
    height: auto;
    border-radius: 6px;
}

.csv-input {
    margin-bottom: 10px;
}

.csv-btn:disabled {
    background-color: #cccccc;
}

/* ===========================
   FOOTER / CONTENEDORES
   =========================== */
.container {
    background-color: #ffffff;
    padding: 5%;
    border: 0;
    margin: 0;
}

footer {
    background-color: #ffb4b4;
    text-align: center;
    border: 0;
    margin: 0;
    padding: 2%;
}

footer p {
    margin: 0;
    padding: 1%;
}

hr {
    margin-top: 20px;
    margin-bottom: 20px;
}
