﻿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%;
}



a {
    color: #4297A9;
    text-decoration: none;
    font-weight:500;
}

    a:hover {
        color: black;
    }


.colorverde {
    color: #335941;
}

.colorverdeclaro {
    color: #5c7a67;
}

/*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 */
    }
}

/* Mostrar solo en escritorio */
.only-desktop {
    display: table-cell;
}

.only-mobile {
    display: none;
}

@media (max-width: 768px) {
    /* En móvil, invertimos */
    .only-desktop {
        display: none !important;
    }

    .only-mobile {
        display: table-cell !important;
    }
}

/*EN CELULARES SE REDUCE EL TAMAÑO DEL AFUENTE*/
@media (max-width: 768px) {
    #MyTable td, #MyTable th {
        font-size: 0.85rem;
    }
}

.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;
    }
}

/*VISTA HOME*/
/* Tamaño base */
.menu-card {
    width: 10rem;
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease;
}

    /* Animación hover */
    .menu-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

/* Imagen más proporcionada */
.icon-img {
    width: 60%;
    margin: 15px auto 0 auto;
    display: block;
}

/* Móvil: cards más pequeños */
@media (max-width: 576px) {
    .menu-card {
        width: 7rem;
    }

    .icon-img {
        width: 70%;
    }

    .card-title {
        font-size: 0.9rem;
    }
}

/* Contenedor general */
.app-menu {
    text-align: center;
}

/* Card estilo app */
.app-card {
    width: 300px;
    height: 200px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .app-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

/* Icono */
.app-icon {
    width: 100px;
    height: 60px;
    margin-bottom: 6px;
}

/* Texto */
.app-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 4px;
    color: #333;
}

/* Móvil: estilo más grande tipo app */
@media (max-width: 576px) {
    .app-card {
        width: 80px;
        height: 80px;
        border-radius: 18px;
    }

    .app-icon {
        width: 36px;
        height: 36px;
    }

    .app-label {
        font-size: 0.75rem;
    }
}


/* HEADER */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 0 15px;
    z-index: 1000;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
}

.app-title {
    margin: 0 auto;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.15);
    padding: 15px;
    transition: left .3s ease;
    z-index: 1100;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-item {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
}

    .sidebar-item:hover {
        color: #007bff;
    }

.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: none;
    z-index: 1000;
}

/* CONTENIDO PRINCIPAL */
.app-content {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* CARDS ESTILO APP */
.app-card {
    width: 300px;
    height: 200px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .app-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

.app-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 6px;
}

.app-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 4px;
    color: #333;
}

/* MÓVIL */
@media (max-width: 576px) {
    .app-card {
        width: 80px;
        height: 80px;
        border-radius: 18px;
    }

    .app-icon {
        width: 36px;
        height: 36px;
    }

    .app-label {
        font-size: 0.75rem;
    }
}

/* BOTTOM NAV */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: #ffffff;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

    .bottom-nav .nav-item {
        text-align: center;
        color: #444;
        font-size: 0.75rem;
        text-decoration: none;
    }

    .nav-icon {
        width: 24px;
        height: 24px;
        display: block;
        margin: 0 auto 3px;
    }

/* Por defecto ocultamos ambos */
.bottom-nav,footer {
    display: none;
    margin: 0;
    padding: 0;
}

/* Mostrar navbar en móviles */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex; /* tu estilo original */
    }

    footer {
        display: none;
    }
}

/* Mostrar footer en pantallas grandes */
@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }

    footer {
        display: block; /* o flex según tu diseño */
    }
}

    /* Submenu contenedor */
    .submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        padding-left: 10px;
    }

    /* Items del submenu */
    .submenu-item {
        display: block;
        padding: 8px 0;
        font-size: 0.9rem;
        color: #555;
        text-decoration: none;
    }

        .submenu-item:hover {
            color: #007bff;
        }

    /* Botón del submenu */
    .submenu-toggle {
        cursor: pointer;
        font-weight: 500;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Flecha animada */
    .submenu-arrow {
        transition: transform .3s ease;
    }

        .submenu-arrow.open {
            transform: rotate(180deg);
        }


/* Animaciones solo en dispositivos con hover real */
@media (hover: hover) {

    .card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

        .card:hover {
            transform: translateY(-4px);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
            cursor: pointer;
        }

        .card img {
            transition: transform 0.25s ease;
        }

        .card:hover img {
            transform: scale(1.05);
        }
}

/* Mobile first */
.ratio-pet {--bs-aspect-ratio: 50%;}
.ratio-razas {--bs-aspect-ratio: 50%;}

/* sm y superior */
@media (min-width: 576px) {
    .ratio-pet {--bs-aspect-ratio: 120%;}
    .ratio-razas {--bs-aspect-ratio: 75%;}
}

.fotosentabla {
    height: 150px;
    width: auto;
}

/*PARA EL CAMPO RECETA, EN LA VISTA DETAILS DE HISTORIAL*/
.receta-pre {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    font-family: inherit;
    white-space: pre-wrap; /* clave para móviles */
}

/*RAZAS EN LAS CARDS EN MONITORES GRANDES*/
.grid-max {
    max-width: 1800px;
}



    
