﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {    
    position: relative;
    min-height: 100vh;
    padding-bottom: 60px; /*DEBE LLEVAR ESTE PADDING SINO LOS NUMEROS DE PAGINA NO SE MUESTRAN */
}

/*param utilizar fondos de letras*/
@font-face {
    font-family: 'Poetsenone-1EWv';
    src: url('../font/Poetsenone-1EWv.ttf') format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* Estilos para el Navbar */
.navbar {
    padding: 10px 0; /* Ajusta según tus necesidades */
}

/*Banner*/
.banner-container {
    position: relative;
    height: 70vh;
    overflow: hidden;
    background: url('../img/fondo-banner.jpg') center no-repeat;
    background-size: cover;
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
    text-align: center;
    margin-bottom: 50px; /* Ajusta según sea necesario */
}

.subscribe-btn {
    padding: 15px 30px;
    font-size: 32px;
    border-radius: 14px;
}

.enlace-responsivo {
    display: none; /* Oculta el enlace por defecto */
}

/* Media query para pantallas pequeñas (ej. móviles) */
@media (max-width: 768px) { /* Puedes ajustar este valor según tu diseño */
    .enlace-responsivo {
        display: inline; /* Muestra el enlace en pantallas pequeñas */
    }
}

.input-abierta {
    background-color: yellow; /* Example: highlight pending status with yellow */
}

.input-cerrada {
    background-color: green; /* Example: green for approved status */
    color: white; /* Make text readable on a dark background */
}

/*PARA CAMBIAR EL COLOR DE FONDO Y DE LETRA, CON LOS CAMPOS OBLIGATORIOS [REQUIRED] DE LAS VISTAS AUTOMATICAMENTE*/
.input-validation-error, .input-validation-error:focus {
    background-color: #ffccba; /* Light red/pink background for errors */
    color: #d63301; /* Darker red text color */
}

.clamp-1-line,.clamp-2-lines {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.clamp-1-line {
    -webkit-line-clamp: 1;
}

.clamp-2-lines {
    -webkit-line-clamp: 2;
}

/* Tablets: 1 línea */
@media (max-width: 992px) {
    .clamp-2-lines {
        -webkit-line-clamp: 1;
    }
}

/* Móviles: 1 línea + tamaño más pequeño */
@media (max-width: 576px) {
    .clamp-2-lines {
        -webkit-line-clamp: 1;
        font-size: 0.85rem;
    }
}

/* Base: comportamiento general */
.clamp-descripcion,
.clamp-codigo,
.clamp-notas {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Líneas por defecto en desktop */
.clamp-descripcion {-webkit-line-clamp: 2;}

.clamp-codigo {-webkit-line-clamp: 1;}

.clamp-notas {-webkit-line-clamp: 3;}

/* TABLETS <= 992PX*/
@media (max-width: 992px) {
    .clamp-descripcion {-webkit-line-clamp: 1;}

    .clamp-codigo {-webkit-line-clamp: 1;}
    /* igual */
    .clamp-notas {-webkit-line-clamp: 2;}
}

/* MOVILES*/
@media (max-width: 576px) {
    .clamp-descripcion {
        -webkit-line-clamp: 1;
        font-size: 0.85rem;
    }

    .clamp-codigo {
        -webkit-line-clamp: 1;
        font-size: 0.85rem;
    }

    .clamp-notas {
        -webkit-line-clamp: 1;
        font-size: 0.85rem;
    }
}

.tooltip-dark {
    --bs-tooltip-bg: #000;
    --bs-tooltip-color: #fff;
}

.tooltip-light {
    --bs-tooltip-bg: #fff;
    --bs-tooltip-color: #000;
    border: 1px solid #ccc;
}

.tooltip-glass {
    --bs-tooltip-bg: rgba(0, 0, 0, 0.75);
    --bs-tooltip-color: #fff;
    backdrop-filter: blur(4px);
    border-radius: 6px;
}   