/**
 * ESPAI SACRA - ODOO CLASSES ULTRA PREMIUM
 * Disseny espectacular amb Glassmorphism i efectes innovadors
 * Colors corporatius: Èbano (#2f2f2f), Siena (#c79a6d), Alabastro (#e5ddd1), Vidrián (#3a594b), Ocre Carn (#d4a574)
 */

/* ============================================
   VARIABLES CSS - COLORS CORPORATIUS
   ============================================ */
/* TEST: Si veus aquest comentari, el CSS v1.0.1 s'està carregant correctament */
:root {
    --color-ebano: #2f2f2f;
    --color-siena: #c79a6d;
    --color-alabastro: #e5ddd1;
    --color-vidrian: #3a594b;
    --color-ocre: #d4a574;
    
    --gradient-primary: linear-gradient(135deg, var(--color-vidrian), #4a7a65);
    --gradient-secondary: linear-gradient(135deg, var(--color-siena), var(--color-ocre));
    --gradient-soft: linear-gradient(135deg, rgba(58, 89, 75, 0.05), rgba(229, 221, 209, 0.1));
    
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 15px 50px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(58, 89, 75, 0.3);
}

/* ============================================
   CONTENIDOR PRINCIPAL
   ============================================ */
.odoo-classes-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ============================================
   FILTRES - GLASSMORPHISM ESPECTACULAR
   ============================================ */
.odoo-filters-wrapper {
    margin-bottom: 3rem;
    perspective: 1000px;
}

.odoo-filters-glassmorphism {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9), 
        rgba(229, 221, 209, 0.8)
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 0 60px rgba(58, 89, 75, 0.15);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.odoo-filters-glassmorphism::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(58, 89, 75, 0.05) 0%,
        transparent 70%
    );
    animation: rotateBackground 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateBackground {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.odoo-filters-glassmorphism:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 80px rgba(58, 89, 75, 0.25);
}

.odoo-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    flex-wrap: nowrap;
}

.odoo-filters-title {
    flex: 0 0 auto;
}

.odoo-filters-cta-group {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .odoo-filters-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .odoo-filters-cta-group {
        width: 100%;
        justify-content: flex-start;
    }
}

.odoo-filters-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-vidrian);
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.odoo-filter-icon {
    display: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.odoo-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    align-items: end;
}

.odoo-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    min-height: 100%;
}

.odoo-filter-group.odoo-filter-actions {
    justify-content: flex-end;
    min-height: auto;
}

.odoo-filter-label {
    font-weight: 600;
    color: var(--color-vidrian);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.odoo-filter-emoji {
    font-size: 1.3rem;
}

.odoo-filter-select {
    padding: 1rem 1.25rem;
    border: 2px solid rgba(58, 89, 75, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-ebano);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233a594b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 12px;
    padding-right: 3rem;
    height: 3.5rem;
    min-height: 3.5rem;
    box-sizing: border-box;
}

.odoo-filter-select:hover {
    border-color: var(--color-vidrian);
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.odoo-filter-select:focus {
    outline: none;
    border-color: var(--color-vidrian);
    box-shadow: 0 0 0 4px rgba(58, 89, 75, 0.1);
}

.odoo-filter-reset {
    padding: 1rem 1.5rem;
    background: var(--gradient-secondary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(199, 154, 109, 0.3);
    margin-top: auto;
    height: 3.5rem;
    min-height: 3.5rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.odoo-filter-reset:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(199, 154, 109, 0.4);
}

.odoo-filter-reset:active {
    transform: translateY(-1px) scale(1.02);
}

/* CTA buttons a la capçalera de filtres */
.odoo-filters-cta-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
}

.odoo-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.odoo-cta-btn .odoo-btn-icon {
    font-size: 1.2rem;
}

.odoo-cta-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(58, 89, 75, 0.35);
}

.odoo-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(58, 89, 75, 0.45);
}

.odoo-cta-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-vidrian);
    border-color: rgba(58, 89, 75, 0.25);
}

.odoo-cta-secondary:hover {
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

/* ============================================
   COMPTADOR DE RESULTATS
   ============================================ */
.odoo-results-counter {
    text-align: center;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.odoo-counter-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: countPulse 2s ease-in-out infinite;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.odoo-counter-text {
    font-size: 1.2rem;
    color: var(--color-vidrian);
    font-weight: 600;
}

/* ============================================
   GRID DE CLASSES - ULTRA PREMIUM
   ============================================ */
.odoo-classes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

@media (max-width: 1400px) {
    .odoo-classes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .odoo-classes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .odoo-classes-grid {
        grid-template-columns: 1fr;
    }
}

.odoo-classe-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 480px;
}

.odoo-card-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: none;
    -webkit-filter: none;
}

.odoo-card-bg-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.odoo-classe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: left;
}

.odoo-classe-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-strong), var(--shadow-glow);
    border-color: rgba(58, 89, 75, 0.3);
}

.odoo-classe-card:hover::before {
    transform: scaleX(1);
}

/* Badge Nova - Banner impactant amb color Siena corporatiu */
.odoo-badge-nova {
    position: relative;
    background: linear-gradient(135deg, hsl(15 70% 50%), hsl(15 70% 48%));
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.55rem;
    font-weight: 800;
    box-shadow: 
        0 2px 6px rgba(218, 80, 38, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 10;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    border: none;
    text-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    align-self: center;
    margin-left: auto;
}


/* ============================================
   CARD HEADER
   ============================================ */

.odoo-card-header {
    padding: 1.5rem 1.6rem 0.5rem;
    color: white;
    position: relative;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex-shrink: 0;
    z-index: 2;
    border-bottom: none;
    margin-bottom: 0;
    margin-top: 0;
}

.odoo-card-header::after {
    display: none;
}

@keyframes rotateHeaderGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.odoo-card-title {
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    position: relative;
    z-index: 3;
    text-shadow: none;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    color: hsl(0 0% 18%);
    min-height: 4.6rem;
    max-height: 6rem;
    padding: 0;
    margin-top: 0;
}

.odoo-card-subtitle {
    display: none;
}

/* ============================================
   CARD BODY
   ============================================ */
.odoo-card-body {
    padding: 1.4rem 1.6rem 1.6rem;
    position: relative;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    color: hsl(0 0% 18%);
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 2;
    min-height: 0;
    margin-top: 0;
}

.odoo-info-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 3rem;
}

.odoo-info-row:hover {
    background: rgba(58, 89, 75, 0.05);
    transform: translateX(5px);
}

.odoo-info-icon {
    display: none;
}

.odoo-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.odoo-info-content strong {
    color: hsl(183 22% 29%);
    text-shadow: none;
    font-weight: 600;
}

.odoo-info-label {
    font-size: 0.85rem;
    color: var(--color-vidrian);
    opacity: 0.8;
}

.odoo-horari {
    font-size: 1rem;
    color: hsl(183 22% 25%);
    font-weight: 600;
    text-shadow: none;
}

/* Meta tags (intensitat, duració, franja) */
.odoo-info-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    margin: 0.75rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-right: 0.5rem;
    min-height: 2.2rem;
}

.odoo-info-meta::-webkit-scrollbar {
    display: none;
}

.odoo-meta-tag {
    padding: 0.35rem 0.65rem;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
    border: 1.5px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}

.odoo-meta-tag:hover {
    transform: none;
    box-shadow: none;
}

/* Meta tags amb colors corporatius suaus */
.odoo-meta-intensitat-suau {
    background: rgba(229, 221, 209, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: hsl(16 34% 35%);
    border-color: rgba(229, 221, 209, 0.6);
}

.odoo-meta-intensitat-moderada {
    background: rgba(212, 165, 116, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: hsl(16 34% 40%);
    border-color: rgba(212, 165, 116, 0.5);
}

.odoo-meta-intensitat-intensa {
    background: rgba(218, 80, 38, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: hsl(15 70% 45%);
    border-color: rgba(218, 80, 38, 0.4);
}

.odoo-meta-intensitat-molt {
    background: rgba(218, 80, 38, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: hsl(15 70% 40%);
    border-color: rgba(218, 80, 38, 0.5);
}

.odoo-meta-duracio {
    background: rgba(58, 89, 75, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: hsl(183 22% 25%);
    border-color: rgba(58, 89, 75, 0.4);
}

.odoo-meta-franja {
    background: rgba(229, 221, 209, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: hsl(16 34% 38%);
    border-color: rgba(229, 221, 209, 0.7);
}

/* Descripció */
.odoo-card-description {
    margin: 1rem 0 0 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 3px solid rgba(58, 89, 75, 0.3);
    border-radius: 0 12px 12px 0;
    color: hsl(0 0% 20%);
    line-height: 1.6;
    font-size: 0.88rem;
    font-style: italic;
    text-shadow: none;
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    margin-bottom: 0;
}

/* ============================================
   PLACES DISPONIBLES - BARRA ANIMADA
   ============================================ */
.odoo-places-info {
    margin: 1.5rem 0;
}

.odoo-places-bar {
    width: 100%;
    height: 12px;
    background: rgba(58, 89, 75, 0.1);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    position: relative;
}

.odoo-places-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 20px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 15px rgba(58, 89, 75, 0.5);
}

.odoo-places-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: shimmerBar 2s infinite;
}

@keyframes shimmerBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.odoo-places-text {
    font-size: 0.9rem;
    color: var(--color-ebano);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.odoo-places-disponibles {
    color: #2e7d32;
    font-weight: 600;
}

.odoo-places-completes {
    color: #d84315;
    font-weight: 600;
}

/* ============================================
   CARD FOOTER - BOTÓ RESERVA ESPECTACULAR
   ============================================ */
.odoo-card-footer {
    padding: 1.5rem 2rem 2rem;
}

.odoo-btn-reserva {
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(58, 89, 75, 0.3);
    position: relative;
    overflow: hidden;
}

.odoo-btn-reserva::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.odoo-btn-reserva:hover::before {
    width: 400px;
    height: 400px;
}

.odoo-btn-reserva:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(58, 89, 75, 0.5);
}

.odoo-btn-reserva:active {
    transform: translateY(-2px) scale(1.02);
}

.odoo-btn-icon {
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.odoo-btn-text {
    position: relative;
    z-index: 1;
}

.odoo-btn-arrow {
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.odoo-btn-reserva:hover .odoo-btn-arrow {
    transform: translateX(8px);
}

/* ============================================
   MODAL - GLASSMORPHISM ULTRA PREMIUM
   ============================================ */
.odoo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(47, 47, 47, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.odoo-modal-overlay.active {
    display: flex;
}

.odoo-modal-content {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98), 
        rgba(229, 221, 209, 0.95)
    );
    backdrop-filter: blur(30px) saturate(200%);
    border-radius: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 20px 80px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 100px rgba(58, 89, 75, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    position: relative;
    animation: modalSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.odoo-modal-header {
    background: var(--gradient-primary);
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.odoo-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 70%
    );
    animation: rotateModalGlow 10s linear infinite;
}

@keyframes rotateModalGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.odoo-modal-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.odoo-modal-icon {
    font-size: 2rem;
    animation: rotate360 3s linear infinite;
}

@keyframes rotate360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.odoo-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.odoo-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

/* ============================================
   MODAL BODY
   ============================================ */
.odoo-modal-body {
    padding: 2.5rem;
}

.odoo-selected-class {
    background: var(--gradient-soft);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 2px solid rgba(58, 89, 75, 0.15);
}

.odoo-selected-icon {
    font-size: 3rem;
    flex-shrink: 0;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.odoo-selected-info h4 {
    color: var(--color-vidrian);
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.odoo-selected-info p {
    color: var(--color-ebano);
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================
   FORMULARI - DISSENY PREMIUM
   ============================================ */
.odoo-trial-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.odoo-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.odoo-form-label {
    font-weight: 600;
    color: var(--color-vidrian);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.odoo-label-icon {
    font-size: 1.3rem;
}

.odoo-form-input,
.odoo-form-textarea {
    padding: 1rem 1.5rem;
    border: 2px solid rgba(58, 89, 75, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--color-ebano);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-family: inherit;
}

.odoo-form-input:focus,
.odoo-form-textarea:focus {
    outline: none;
    border-color: var(--color-vidrian);
    background: white;
    box-shadow: 0 0 0 4px rgba(58, 89, 75, 0.1), 0 8px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.odoo-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.odoo-form-info {
    background: rgba(58, 89, 75, 0.05);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    border-left: 4px solid var(--color-vidrian);
}

.odoo-info-icon-small {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.odoo-form-info p {
    margin: 0;
    color: var(--color-ebano);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   BOTONS FORMULARI
   ============================================ */
.odoo-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.odoo-btn-cancel,
.odoo-btn-submit {
    flex: 1;
    padding: 1.25rem;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.odoo-btn-cancel {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: var(--color-ebano);
    border: 2px solid rgba(47, 47, 47, 0.1);
}

.odoo-btn-cancel:hover {
    background: linear-gradient(135deg, #e0e0e0, #d0d0d0);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.odoo-btn-submit {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 25px rgba(58, 89, 75, 0.4);
    position: relative;
    overflow: hidden;
}

.odoo-btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.odoo-btn-submit:hover::before {
    width: 400px;
    height: 400px;
}

.odoo-btn-submit:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 40px rgba(58, 89, 75, 0.5);
}

.odoo-btn-submit:active {
    transform: translateY(-2px) scale(1.01);
}

.odoo-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   MISSATGE D'ÈXIT
   ============================================ */
.odoo-success-message {
    text-align: center;
    padding: 2rem;
}

.odoo-success-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.odoo-success-message h3 {
    color: var(--color-vidrian);
    font-size: 2rem;
    margin: 0 0 1rem 0;
    font-weight: 800;
}

.odoo-success-message p {
    color: var(--color-ebano);
    font-size: 1.1rem;
    margin: 0.75rem 0;
    line-height: 1.6;
}

.odoo-btn-close-success {
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(58, 89, 75, 0.3);
}

.odoo-btn-close-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(58, 89, 75, 0.4);
}

/* ============================================
   EFECTES DE CÀRREGA
   ============================================ */
.odoo-loading {
    text-align: center;
    padding: 4rem 2rem;
}

.odoo-loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(58, 89, 75, 0.1);
    border-top-color: var(--color-vidrian);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .odoo-filters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .odoo-classes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .odoo-modal-content {
        border-radius: 20px;
    }
    
    .odoo-modal-body {
        padding: 1.5rem;
    }
    
    .odoo-form-actions {
        flex-direction: column;
    }
    
    .odoo-card-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   ACCESSIBILITAT
   ============================================ */
.odoo-filter-select:focus,
.odoo-form-input:focus,
.odoo-form-textarea:focus,
button:focus {
    outline: 3px solid var(--color-vidrian);
    outline-offset: 2px;
}

/* Preferència moviment reduït */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   ESTATS BUITS I ERRORS
   ============================================ */
.odoo-empty,
.odoo-error {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.odoo-empty {
    background: linear-gradient(135deg, rgba(58, 89, 75, 0.05), rgba(229, 221, 209, 0.1));
    color: var(--color-vidrian);
}

.odoo-error {
    background: linear-gradient(135deg, rgba(248, 215, 218, 0.5), rgba(242, 174, 180, 0.3));
    color: #721c24;
}

/* ============================================
   SCROLL SUAU PER MODAL
   ============================================ */
.odoo-modal-content {
    scroll-behavior: smooth;
}

.odoo-modal-content::-webkit-scrollbar {
    width: 12px;
}

.odoo-modal-content::-webkit-scrollbar-track {
    background: rgba(58, 89, 75, 0.05);
    border-radius: 10px;
}

.odoo-modal-content::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.odoo-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-vidrian);
}
