/* =========================================
   VARIABLES GLOBALES
========================================= */
:root {
    --bs-primary: #b87603ff; /* Dorado Irati */
    --bs-primary-rgb: 184, 118, 3;
}

/* =========================================
   BODY
========================================= */
body {
    background-color: #f5f7fb;
    padding-top: 6em; /* Compensa nav fijo */
}

/* =========================================
   NAVBAR + BRAND
========================================= */

/* BRAND SIMPLE */
.navbar-brand {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color .25s ease;
}

.navbar-brand:hover,
.navbar-brand:focus {
    color: #ffe5a4 !important; /* dorado claro suave */
    text-decoration: none !important;
}

/* Fondo del nav */
.bg-irati {
    background-color: #a56d05 !important;
}

/* Nav compacto */
.navbar {
    z-index: 1030;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

/* LINKS DEL NAV */
.navbar .nav-link {
    color: #ffffff !important;
    transition: color .25s ease;
    text-decoration: none !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #ffe5a4 !important;
    text-decoration: none !important;
}

/* Activo */
.navbar .nav-link.active {
    color: #ffd37a !important;
}

/* Logo dentro del NAV (si se usa) */
.navbar-brand img {
    max-height: 110px;
}

/* Separadores elegantes en el menú */
.navbar-nav .nav-item:not(:first-child) {
    position: relative;
    padding-left: 0.85rem; /* espacio antes del texto */
    margin-left: 0.85rem;  /* espacio entre elementos */
}

.navbar-nav .nav-item:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 1.5px;
    background-color: rgba(255, 255, 255, 0.35); /* blanco suave / dorado suave */
    border-radius: 1px;
}

@media (max-width: 991px) {
    .navbar-nav .nav-item:not(:first-child)::before {
        display: none;
    }
    .navbar-nav .nav-item {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
}


/* =========================================
   HERO PRINCIPAL
========================================= */
.hero-card {
    background: linear-gradient(135deg, #b87603, #e6a83a);
    color: #fff;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.12);
}

.hero-logo {
    max-height: 220px;           /* tamaño grande y limpio */
    width: auto;
    display: block;
    margin: 0 auto;

    /* Sombras múltiples para efecto flotante */
    filter:
        drop-shadow(0 4px 8px rgba(0,0,0,0.30))
        drop-shadow(0 10px 20px rgba(0,0,0,0.15));

    /* Sensación de 'elevación' */
    transform: translateY(0);
    transition: 
        transform 0.35s ease, filter 0.35s ease;
}

/* Efecto al pasar el ratón: sube un poco y aumenta la sombra */
.hero-logo:hover {
    transform: translateY(-6px) scale(1.03);
    filter:
        drop-shadow(0 6px 12px rgba(0,0,0,0.40))
        drop-shadow(0 15px 28px rgba(0,0,0,0.20));
}

/* Responsive */
@media (max-width: 768px) {
    .hero-logo {
        max-height: 120px;
    }
}

/* Botón claro dentro del hero */
.hero-card .btn-irati-light {
    color: #b87603 !important;
}

/* Botón contorneado dentro del hero */
.hero-card .btn-outline-light {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.hero-card .btn-outline-light:hover {
    background-color: #ffffff !important;
    color: #b87603 !important;
}

/* =========================================
   ELEMENTOS VARIOS
========================================= */
.badge-nivel {
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

.nivel-image {
    max-height: 220px;
    object-fit: cover;
    width: 100%;
}

/* Carousel */
.carousel-item img {
    max-height: 200px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.35);
    padding: 1rem;
    border-radius: .5rem;
}

/* =========================================
   ENLACES GENERALES
========================================= */
a {
    color: #b87603 !important;
    text-decoration: none;
    transition: color .2s ease;
}

a:hover,
a:focus {
    color: #e6a83a !important;
    text-decoration: underline;
}

/* Enlaces dentro de tarjetas */
.card a,
.card a:hover {
    text-decoration: none !important;
}

/* =========================================
   BOTONES CORPORATIVOS IRATI
========================================= */
.btn-irati {
    background-color: #b87603 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0.5rem;
}

.btn-irati:hover {
    background-color: #a56902 !important;
    color: #fff !important;
}

.btn-irati-outline {
    background-color: transparent !important;
    color: #b87603 !important;
    border: 2px solid #b87603 !important;
    border-radius: 0.5rem;
}

.btn-irati-outline:hover {
    background-color: #b87603 !important;
    color: #fff !important;
}

.btn-irati-light {
    background-color: #fff !important;
    color: #b87603 !important;
    border: 1px solid #e4c48b !important;
    border-radius: 0.5rem;
}

.btn-irati-light:hover {
    background-color: #f8f1df !important;
}

/* =========================================
   MARCA DE AGUA (WATERMARK)
========================================= */
.watermark {
    position: relative;
}

.watermark::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("uploads/fondo.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}


  /* Limita el ancho máximo de las celdas de texto */
  .text-truncate-cell {
    max-width: 200px;       /* Ajusta este ancho según prefieras */
    white-space: nowrap;    /* Evita saltos de línea */
    overflow: hidden;       /* Oculta lo que sobresale */
    text-overflow: ellipsis; /* Pone los ... automáticamente */
    cursor: help;           /* Pone un ? en el cursor al pasar por encima */
  }
  
  /* Opcional: Si quieres que al pasar el ratón se vea todo */
  .text-truncate-cell:hover {
    white-space: normal;
    overflow: visible;
    background-color: #fff;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
  }

  /* Estilos adicionales para mejorar la UX de las opciones */
.btn-outline-light.text-dark:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}
.btn-check:checked + .btn-outline-light {
    background-color: #e7f1ff;
    border-color: #0d6efd;
    color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
