/**
 * Estilos Oficiales Iberogrooming Sevilla 2026 - Web de Clausura y Galerías MVC
 * Paleta oficial extraída de iberogrooming.com y su logotipo del perro multicolor
 */

:root {
    --ibero-blue: #0094D9;
    --ibero-blue-dark: #007DB7;
    --ibero-blue-deep: #004666;
    --ibero-blue-light: #6EC1E4;
    --ibero-blue-subtle: #EBF7FD;

    --ibero-green: #018B40;
    --ibero-green-bright: #00A016;
    --ibero-green-light: #61CE70;
    --ibero-green-subtle: #EAF8F0;

    --ibero-red: #E31C3D;
    --ibero-gold: #FFB800;

    --ibero-text-dark: #141414;
    --ibero-text-secondary: #54595F;
    --ibero-surface: #F8FAFC;
    --ibero-border: #E2E8F0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    font-family: 'Plus Jakarta Sans', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ibero-text-dark);
    background-color: #FFFFFF;
    overflow-x: hidden;
}

h1, h2, h3, .display-5 {
    font-family: 'Plus Jakarta Sans', 'Roboto Slab', sans-serif;
    letter-spacing: -0.02em;
}

.fw-extrabold {
    font-weight: 800;
}

.tracking-wide {
    letter-spacing: 0.05em;
}

.extra-small {
    font-size: 0.76rem;
}

/* Barra arcoíris corporativa inspirada en el perro de colores */
.brand-rainbow-bar {
    height: 5px;
    background: linear-gradient(90deg, #FFB800 0%, #018B40 28%, #0094D9 62%, #E31C3D 100%);
}

/* Utilidades de color Iberogrooming */
.text-ibero-blue {
    color: var(--ibero-blue) !important;
}

.text-ibero-green {
    color: var(--ibero-green) !important;
}

.bg-ibero-blue {
    background-color: var(--ibero-blue) !important;
}

.bg-ibero-blue-subtle {
    background-color: var(--ibero-blue-subtle) !important;
}

.bg-ibero-green {
    background-color: var(--ibero-green) !important;
}

.bg-surface {
    background-color: var(--ibero-surface) !important;
}

/* Navbar */
.navbar-ibero {
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 18px rgba(0, 70, 102, 0.05);
}

.navbar-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.04);
}

.brand-title-nav {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: var(--ibero-text-dark);
    line-height: 1.1;
}

.brand-subtitle-nav {
    font-size: 0.75rem;
}

.navbar-nav .nav-link {
    color: var(--ibero-text-secondary);
    padding: 0.5rem 0.9rem !important;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--ibero-blue);
    background-color: var(--ibero-blue-subtle);
}

/* Botones Corporativos */
.btn-ibero-primary {
    background: linear-gradient(135deg, var(--ibero-blue) 0%, var(--ibero-blue-dark) 100%);
    color: #FFFFFF;
    border: none;
    transition: all 0.25s ease;
}

.btn-ibero-primary:hover,
.btn-ibero-primary:focus {
    background: linear-gradient(135deg, var(--ibero-blue-dark) 0%, var(--ibero-blue-deep) 100%);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 148, 217, 0.28) !important;
}

.btn-ibero-green {
    background: linear-gradient(135deg, var(--ibero-green-bright) 0%, var(--ibero-green) 100%);
    color: #FFFFFF;
    border: none;
    transition: all 0.25s ease;
}

.btn-ibero-green:hover,
.btn-ibero-green:focus {
    background: linear-gradient(135deg, var(--ibero-green) 0%, #005225 100%);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-outline-ibero {
    color: var(--ibero-blue-dark);
    border: 2px solid var(--ibero-blue);
    background-color: #FFFFFF;
    transition: all 0.2s ease;
}

.btn-outline-ibero:hover {
    background-color: var(--ibero-blue);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-outline-ibero-green {
    color: var(--ibero-green);
    border: 2px solid var(--ibero-green);
    background-color: #FFFFFF;
    transition: all 0.2s ease;
}

.btn-outline-ibero-green:hover {
    background-color: var(--ibero-green);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background:
        radial-gradient(circle at 8% 15%, rgba(110, 193, 228, 0.14) 0%, transparent 40%),
        radial-gradient(circle at 92% 82%, rgba(97, 206, 112, 0.12) 0%, transparent 40%),
        #FFFFFF;
}

.badge-completed {
    background-color: var(--ibero-green-subtle);
    color: var(--ibero-green);
    border: 1px solid rgba(1, 139, 64, 0.22);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--ibero-green-bright);
    box-shadow: 0 0 0 4px rgba(0, 160, 22, 0.2);
}

.hero-dog-logo {
    width: 112px;
    height: auto;
    object-fit: contain;
}

.btn-hero-action {
    padding: 0.72rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.2;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .btn-hero-action {
        padding: 0.65rem 1rem;
        font-size: 0.88rem;
    }
}

.hero-sample-thumb {
    aspect-ratio: 16 / 10;
    background-color: #E2E8F0;
}

.hero-sample-thumb img {
    transition: transform 0.35s ease;
}

.hero-sample-thumb:hover img {
    transform: scale(1.06);
}

/* Facetas de Galería 1 (Fotos Generales) y Galería 2 (Prejuicios y Juicios) */
.facet-dock {
    max-width: 100%;
}

.facet-dock-divider {
    width: 1.5px;
    height: 28px;
    background-color: var(--ibero-border);
    margin: 0 4px;
}

.facet-pill {
    border-radius: 999px;
    padding: 0.52rem 1rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ibero-text-secondary);
    background-color: transparent;
    border: 1.5px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.facet-pill:hover {
    color: var(--ibero-blue-dark);
    background-color: var(--ibero-blue-subtle);
}

.facet-pill.active {
    background: linear-gradient(135deg, var(--ibero-blue) 0%, var(--ibero-blue-dark) 100%);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 148, 217, 0.25);
}

.facet-count {
    font-size: 0.74rem;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-weight: 700;
}

.facet-pill.active .facet-count,
.btn-shift-selector.active .facet-count {
    background-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

/* Facetas de Galería 2 (Prejuicios y Juicios) */
.btn-day-selector,
.btn-shift-selector {
    border-radius: 999px;
    padding: 0.52rem 0.95rem;
    font-weight: 700;
    font-size: 0.88rem;
    background-color: transparent;
    color: var(--ibero-text-secondary);
    border: 1.5px solid transparent;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.btn-day-selector:hover,
.btn-shift-selector:hover {
    background-color: #FFFFFF;
    color: var(--ibero-green);
}

.btn-day-selector.active {
    background-color: var(--ibero-green);
    color: #FFFFFF;
    border-color: var(--ibero-green);
    box-shadow: 0 4px 12px rgba(1, 139, 64, 0.22);
}

.btn-shift-selector.active {
    background-color: var(--ibero-blue-deep);
    color: #FFFFFF;
    border-color: var(--ibero-blue-deep);
    box-shadow: 0 4px 12px rgba(0, 70, 102, 0.2);
}

/* Barra de Herramientas y Scrubber del Slide */
.btn-slide-nav {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--ibero-border);
    background-color: #FFFFFF;
    color: var(--ibero-text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-slide-nav:hover:not(:disabled) {
    background-color: var(--ibero-blue);
    border-color: var(--ibero-blue);
    color: #FFFFFF;
}

.btn-slide-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ibero-scrubber::-webkit-slider-thumb {
    background: var(--ibero-blue);
}

.ibero-scrubber.scrubber-green::-webkit-slider-thumb {
    background: var(--ibero-green);
}

/* Tarjetas Fotográficas dentro del Slide (2 filas x 4 columnas en Desktop) */
.slide-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 4px 2px;
}

@media (max-width: 991.98px) {
    .slide-photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .slide-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.photo-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background-color: #E2E8F0;
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.photo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 70, 102, 0.14);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.photo-card:hover img {
    transform: scale(1.06);
}

.photo-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.08) 50%, rgba(0, 24, 41, 0.78) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 12px;
}

.photo-card:hover .photo-card-overlay,
.photo-card:focus-visible .photo-card-overlay {
    opacity: 1;
}

/* En móvil mostramos siempre un sutil icono de zoom para indicar interactividad */
.photo-zoom-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--ibero-blue-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 2;
}

.photo-card:hover .photo-zoom-pill {
    background-color: var(--ibero-blue);
    color: #FFFFFF;
    transform: scale(1.08);
}

.photo-Index-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    z-index: 2;
}

/* Banner de Resultados Oficiales */
.results-cta-card {
    background: linear-gradient(135deg, #003A54 0%, #006EA3 55%, #017536 100%);
}

.results-cta-desc {
    color: #FFFFFF !important;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   LIGHTBOX FULLSCREEN CON ZOOM INTERACTIVO Y NAVEGACIÓN
   ========================================================= */
.ibero-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2050;
    background-color: rgba(8, 15, 26, 0.96);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    user-select: none;
}

.ibero-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-topbar {
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.btn-lb-tool,
.btn-lb-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background-color: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.btn-lb-tool:hover {
    background-color: var(--ibero-blue);
    border-color: var(--ibero-blue);
    color: #FFFFFF;
}

.btn-lb-close:hover {
    background-color: var(--ibero-red);
    border-color: var(--ibero-red);
    color: #FFFFFF;
}

.lightbox-stage {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

.lightbox-img-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    touch-action: none;
}

.lightbox-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.lightbox-image {
    max-width: 90vw;
    max-height: calc(100vh - 155px);
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    transform-origin: center center;
    transition: transform 0.18s cubic-bezier(0.2, 0, 0.2, 1);
    cursor: zoom-in;
    z-index: 2;
}

.lightbox-image.is-zoomed {
    cursor: grab;
}

.lightbox-image.is-dragging {
    cursor: grabbing;
    transition: none;
}

.btn-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background-color: rgba(15, 23, 42, 0.72);
    color: #FFFFFF;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: all 0.2s ease;
}

.btn-lb-nav:hover {
    background-color: var(--ibero-blue);
    border-color: var(--ibero-blue);
    transform: translateY(-50%) scale(1.06);
}

.btn-lb-prev {
    left: 18px;
}

.btn-lb-next {
    right: 18px;
}

@media (max-width: 575.98px) {
    .btn-lb-nav {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    .btn-lb-prev { left: 8px; }
    .btn-lb-next { right: 8px; }
}

.lightbox-bottombar {
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.lightbox-thumbs-track {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.lb-thumb-item {
    flex: 0 0 68px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    opacity: 0.45;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    background-color: #1E293B;
}

.lb-thumb-item:hover {
    opacity: 0.85;
}

.lb-thumb-item.active {
    opacity: 1;
    border-color: var(--ibero-blue-light);
    transform: scale(1.06);
}

.lb-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

