/* -----------------------------------
   TARJETAS AVANZADAS
----------------------------------- */

.card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: 0.25s ease;
    border: 1px solid transparent;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card--selectable {
    cursor: pointer;
}

.card--selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* Título dentro de tarjetas */
.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.card-subtitle {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

/* -----------------------------------
   BOTONES AVANZADOS
----------------------------------- */

.btn {
    cursor: pointer;
    border: none;
    border-radius: var(--radius);
    padding: 0.8rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* -----------------------------------
   BADGES
----------------------------------- */

.badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.badge-success { background: var(--success); }
.badge-warning { background: var(--warning); color: #000; }
.badge-danger  { background: var(--danger); }

/* -----------------------------------
   INPUTS AVANZADOS
----------------------------------- */

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    border: 1px solid #d1d5db;
    background: #fff;
    transition: 0.2s ease;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
    outline: none;
}

/* -----------------------------------
   MODALES
----------------------------------- */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.3s ease;
}

/* -----------------------------------
   STEPS DEL FLUJO
----------------------------------- */

.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.step {
    width: 100%;
    text-align: center;
    padding: 0.8rem 0;
    border-bottom: 3px solid #d1d5db;
    font-weight: 600;
    color: var(--color-muted);
}

.step.active {
    border-color: var(--primary);
    color: var(--primary);
}

.step.completed {
    border-color: var(--success);
    color: var(--success);
}

/* -----------------------------------
   SELECTORES DE COLOR / TIPOGRAFÍA / GEOMETRÍA
----------------------------------- */

.selector {
    border: 2px solid transparent;
    border-radius: var(--radius);
    padding: 1rem;
    transition: 0.2s ease;
    cursor: pointer;
}

.selector:hover {
    border-color: var(--primary-light);
}

.selector.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* -----------------------------------
   TARJETAS DE COLOR
----------------------------------- */

.color-card {
    padding: 1.2rem;
    border-radius: var(--radius);
    color: #fff;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.color-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.color-card.selected {
    outline: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
}

/* -----------------------------------
   TARJETAS DE TIPOGRAFÍA
----------------------------------- */

.typography-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: 0.2s ease;
    cursor: pointer;
}

.typography-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.typography-card.selected {
    border: 2px solid var(--primary);
}

/* -----------------------------------
   TARJETAS DE GEOMETRÍA
----------------------------------- */

.geometry-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: 0.2s ease;
}

.geometry-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.geometry-card.selected {
    border: 2px solid var(--primary);
}

/* -----------------------------------
   TARJETAS DE ESTILOS VISUALES
----------------------------------- */

.style-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: 0.2s ease;
    cursor: pointer;
}

.style-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.style-card.selected {
    border: 2px solid var(--primary);
}
