/* ── VARIABLES Y CONFIGURACIÓN ── */
:root {
    --lab-bg:     #F5F5F7;
    --lab-slate:  #1E293B;
    --lab-orange: #FF8C00;
    --lab-card:   #FFFFFF;
    --lab-border: #E2E8F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--lab-bg);
    color: var(--lab-slate);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* ── PATRÓN DE FONDO (GRID) ── */
.grid-pattern {
    background-image:
        linear-gradient(to right, #E2E8F0 1px, transparent 1px),
        linear-gradient(to bottom, #E2E8F0 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ── POLAROIDS (DRAGGABLE CARDS) ── */
.draggable-card {
    position: absolute;
    cursor: grab;
    user-select: none;
    touch-action: none;
    z-index: 10;
    transition: transform 0.2s ease-out;
}

.draggable-card:active {
    cursor: grabbing;
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 1000 !important;
}

.polaroid {
    background: white;
    padding: 0.75rem;
    padding-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid var(--lab-border);
    width: 280px; /* Tamaño equilibrado */
}

.polaroid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    pointer-events: none; /* Evita que la imagen interfiera con el arrastre */
}

.polaroid p {
    margin-top: 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    color: #334155;
    line-height: 1.2;
}

/* ── BOTONES ── */
.btn-primary {
    background: var(--lab-orange);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.2);
}

.btn-primary:hover {
    background: #E67E00;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 140, 0, 0.3);
}

/* ── CARDS Y CONTENEDORES ── */
.card-uno {
    background: var(--lab-card);
    border: 1px solid var(--lab-border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-uno:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(30, 41, 59, 0.08);
}

/* ── EFFIMONEY LOOP (PASOS) ── */


.step-header{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:16px;
}

.step-number{
    width:42px;
    height:42px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
}

.step-header h3{
    margin:0;
    font-size:1.5rem;
}


.cycle-step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.phase-1 { background-color: #3B82F6; }
.phase-2 { background-color: #22C55E; }
.phase-3 { background-color: #F97316; }
.phase-4 { background-color: #A855F7; }

.border-phase-1 { border-left: 4px solid #3B82F6 !important; }
.border-phase-2 { border-left: 4px solid #22C55E !important; }
.border-phase-3 { border-left: 4px solid #F97316 !important; }
.border-phase-4 { border-left: 4px solid #A855F7 !important; }

/* ── SECCIÓN CONCEPTOS (OVERLAYS) ── */
.effi-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.overlay {
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay.show {
    opacity: 1;
    transform: translateX(0);
}

/* ── TRANSICIONES DE IDIOMA ── */
[data-i18n] {
    transition: opacity 0.2s ease-in-out;
}