/* ==========================================
   PROJECTS SECTION - DESKTOP
   Carrusel de proyectos con fondo blanco
   ========================================== */

:root {
    --project-orange: #FF5C00;
    --project-card-w: 320px;
    --project-card-h: 420px;
    --project-card-expanded-w: 380px;
    --project-card-expanded-h: 480px;
}

.projects-section {
    background: #ffffff;
    padding: 100px 20px;
    overflow-x: hidden;
}

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

.projects-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.projects-title {
    font-size: clamp(2.5rem, 5vw, 3.0rem);
    font-weight: 600;
    line-height: 1.1;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    color: #000;
    font-family: 'Domi', sans-serif;
    letter-spacing: -1px;
}

/* ==========================================
   BOTÓN PILL CON ISOTIPO
   ========================================== */

.pill-container {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 85px;
    height: 60px;
    vertical-align: middle;
    margin: 0 10px;
}

.pill-button {
    width: 85px;
    height: 38px;
    background: linear-gradient(180deg, #ff9e55 0%, #ff5c00 50%, #d44d00 100%); 
    border-radius: 50px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(255, 92, 0, 0.3);
    display: block;
}

.pill-isotipo {
    position: absolute;
    z-index: 2;
    top: -2px;
    width: 50px;
    height: 50px;
    pointer-events: none;
    filter: brightness(0) saturate(100%);
}

/* ==========================================
   RESTO DEL HEADER
   ========================================== */

.projects-highlight {
    color: var(--project-orange);
}

.projects-subtitle {
    color: #888;
    max-width: 500px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.5;
    font-family: 'Domi', sans-serif;
    font-weight: 400;
}

/* ==========================================
   CAROUSEL - ALTURA FIJA
   ========================================== */

.projects-carousel {
    display: flex;
    gap: 20px;
    padding: 20px 50px;
    overflow-x: auto;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    
    /* ALTURA FIJA - No crece, no empuja nada */
    height: 520px;
    align-items: center;
}

.projects-carousel::-webkit-scrollbar {
    display: none;
}

.projects-carousel:active {
    cursor: grabbing;
}

/* ==========================================
   PROJECT CARD - BASE
   ========================================== */

.project-card {
    position: relative;
    flex: 0 0 var(--project-card-w);
    height: var(--project-card-h);
    border-radius: 30px;
    overflow: hidden;
    background: #000;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    user-select: none;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: all 0.5s ease;
}

/* Categoría */
.project-category {
    position: absolute;
    top: 25px;
    left: 25px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    font-family: 'Domi', sans-serif;
    letter-spacing: 0.5px;
}

/* Flecha */
.project-arrow {
    position: absolute;
    top: 25px;
    right: 25px;
    color: white;
    font-size: 24px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    z-index: 2;
}

/* Contenido */
.project-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    color: white;
    transition: all 0.5s ease;
    z-index: 2;
}

.project-content h3 {
    font-size: 24px;
    margin: 0;
    text-transform: uppercase;
    transition: all 0.5s ease;
    font-family: 'Domi', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.project-description {
    font-size: 14px;
    opacity: 0;
    max-height: 0;
    margin: 0;
    transition: all 0.4s ease;
    line-height: 1.4;
    font-family: 'Domi', sans-serif;
    font-weight: 400;
}

/* ==========================================
   ESTADO ACTIVE (PRIMER CLICK)
   ========================================== */

.project-card.active {
    flex: 0 0 var(--project-card-expanded-w);
    height: var(--project-card-expanded-h);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-card.active img {
    opacity: 0.5;
    transform: scale(1.05);
}

.project-card.active .project-arrow {
    opacity: 1;
    transform: translateY(0);
}

.project-card.active .project-content {
    bottom: 40px;
    text-align: center;
}

.project-card.active .project-description {
    opacity: 0.9;
    max-height: 80px;
    margin-top: 10px;
}

/* ==========================================
   BARRA DE PROGRESO
   ========================================== */

.projects-scroll-control {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.projects-scroll-track {
    width: 300px;
    height: 2px;
    background: #eee;
    position: relative;
    border-radius: 2px;
}

.projects-scroll-thumb {
    width: 60px;
    height: 4px;
    background: var(--project-orange);
    position: absolute;
    top: -1px;
    left: 0;
    border-radius: 2px;
    transition: left 0.1s linear;
}